Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [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

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