3.4 installation problems: libc is somewhere unusual
Paul Jarc
prj@po.cwru.edu
Fri Sep 12 19:30:00 GMT 2003
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
More information about the Gcc
mailing list