This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4 installation problems: libc is somewhere unusual
- From: prj at po dot cwru dot edu (Paul Jarc)
- To: Jim Wilson <wilson at specifixinc dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 12 Sep 2003 15:27:10 -0400
- Subject: Re: 3.4 installation problems: libc is somewhere unusual
- Organization: What did you have in mind? A short, blunt, human pyramid?
- References: <m3fzj3xivt.fsf@multivac.cwru.edu><3F60D292.2080304@specifixinc.com>
Jim Wilson <wilson@specifixinc.com> wrote:
> Paul Jarc wrote:
>> My glibc installation is not in the usual place. This means I have to
>> pull a few tricks to build gcc,
>
> Maybe you can use the configure option --with-sysroot?
Thanks, that helped. I set --with-sysroot to (a symlink to) the glibc
installation prefix, edited the Makefile to set
NATIVE_SYSTEM_HEADER_DIR relative to the sysroot (/include), set
BOOT_LDFLAGS along with LDFLAGS on the make command line to inclue the
necessary -Wl,--dynamic-linker and -Wl,-R arguments, and now the build
proceeds much farther. Bootstrap completes and the comparison
matches. But I get this error later:
mkdir -p -- i686-pc-linux-gnu/libstdc++-v3
Configuring in i686-pc-linux-gnu/libstdc++-v3
configure: creating cache ../config.cache
checking build system type... i686-pc-linux-gnu
... lots more checks ...
checking for g++ that supports -ffunction-sections -fdata-sections... yes
checking for sin in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/fs/data/mount/home/prj/src/spf/gcc-3.4-20030910-build'
make: *** [bootstrap-lean] Error 2
This seems like it might even be not my fault. :) Any ideas?
paul