This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re : [GCC front end] trying to install sample_fe but fail in make
Hi,
I looked at the config.log in libgcc and As Andi predict, it is a problem of
libmpc (please find bellow a snipset of config.log input )
but mpc is well installed and when I enable the sample_fe front end, the
configure, make and make install work perfectly with gcc 4.4.4
the problem comes from dev_gcc that I download from git, although I am using the
last version of mpc: 0.82.
should I use other version ??
I verified that the file libmpc.so.2 exists in the /usr/local/lib but tthe
config.log said "cannot open shared object file: No such file or directory"
any idea ??
configure:2993: /export/home/charfi/Bureau/objgcc2/./gcc/xgcc
-B/export/home/charfi/Bureau/objgcc2/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3004: $? = 1
configure:2993: /export/home/charfi/Bureau/objgcc2/./gcc/xgcc
-B/export/home/charfi/Bureau/objgcc2/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3004: $? = 1
configure:3020: /export/home/charfi/Bureau/objgcc2/./gcc/xgcc
-B/export/home/charfi/Bureau/objgcc2/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5
/export/home/charfi/Bureau/objgcc2/./gcc/cc1: error while loading shared
libraries: libmpc.so.2: cannot open shared object file: No such file or
directory
configure:3023: $? = 1
configure:3211: checking for suffix of object files
configure:3233: /export/home/charfi/Bureau/objgcc2/./gcc/xgcc
-B/export/home/charfi/Bureau/objgcc2/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include -c -g -O2 conftest.c >&5
/export/home/charfi/Bureau/objgcc2/./gcc/cc1: error while loading shared
libraries: libmpc.so.2: cannot open shared object file: No such file or
directory
configure:3237: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3251: error: in
`/export/home/charfi/Bureau/objgcc2/i686-pc-linux-gnu/libgcc':
configure:3254: error: cannot compute suffix of object files: cannot compile
----- Message d'origine ----
De : Andi Hellmund <mail@andihellmund.com>
À : charfi asma <charfiasma@yahoo.fr>
Cc : Philip Herron <redbrain@gcc.gnu.org>; gcc-help@gcc.gnu.org
Envoyé le : Lun 23 août 2010, 22h 32min 51s
Objet : Re: [GCC front end] trying to install sample_fe but fail in make
Hey ASMA,
> I used git to get the current gcc-dev directory and I tried to install python,
>gcalc and sample_fe at the same time.
> I configured with and It worked when I call make bootstrap, I get an error
>dealing with the GTY (GTY must be declared before identifier) in the sfe1.h
>(sample_fe front end)
Yes, this might occur if you use older versions (for example built for 4.4) in
4.5. builds. The handling of GTY(()) slightly changed with 4.5 . But, you
already corrected it accordingly.
> checking for suffix of object files... configure: error: in
>`/export/home/charfi/objdir/i686-pc-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
You'll need to look at the file config.log in directory
/export/home/charfi/objdir/i686-pc-linux-gnu/libgcc. It will tell you what's
missing. Maybe you're just missing a depending library (mpc, mpfr, gmp).
Cheers,
Andi