This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC configure problem with 32-bit stuff on x86_64
- From: Kai Ruottu <karuottu at mbnet dot fi>
- To: Chris Lu <kalenedrael at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 14 Nov 2005 08:30:28 +0200
- Subject: Re: GCC configure problem with 32-bit stuff on x86_64
- References: <a2214ee50511131728j56811907i674e651854ced4b2@mail.gmail.com>
- Reply-to: karuottu at mbnet dot fi
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...