public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling gcc-4.1.2 on 64-bit Ubuntu machines
@ 2011-01-19 14:48 Olumide
  2011-01-19 15:01 ` Cedric Roux
  2011-01-19 15:19 ` Jeff Law
  0 siblings, 2 replies; 22+ messages in thread
From: Olumide @ 2011-01-19 14:48 UTC (permalink / raw)
  To: gcc-help

Hi all,

We are trying to compile the gcc compiler a 64-bit Ubuntu machine -- 
because that is the version of gcc that Autodesk Maya 2011 is built with 
and therefore plugins must be compiled against the same version of gcc.
See: 
http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_environment_Linux_compiler_requirement.htm,topicNumber=d0e677620

Following the instructions in this link we ran

configure --prefix=/opt/gcc412 --program-suffix=412 --enable-shared 
--enable-threads=posix --enable-checking=release --with-system-zlib 
--disable-libunwind-exceptions --enable-__cxa_atexit

followed by

make -j 2 bootstrap

Unfortunately, the process build with the error

/usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27:  error: 
error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h: No such 
file or directory

make[4]: *** [32/crtend.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make: *** [bootstrap] Error 2

We've tried linking the file stubs.h in /usr/include/gnu/ to stubs-32.h 
and tried rebuilding, but this time we get the error message:

/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when 
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching 
for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s.so] Error 1
make[3]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc'
make: *** [bootstrap] Error 2

-----------------------------------------------------------

Update:
We've set the CFAGS environment variable to m64 and tried rebuilding, 
and this time the process went much further but did eventually fail with 
the error message:

/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when 
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching 
for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc

Thanks,

- Olumide



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-01-25 13:51 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 14:48 Compiling gcc-4.1.2 on 64-bit Ubuntu machines Olumide
2011-01-19 15:01 ` Cedric Roux
2011-01-19 15:51   ` Olumide
2011-01-19 16:21     ` Ian Lance Taylor
2011-01-19 16:37       ` Olumide
2011-01-19 16:39         ` Andrew Haley
2011-01-19 17:08           ` Olumide
2011-01-19 17:11             ` Andrew Haley
2011-01-19 20:13               ` Olumide
2011-01-19 21:51                 ` David Daney
2011-01-20 13:56                   ` Olumide
2011-01-20 17:23                     ` Olumide
2011-01-20 20:04                       ` Jonathan Wakely
2011-01-25 10:30                       ` Olumide
2011-01-25 10:59                         ` Jonathan Wakely
2011-01-25 11:34                           ` Olumide
2011-01-25 11:56                             ` Jonathan Wakely
2011-01-25 13:51                               ` Olumide
2011-01-25 10:59                         ` Kai Ruottu
2011-01-19 16:43         ` Cedric Roux
2011-01-19 16:47           ` Jonathan Wakely
2011-01-19 15:19 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).