RE: compiling newlib

Christophe MONAT via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <PR3PR10MB38508E3C7B0C79FCB9BFBC25E0570@PR3PR10MB3850.EURPRD10.PROD.OUTLOOK.COM>
Paul,

My bad -- probably the mix of glibc and libm-newlib at link-time, sorry for the noise.

Thanks for your pointer, indeed I was aware of your work on that topic ("Accuracy of Mathematical Functions in Single Precision") . Claude-Pierre Jeannerod mentioned it to me some time ago and I had a look - I encourage readers of the list interested by that topic to read it too.

Best regards,
--C

-----Original Message-----
From: Paul Zimmermann <[email protected]> 
Sent: Tuesday, August 25, 2020 10:39 AM
To: Christophe MONAT <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: compiling newlib

       Dear Christophe,

> + #include <errno.h>
> probably would have avoided the trouble to add newlib-specific code.

of course I tried, but I get with #include <errno.h>:

$ gcc e.c /localdisk/zimmerma/newlib/libm/libm.a
/usr/bin/ld: /localdisk/zimmerma/newlib/libm/libm.a(lib_a-k_standard.o): in function `__kernel_standard':
k_standard.c:(.text+0x39): undefined reference to `__errno'
/usr/bin/ld: k_standard.c:(.text+0x59): undefined reference to `__errno'
/usr/bin/ld: k_standard.c:(.text+0x7f): undefined reference to `__errno'
/usr/bin/ld: k_standard.c:(.text+0xa1): undefined reference to `__errno'
/usr/bin/ld: k_standard.c:(.text+0xc1): undefined reference to `__errno'
/usr/bin/ld: /localdisk/zimmerma/newlib/libm/libm.a(lib_a-k_standard.o):k_standard.c:(.text+0xe9): more undefined references to `__errno' follow
collect2: error: ld returned 1 exit status

Best regards,
Paul

PS: I discovered that while comparing different libraries for single-precision
functions: <https://members.loria.fr/PZimmermann/papers/accuracy.pdf>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.