Trouble building gcc-4.3.4 on non-standard location

MFL Commissioner
Fri Jan 14 06:59:00 GMT 2011

On 1/14/2011 7:17 AM, apoorv kulshrestha wrote:
> Hi,
> I need to build gcc-4.3.4 on non-standard location (NFS mounted). I configured:
> $../gcc-4.3.4/configure --prefix={insall dir} --with-gmp={install dir}
> --with-mpfr={install dir} --with-local-prefix={install dir}
> --disable-shared
> I ran make -j1. But I keep getting:
> checking for suffix of object files... configure: error: cannot
> compute suffix of object files: cannot compile
> In x86_64-unknown-linux-gnu/libgcc/config.log, I can see:
> /home/panthdev/apps/gcc-4.3.4-compliant/compiler/objdir/./gcc/cc1:
> error while loading shared libraries: cannot open shared
> object file: No such file or directory
> is there in {install dir}/lib. Also if I set
> LD_LIBRARY_PATH to {install dir}/lib, then it finds the
> but config.log starts complaining:
> /tmp/cce9YhFK.s: Assembler messages: /tmp/cce9YhFK.s:16: Error: bad
> register name %rbp' /tmp/cce9YhFK.s:18: Error: bad register name%rsp'
> Please help. Thanks in advance.
> -AK
The configure script also looks for library headers.  Do you have for 
example {install_dir}/include/mpfr.h ?
If not, that's probably the issue.  You'll need gmp.h too.

More information about the Gcc-help mailing list