* [Buildroot] Is this a bug? libm in uclibc 0.9.32
@ 2011-06-24 19:52 raymond zhao
2011-06-24 20:50 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: raymond zhao @ 2011-06-24 19:52 UTC (permalink / raw)
To: buildroot
Hi,
I am trying to build tool chain with uclibc 0.9.32 and gcc 4.6.x for
powerpc 8540 processor. there are errors when it build libm lib. I do
not know if it a bug or there are some thing wrong in my config.
1. No one defines libm_ARCH_fpu_OUT in make files, so the files under
directory toolchain\uClibc-0.9.32\libm\powerpc\e500\fpu will nor be
build at all. then there will be a link error for unsolved functions.
2. Somehow the NOT_IN_lic is not passed to the build command line for
libm/powerpc/e500/fpu/fe_nomask.c, then the __libc_errno in this
files will compain.
Here is my patch to make it works. It it is a bug and I am fixing it
correctly. I will be very happy to see them in next release. :-)
--- a/libm/powerpc/e500/fpu/Makefile.arch 2011-03-16 15:11:13.000000000 -0400
+++ b/libm/powerpc/e500/fpu/Makefile.arch.new 2011-05-25
12:15:55.619014656 -0400
@@ -5,6 +5,7 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
+libm_ARCH_fpu_OUT := $(libm_ARCH_fpu_DIR)
libm_ARCH_SRC:=$(wildcard $(libm_ARCH_fpu_DIR)/*.c)
libm_ARCH_OBJ:=$(patsubst
$(libm_ARCH_fpu_DIR)/%.c,$(libm_ARCH_fpu_OUT)/%.o,$(libm_ARCH_SRC))
--- a/libm/powerpc/e500/fpu/fe_nomask.c 2011-03-16 15:11:13.000000000 -0400
+++ b/libm/powerpc/e500/fpu/fe_nomask.c 2011-05-25 12:35:15.015045993 -0400
@@ -17,6 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define NOT_IN_libc //Raymond add this to kill __libc_errno error
#include <fenv.h>
#include <errno.h>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Is this a bug? libm in uclibc 0.9.32
2011-06-24 19:52 [Buildroot] Is this a bug? libm in uclibc 0.9.32 raymond zhao
@ 2011-06-24 20:50 ` Mike Frysinger
2011-06-24 21:12 ` raymond zhao
0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2011-06-24 20:50 UTC (permalink / raw)
To: buildroot
On Fri, Jun 24, 2011 at 15:52, raymond zhao wrote:
> 1. No one defines libm_ARCH_fpu_OUT in make files, so the files under
> directory toolchain\uClibc-0.9.32\libm\powerpc\e500\fpu will nor be
> build at all. then there will be a link error for unsolved functions.
> 2. Somehow the NOT_IN_lic is not passed to the build command line for
> libm/powerpc/e500/fpu/fe_nomask.c, then the ?__libc_errno ?in this
> files will compain.
random .c files should not be touched as this is a build file bug.
see libm/Makefile:CFLAGS-libm ... those should be applied when
building all files under libm/.
-mike
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Is this a bug? libm in uclibc 0.9.32
2011-06-24 20:50 ` Mike Frysinger
@ 2011-06-24 21:12 ` raymond zhao
2011-06-25 1:00 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: raymond zhao @ 2011-06-24 21:12 UTC (permalink / raw)
To: buildroot
I agree.
But does anyone have a better solution to fix this bug?
Also, how about the first one? Does anyone have same experience as me?
thanks,
raymond
On Fri, Jun 24, 2011 at 4:50 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Fri, Jun 24, 2011 at 15:52, raymond zhao wrote:
>> 1. No one defines libm_ARCH_fpu_OUT in make files, so the files under
>> directory toolchain\uClibc-0.9.32\libm\powerpc\e500\fpu will nor be
>> build at all. then there will be a link error for unsolved functions.
>> 2. Somehow the NOT_IN_lic is not passed to the build command line for
>> libm/powerpc/e500/fpu/fe_nomask.c, then the ?__libc_errno ?in this
>> files will compain.
>
> random .c files should not be touched as this is a build file bug.
> see libm/Makefile:CFLAGS-libm ... those should be applied when
> building all files under libm/.
> -mike
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Is this a bug? libm in uclibc 0.9.32
2011-06-24 21:12 ` raymond zhao
@ 2011-06-25 1:00 ` Mike Frysinger
2011-06-26 21:07 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: Mike Frysinger @ 2011-06-25 1:00 UTC (permalink / raw)
To: buildroot
On Friday, June 24, 2011 17:12:30 raymond zhao wrote:
please dont top post
> I agree.
> But does anyone have a better solution to fix this bug?
i pointed at the correct solution. it's simply a matter of implementing it.
also, this is a uClibc issue, not buildroot, so it probably should be taken up
there. like a bug filed in their tracker.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110624/7009a7bd/attachment.asc>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Is this a bug? libm in uclibc 0.9.32
2011-06-25 1:00 ` Mike Frysinger
@ 2011-06-26 21:07 ` Peter Korsgaard
2011-06-27 12:43 ` raymond zhao
0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2011-06-26 21:07 UTC (permalink / raw)
To: buildroot
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> On Friday, June 24, 2011 17:12:30 raymond zhao wrote:
Mike> please dont top post
>> I agree.
>> But does anyone have a better solution to fix this bug?
Mike> i pointed at the correct solution. it's simply a matter of implementing it.
Mike> also, this is a uClibc issue, not buildroot, so it probably
Mike> should be taken up there. like a bug filed in their tracker.
Indeed. Please report this issue to the uClibc devs.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] Is this a bug? libm in uclibc 0.9.32
2011-06-26 21:07 ` Peter Korsgaard
@ 2011-06-27 12:43 ` raymond zhao
0 siblings, 0 replies; 6+ messages in thread
From: raymond zhao @ 2011-06-27 12:43 UTC (permalink / raw)
To: buildroot
On Sun, Jun 26, 2011 at 5:07 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
>
> ?Mike> On Friday, June 24, 2011 17:12:30 raymond zhao wrote:
> ?Mike> please dont top post
>
> ?>> I agree.
> ?>> But does anyone have a better solution to fix this bug?
>
> ?Mike> i pointed at the correct solution. ?it's simply a matter of implementing it.
>
> ?Mike> also, this is a uClibc issue, not buildroot, so it probably
> ?Mike> should be taken up there. ?like a bug filed in their tracker.
>
> Indeed. Please report this issue to the uClibc devs.
>
> --
> Bye, Peter Korsgaard
>
I see. I will move this topic to ucLibC mailing list. Thanks,
raymond
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-06-27 12:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-24 19:52 [Buildroot] Is this a bug? libm in uclibc 0.9.32 raymond zhao
2011-06-24 20:50 ` Mike Frysinger
2011-06-24 21:12 ` raymond zhao
2011-06-25 1:00 ` Mike Frysinger
2011-06-26 21:07 ` Peter Korsgaard
2011-06-27 12:43 ` raymond zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox