This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



> Gesendet: Donnerstag, 07. MÃrz 2013 um 22:12 Uhr
> Von: "Kai Ruottu" <kai.ruottu@wippies.com>
> An: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
> Cc: gcc_mailinglist@abwesend.de
> Betreff: Re: Aw: Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
>
> 7.3.2013 22:55, Kai Ruottu kirjoitti:
> > 7.3.2013 22:19, gcc_mailinglist@abwesend.de 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'
>
>

With the export and the symbolic link it compiles without problems.
Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]