Re: GCC configure problem with 32-bit stuff on x86_64

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

 



Chris Lu wrote:

I am trying to build gcc 4.0.2 on a x86_64 system with 32-bit support.
Apparently it will not configure libstdc++ for a 32-bit build properly
(generates Makefile with no 'all' target) and the error from running
config.status manually is:

checking for sin in -lm... configure: error: Link tests are not
allowed after GCC_NO_EXECUTABLES.

You didn't tell your "x86_64 system" type but let's guess it being
Linux, not FreeBSD, NetBSD or something else...

Just (pre)install the 32-bit C libraries, they should be in '/lib'
and '/usr/lib' in the Linux case. The default 64-bit libs then are
normally in '/lib64' and '/usr/lib64'.

And you can always preinstall only the 'gcc' components from the
'$build/gcc' directory via 'make install-gcc' and then try compiling
and linking a "Hello World" using '-m32', to see if creating 32-bit
executables will succeed. If not, try to fix the problem before going
to configure libiberty and libstdc++... If you cannot invent the fix,
just tell what errors you will get during the "Hello World" linking
and let people to guess the problem. Using the '-Wl,-verbose' in the
GCC command line, giving '-verbose' to the GNU linker, could also help
a lot...



[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