On Tue, May 31, 2016 at 11:08 PM, Waldemar Brodkorb <wbx(a)uclibc-ng.org> wrote:
Hi Leonid,
you recently fixed a bug somehow related to static linking stuff.
Do you have an idea why compiling for PowerPC fails like
this when using static linking:
Looks like conditional #ifdef's conflict somewhere. Have no idea why
problem appear on PPC only yet.
Could you provide your .config for PPC & output of
nm -S libuargp/argp-xinl.os
?
Will be even better if you can publish complete PPC toolchain, this
allow me to reproduce the problem myself.
Regards,
Leonid
/home/wbx/ppc-static/toolchain_qemu-ppc-macppc_uclibc-ng_hard/usr/bin/ppc-openadk-linux-uclibc-gcc
-Wl,-EB -Wl,-z,now -Wl,-static -static-libgcc
-Wl,-rpath,/home/wbx/ppc-static/toolchain_build_qemu-ppc-macppc_uclibc-ng_hard/w-uClibc-ng-1.0.15-1/uClibc-ng-1.0.15/test/argp
-L/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/lib
-L/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib
-Wl,-O1 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link
-Wl,/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib
-static bug-argp1.o -o bug-argp1 -luargp
/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib/libc.a(sigsetops.os):
In function `__GI___sigismember':
sigsetops.c:(.text+0x0): multiple definition of `__sigismember'
/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib/libuargp.a(argp-xinl.os):argp-xinl.c:(.text+0x0):
first defined here
/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib/libc.a(sigsetops.os):
In function `__GI___sigaddset':
sigsetops.c:(.text+0x28): multiple definition of `__sigaddset'
/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib/libuargp.a(argp-xinl.os):argp-xinl.c:(.text+0x28):
first defined here
/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib/libc.a(sigsetops.os):
In function `__GI___sigdelset':
sigsetops.c:(.text+0x4c): multiple definition of `__sigdelset'
/home/wbx/ppc-static/target_qemu-ppc-macppc_uclibc-ng_hard/usr/lib/libuargp.a(argp-xinl.os):argp-xinl.c:(.text+0x4c):
first defined here
collect2: error: ld returned 1 exit status
make[8]: *** [bug-argp1] Error 1
make[7]: *** [_dircompile_argp] Error 2
make[6]: *** [test_compile] Error 2
make[5]: ***
[/home/wbx/ppc-static/toolchain_build_qemu-ppc-macppc_uclibc-ng_hard/w-uClibc-ng-1.0.15-1/uClibc-ng-1.0.15/.installed]
Error 2
make[4]: *** [uclibc-ng-install] Error 2
make[3]: *** [toolchain/final] Error 2
make[2]: *** [world] Error 2
ARM and MIPS works fine.
best regards
Waldemar