bug-glibc
[Top][All Lists]
Advanced

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

re: bug 3275: GLIBC-2.2.5 for power PC does not build with option --with


From: Dan Kegel
Subject: re: bug 3275: GLIBC-2.2.5 for power PC does not build with option --without-fp
Date: Wed, 03 Jul 2002 14:27:22 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020518 Debian/1.0rc2-2pre3v2

Nick Lekkas filed bug 3275 (see
http://bugs.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=default&pr=3275 )
which says

Executed the configure command with the following ARGS:

configure  --prefix=/usr
            --enable-shared
            --without-fp
            --without-gd
            --without-gd-lib
            --without-xcoff
            --without-gmp
            --enable-kernel=2.2.16
            --enable-add-ons=linuxthreads
            --build=i686-pc-linux-gnu
            --host=i686-pc-linux-gnu
--with-headers=/home/nlekkas/dl_test/build/stagedir/kernel/include

There appears to be an error in the configuration
scripts and probably in the sysdeps/powerpc/fclrexcpt.c
routine. The compilation fails because the
fenv_libc.h include file is not in the include path.

The workaround was discussed shortly thereafter in the crossgcc
mailing list, I think.  See

http://sources.redhat.com/ml/crossgcc/2002-05/msg00131.html

We use the workaround described there plus a couple other
patches, and although we're not done testing, at least
busybox runs and linux builds.  Here's an excerpt from
our glibc build script:

mv sysdeps/powerpc/fclrexcpt.c sysdeps/powerpc/fpu/
rm sysdeps/powerpc/memset.S

# fix sysdeps/powerpc/Makefile
patch -p0 < ~/xgcc3/glibc-ppc-nofpu.patch1

# add WITH_FP to config.h.in,
# fix sysdeps/unix/sysv/linux/init-first.c to use it
patch -p0 < ~/xgcc3/glibc-ppc-nofpu.patch2

# fix setjmp
patch -p1 < ~/xgcc3/glibc-ppc-nofpu.patch3

The patches and script are online at http://kegel.com/xgcc3/

Hope that helps.
- Dan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]