On 2 December 2014 at 19:56, Steve Ellcey <[email protected]> wrote:
> I just tried building uclibc for MIPS after several months and ran into a
> number of build problems.  The first one seems to be related to this change:
>
> commit 41537a770b46f2376e74af58ba4885749339e81e
> Author: Bernhard Reutner-Fischer <[email protected]>
> Date:   Mon Sep 15 22:13:07 2014 +0200
>
>     buildsys: fix IS_IN_lib*
>
>     define NOT_IN_libc / IS_IN_libxxx appropriately
>     to fix pthread_once
>
>     Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
>
> It looks like, after this change, the '-DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\"
> flag is missing when compiling ldso/ldso/ldso.c.  I assume this is
> because of the change in ldso/ldso/Makefile.in from CFLAGS-ldso to
> CFLAGS-rtld.  Is anyone else running into this?  It seems like a very
> generic problem to only be affecting MIPS.

Can you please paste the compiler invocation where -DUCLIBC_LDSO is
missing for a pristine checkout of current master head when building ldso.c?

In my POV we do (for example):
mips-oe-linux-uclibc-gcc  -meb -mabi=32 -mhard-float -march=mips32r2
--sysroot=/data/x-tmp/tmp-uclibc/sysroots/qemumips-tcbootstrap -c
ldso/ldso/ldso.c -o ldso/ldso/ldso.oS -Wall -Wstrict-prototypes
-Wstrict-aliasing -funsigned-char -fno-builtin -fno-asm -std=gnu99
-march=mips32r2 -mtune=mips32r2 -mabi=32 -fno-stack-protector
-nostdinc -I./include -I./include -include libc-symbols.h
-I./libc/sysdeps/linux/mips -I./libc/sysdeps/linux -I./ldso/ldso/mips
-I./ldso/include -I. -Os -funit-at-a-time -fmerge-all-constants
-fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts
-fno-strength-reduce -mno-split-addresses -Os -D__USE_STDIO_FUTEXES__
-DHAVE_FORCED_UNWIND -D_LIBC_REENTRANT -I./libpthread/nptl
-I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/mips
-I./libpthread/nptl/sysdeps/mips -I./libpthread/nptl/sysdeps/mips
-I./libpthread/nptl/sysdeps/unix/sysv/linux
-I./libpthread/nptl/sysdeps/unix/sysv/linux
-I./libpthread/nptl/sysdeps/pthread
-I./libpthread/nptl/sysdeps/pthread/bits
-I./libpthread/nptl/sysdeps/generic -I./libc/sysdeps/linux/common
-isystem 
/data/x-tmp/tmp-uclibc/sysroots/x86_64-linux/usr/lib/mips-oe-linux-uclibc.gcc-cross-initial-mips/gcc/mips-oe-linux-uclibc/4.9.1/include-fixed
-isystem 
/data/x-tmp/tmp-uclibc/sysroots/x86_64-linux/usr/lib/mips-oe-linux-uclibc.gcc-cross-initial-mips/gcc/mips-oe-linux-uclibc/4.9.1/include
-I/data/x-tmp/tmp-uclibc/sysroots/qemumips/usr/include/ -DNDEBUG
-DNOT_IN_libc -DIS_IN_rtld -fno-stack-protector
-fno-omit-frame-pointer -I./ldso/ldso/mips -I./ldso/include
-I./ldso/ldso -DUCLIBC_RUNTIME_PREFIX=\"/\"
-DUCLIBC_LDSO=\"ld-uClibc.so.0\" -DIN_LIB=rtld -fPIC -DSHARED
-DLDSO_ELFINTERP=\"mips/elfinterp.c\" -MT ldso/ldso/ldso.oS -MD -MP
-MF ldso/ldso/.ldso.oS.dep

so, for me there is a proper UCLIBC_LDSO define passed to the driver.
I'm attaching my .config for reference.

What other build problems do you encounter?
Both a smallish 300k uClibc+busybox userspace with 3MB kernel (sic)
image as well as huge images build fine for me here, fwiw.
thanks,

Attachment: oe-mips32r2-oabi.uClibc.config
Description: Binary data

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to