uClibc buildlog for 20061221 snapshot (svn r17024)
Atsushi Nemoto
anemo at mba.ocn.ne.jp
Thu Dec 21 15:40:19 UTC 2006
On 21 Dec 2006 05:29:10 EST, Mike Frysinger <vapier at gentoo.org> wrote:
> mipsn64 | mips | Compile | FAIL!
> mipsn64el | mips | Compile | FAIL!
I think this is test/Rules.mak problem. The command "make test V=1
COMPILE_ONLY=1 UCLIBC_ONLY=1" shows me:
mips64el-linux-gcc -s -Wl,-warn-common -B../../lib -Wl,-rpath,../../lib -Wl,-rpath-link,../../lib -Wl,--dynamic-linker,../../lib/ld-uClibc.so.0 arg_test.o -o arg_test
../../lib/libc.so.0: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
There is no -mabi=64 option here. This options is part of CPU_CFLAGS
(not CPU_LDFLAGS). It seems some confusions around here.
* test/Rules.mak is using $(CPU_LDFLAGS) for LDFLAGS
* LDFLAGS is passwd to $(CC), not $(LD)
* CPU_LDFLAGS is always null. CPU_LDFLAGS-y contains ld options.
* CPU_LDFLAGS-y contains options for _ld_, not _cc_.
Finally, I think this patch resolve this problem.
--- uClibc.org/test/Rules.mak 2006-12-21 22:47:35.000000000 +0900
+++ uClibc/test/Rules.mak 2006-12-22 00:18:48.610491618 +0900
@@ -80,7 +80,7 @@
CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) -I$(top_builddir)include $(PTINC)
HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS)
-LDFLAGS := $(CPU_LDFLAGS)
+LDFLAGS := $(CPU_CFLAGS)
ifeq ($(DODEBUG),y)
CFLAGS += -g
HOST_CFLAGS += -g
More information about the uClibc
mailing list