__sim_exceptions undefined when linking glibc-2.3.2's libm.so with --without-fp

Dan Kegel dank@kegel.com
Thu Jul 31 05:06:00 GMT 2003


Daniel Jacobowitz wrote:
> On Tue, Jul 29, 2003 at 02:53:33PM -0700, Dan Kegel wrote:
> 
>>On ppc405, I'm getting the following when linking glibc's libm:
>>/gcc-3.3-glibc-2.3.2/build-glibc/math/libm_pic.a(fclrexcpt.os)(.text+0x1a): 
>>In function `feclearexcept@GLIBC_2.1':
>>: undefined reference to `__sim_exceptions'
>>
> 
> --without-fp doesn't work.  Try this.  Make up a changelog entry if it
> works.

That (with Roland's change) worked.

Oddly, when run in a glibc-2.3.2 chroot environment, the busybox 0.60.5
binary I compiled under an earlier toolset is misbehaving in a way that
interfered with running my glibc regression test shell script.
Its ash misinterprets
  export BLAH
as
  export
which makes setting environment variables hard.  A workaround (?) is to
compile busybox for debugging; for some reason, then export senses argc properly.
This sounds like a glibc bug that might not be caught by either the gcc or glibc testsuites,
or a bug in busybox that somehow worked with the earlier glibc,
or a bug in the script I use to set up a chroot environment.
Anyway, once I swapped in a -g build of busybox, the subset of the glibc testsuite I use passed
(or at least gave the same results as it did with ppc750/glibc-2.3.2
and {ppc405,ppc750}/glibc-2.2.5).

The exact patch I used is attached.

Thanks!
- Dan
-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glibc-2.3.2-without-fp.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030731/7a679476/attachment.ksh>


More information about the Libc-alpha mailing list