Unable to build uClibc with _FILE_OFFSET_BITS=64
mail-an-mw123 at gmx.de
mail-an-mw123 at gmx.de
Wed Jan 9 10:12:09 UTC 2013
> > If I force definition of the _FILE_OFFSET_BITS flag in file
> include/features.h I get the following error:
>
> This is not how you are supposed to turn on LFS.
It was just a test because simply turn on LFS does not define _FILE_OFFSET_BITS.
> >
> > ######################################
> > # build uClibc #
> > ######################################
> > make -C lib/uClibc/ -f Makefile
>
> please show me that Makefile or the relevant parts of it.
I've attached the makefiles in the uClibc root folder.
>
> Can you try to build uClibc manually, like:
>
> $ git clone -q git://git.uClibc.org/uClibc.git /tmp/uClibc
> $ cd !$
> cd /tmp/uClibc
> $ make CROSS_COMPILE=mips-linux-gnu- ARCH=mips
> (or however your program prefix looks like)
Yields the following:
/tmp/uClibc$ make CROSS_COMPILE=mipsel-linux- ARCH=mipsel all
MKDIR include/bits
GEN include/bits/uClibc_config.h
LN include/sgidefs.h
... [more LN following]
LN include/sys/user.h
GEN include/bits/sysnum.h
MKDIR lib
AS lib/crt1.o
AS lib/Scrt1.o
libc/sysdeps/linux/mips/crt1.S: Assembler messages:
libc/sysdeps/linux/mips/crt1.S:116: Warning: No .cprestore pseudo-op used in PIC code
AS lib/crti.o
AS lib/crtn.o
CC ldso/ldso/ldso.oS
AS ldso/ldso/mips/resolve.oS
ldso/ldso/mips/resolve.S: Assembler messages:
ldso/ldso/mips/resolve.S:151: Warning: No .cprestore pseudo-op used in PIC code
AR cr ldso/ldso/ld-uClibc_so.a
STRIP -x -R .note -R .comment ldso/ldso/ld-uClibc_so.a
LD ld-uClibc-0.9.34-git.so
collect2: ld terminated with signal 11 [Segmentation fault]
/opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: ldso/ldso/ld-uClibc_so.a(ldso.oS): compiled for a little endian system and target is big endian
/opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: ldso/ldso/ld-uClibc_so.a(ldso.oS): endianness incompatible with that of the selected emulation
/opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: failed to merge target specific data of file ldso/ldso/ld-uClibc_so.a(ldso.oS)
/opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: ldso/ldso/ld-uClibc_so.a(resolve.oS): compiled for a little endian system and target is big endian
/opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: ldso/ldso/ld-uClibc_so.a(resolve.oS): endianness incompatible with that of the selected emulation
/opt/BCM/stbgcc-4.5.3-2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.5.3/../../../../mipsel-linux-uclibc/bin/ld: failed to merge target specific data of file ldso/ldso/ld-uClibc_so.a(resolve.oS)
ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `_start':
ldso.c:(.text+0x1c): undefined reference to `_DYNAMIC'
make: *** [lib/ld-uClibc.so] Fehler 1
Thanks and BR
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 432 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130109/7a869db2/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.help
Type: application/octet-stream
Size: 2804 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130109/7a869db2/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.in
Type: application/octet-stream
Size: 19972 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130109/7a869db2/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makerules
Type: application/octet-stream
Size: 17709 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130109/7a869db2/attachment-0007.obj>
More information about the uClibc
mailing list