Re: Aw: Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



7.3.2013 22:55, Kai Ruottu kirjoitti:
7.3.2013 22:19, gcc_mailinglist@xxxxxxxxxxx kirjoitti:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory

The previous seems to be the problem...  Basically the Ubuntu's custom
ld should know where these startups are, in '/usr/lib/x86_64-linux-gnu'
I think. Please check where they really are in your system...

If the command 'ld -verbose' (used with '| less') doesn't show the places where they are in the 'SEARCH_DIR' or something in the output beginning, then
something is broken :-(

Searching with Google for "building GCC for Ubuntu" may tell what are the
problems and workarounds, Ubuntu isn't a "standard" Linux but somehow
"custom".


OK, in :

http://solarianprogrammer.com/2012/04/13/building-gcc-4-7-on-ubuntu-12-04/

there were instructions to set in environment (in your case) :

export LD_LIBRARY_PATH=/opt/gcc_4_7_2/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu

before 'configure' and 'make' and make a symlink :

sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

before 'make install'



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux