Compiling problem with gcc4.5 libgcc

mike mikereape@onetel.com
Wed May 5 16:00:00 GMT 2010


Hi,

I've been getting the same output at the end:

> make[3]: Leaving directory `/home/mike/gcc-obj-dir/gcc'
> mkdir -p -- i686-pc-linux-gnu/libgcc
> Checking multilib configuration for libgcc...
> Configuring stage 1 in i686-pc-linux-gnu/libgcc
> configure: creating cache ./config.cache
> checking for --enable-version-specific-runtime-libs... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for gawk... gawk
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for i686-pc-linux-gnu-ar... ar
> checking for i686-pc-linux-gnu-lipo... lipo
> checking for i686-pc-linux-gnu-nm... /home/mike/gcc-obj-dir/./gcc/nm
> checking for i686-pc-linux-gnu-ranlib... ranlib
> checking for i686-pc-linux-gnu-strip... strip
> checking whether ln -s works... yes
> checking for i686-pc-linux-gnu-gcc... 
> /home/mike/gcc-obj-dir/./gcc/xgcc -B/home/mike/gcc-obj-dir/./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
> checking for suffix of object files... configure: error: in 
> `/home/mike/gcc-obj-dir/i686-pc-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[2]: *** [configure-stage1-target-libgcc] Error 1
> make[2]: Leaving directory `/home/mike/gcc-obj-dir'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/mike/gcc-obj-dir'
> make: *** [all] Error 2
Immediately after that I did this:

> [root@desktop gcc-obj-dir]# ls
> build-i686-pc-linux-gnu  i686-pc-linux-gnu  libiberty       stage_final
> config.log         intl            Makefile       stage_last
> config.status         libcpp            serdep.tmp       zlib
> gcc             libdecnumber        stage_current
> [root@desktop gcc-obj-dir]# ls i686*
> libgcc
> [root@desktop gcc-obj-dir]# cd i686*
> [root@desktop i686-pc-linux-gnu]# ls
> libgcc
> [root@desktop i686-pc-linux-gnu]# cd libgcc
> [root@desktop libgcc]# ls
> config.cache  config.log  multilib.out
> [root@desktop libgcc]#
so it seems that there are no object files there.  I'm trying to do this 
on a straight Fedora 11 installation on a Pentium 4 with 
hyper-threading.  gcc-obj-dir is the object/build directory I used.  I 
unpacked the distribution into a different directory, 
~mike/LLJVM/gcc/gcc-4.5.0/gcc-4.5.0.  The source distribution I used was 
gcc-4.5.0.tar.bz2.

I ran the following two commands in ~mike/gcc-obj-dir by su:

~mike/LLJVM/gcc/gcc-4.5.0/gcc-4.5.0/configure --program-suffix=-4.5.0
make

I pre-installed gmp, mpc and mpfr with the usual configure/make/make 
check/make install (as applicable).  They all installed fine.

I've tried this many different ways including having srcdir and objdir 
the same and trying to build just the C compiler but the results are 
always the same.

One last thing.  The directory /usr/libexec/gcc/i586-redhat-linux exists 
on my machine but not the i686 version.  Could the build be picking up 
the wrong target?

I'd be very grateful for any help.  I'm completely new to gcc builds and 
the top-level Makefile is nearly 22000 lines so I'm really all at sea 
here.  (I really didn't understand the previous discussion in this 
thread.  I've replied to it this way since my output is identical.)

Thanks very much in advance to anybody who can help,
Mike

On 05/05/2010 11:17 AM, Kai Ruottu wrote:
> 5.5.2010 13:12, Kai Ruottu kirjoitti:
>
>> The easy way would be to symlink the mpc-x.y sources into the main
>> gcc-4.5.0 source dir as 'pmc'.
>
> Oops, of course as 'mpc' !
>
>> Please see the other discussion on
>> the gcc-help list just now too, NOT ONLY that sent personally to you !
>
> The problems related to symlinking 'ppl' additionally with
> 'gmp', 'mpfr' and 'mpc' is what I mean...
>



More information about the Gcc-help mailing list