Skip to contentSkip to conversation

angstrom 2008.1, uclibc: libc.so not found, i. e. not in staging directory

DISCUSSION Paul Menzel 4 participants 8 messages Jul 14, 2010 – Jul 17, 2010

lore
Share & tools
lore
#0 lore raw

Dear OE folks,

I am trying to compile vdr with uclibc. I got the following error.

    /oe/angstrom-dev/cross/armv7a/lib/gcc/arm-angstrom-linux-uclibceabi/4.3.3/../../../../arm-angstrom-linux-uclibceabi/bin/ld: warning: libc.so, needed by /oe/angstrom-dev/cross/armv7a/lib/gcc/arm-angstrom-linux-uclibceabi/4.3.3/../../../../arm-angstrom-linux-uclibceabi/lib/libgcc_s.so, not found (try using -rpath or -rpath-link)

Creating a symlink seems to be a workaround.

        $ ls
        ld-uClibc-0.9.30.2.so  libgcc_s.so.1           libresolv.so.0
        ld-uClibc.so.0         libm-0.9.30.2.so        librt-0.9.30.2.so
        libcrypt-0.9.30.2.so   libm.so.0               librt.so.0
        libcrypt.so.0          libnsl-0.9.30.2.so      libthread_db-0.9.30.2.so
        libc.so.0              libnsl.so.0             libthread_db.so.1
        libdl-0.9.30.2.so      libpthread-0.9.30.2.so  libuClibc-0.9.30.2.so
        libdl.so.0             libpthread.so.0         libutil-0.9.30.2.so
        libgcc_s.so            libresolv-0.9.30.2.so   libutil.so.0
        $ ln -s libc.so.0 libc.so

Any ideas how to fix this properly?

Thanks,

Paul

#1 lore raw

Hi,

hm you want proably uclibc-git anyway because it has nptl-thread support.

Bye Henning

#2 lore raw

uclibc-git: oe_runmake failed: error: '__a1' undeclared (first use in this function) (was: angstrom 2008.1, uclibc: libc.so not found, i. e. not in staging directory)

Dear Henning,

Am Mittwoch, den 14.07.2010, 21:48 +0200 schrieb Henning Heinold:

Quoted 1 line

hm you want probably uclibc-git anyway because it has nptl-thread support.

thank you for the hint. Unfortunately it trying to use uclibc-git.bb fails with the following error in do_compile().

arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -c libm/float_wrappers.c -o libm/acoshf.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -Wnested-externs -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wold-style-declaration -Wold-style-definition -Wnonnull -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -mtune=arm9tdmi -march=armv4t -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -Os -funit-at-a-time -fmerge-all-constants -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -fstrict-aliasing -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/generic -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/tmp/minimal-uclibc-minimal-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /tmp/minimal-uclibc-minimal-dev/cross/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.4.4/include-fixed -isystem /tmp/minimal-uclibc-minimal-dev/cross/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.4.4/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -DNOT_IN_libc -DIS_IN_libm -D_IEEE_LIBM -MT libm/acoshf.o -MD -MP -MF libm/.acoshf.o.dep -DL_acoshf In file included from libpthread/nptl/sysdeps/pthread/pt-sigprocmask.c:22:
./libc/sysdeps/linux/arm/../../../../libc/sysdeps/linux/common/sigprocmask.c: In function '__rt_sigprocmask':
./libc/sysdeps/linux/arm/../../../../libc/sysdeps/linux/common/sigprocmask.c:24: error: '__a1' undeclared (first use in this function)
./libc/sysdeps/linux/arm/../../../../libc/sysdeps/linux/common/sigprocmask.c:24: error: (Each undeclared identifier is reported only once
./libc/sysdeps/linux/arm/../../../../libc/sysdeps/linux/common/sigprocmask.c:24: error: for each function it appears in.)
make: *** [libpthread/nptl/sysdeps/pthread/pt-sigprocmask.oS] Error 1
make: *** Waiting for unfinished jobs....
FATAL: oe_runmake failed

I could reproduce this error with the distributions angstrom-2008.1 and minimal-uclibc.

Is that a known problem?

Thanks,

Paul

#3 lore raw

Re: uclibc-git: oe_runmake failed: error: '__a1' undeclared (first use in this function) (was: angstrom 2008.1, uclibc: libc.so not found, i. e. not in staging directory)

Hi,

seems that this revision fixes ppc and brakes arm. Not good, I will revert the commit.

Bye Henning

#4 lore raw

Re: uclibc-git: oe_runmake failed: error: '__a1' undeclared (first use in this function) (was: angstrom 2008.1, uclibc: libc.so not found, i. e. not in staging directory)

Quoted 4 lines · Henning Heinold

Hi,

seems that this revision fixes ppc and brakes arm. Not good, I will revert the commit.

No need to revert the commit. Just pick the latest tip of uclibc once more. I have fixed it.

Quoted 7 lines

Bye Henning

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#5 lore raw

Re: uclibc-git: oe_runmake failed: error: '__a1' undeclared (first use in this function) (was: angstrom 2008.1, uclibc: libc.so not found, i. e. not in staging directory)

Hi,

its pushed now.

Bye Henning

#6 lore raw

Re: angstrom-2008.1, uclibc-git: oe_runmake failed: Error: unknown pseudo-op: `.cfi_sections' (was: oe_runmake failed: error: '__a1' undeclared (first use in this function))

Am Donnerstag, den 15.07.2010, 22:16 +0200 schrieb Henning Heinold:

Quoted 1 line

its pushed now.

Henning and Khem, thank you for your fast and great help!

I hit the next problem with uclibc-git.bb. This time it fails with the distribution angstrom-2008.1 (-ggdb3 removed) but works with the distribution minimal-uclibc.

arm-angstrom-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -c libpthread/nptl/sysdeps/unix/sysv/linux/open.S -o libpthread/nptl/sysdeps/unix/sysv/linux/open.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -Wnested-externs -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wold-style-declaration -Wold-style-definition -Wnonnull -Wundef -funsigned-char -fno-builtin -fno-asm -mlittle-endian -mtune=arm9tdmi -march=armv4t -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb3 -Os -funit-at-a-time -fmerge-all-constants -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -fstrict-aliasing -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/generic -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/tmp/angstrom-dev/sysroots/armv7a-angstrom-linux-uclibceabi/usr/include/ -isystem /tmp/angstrom-dev/cross/armv7a/lib/gcc/arm-angstrom-linux-uclibceabi/4.3.3/include-fixed -isystem /tmp/angstrom-dev/cross/armv7a/lib/gcc/arm-angstrom-linux-uclibceabi/4.3.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -MT libpthread/nptl/sysdeps/unix/sysv/linux/open.o -MD -MP -MF libpthread/nptl/sysdeps/unix/sysv/linux/.open.o.dep -D__ASSEMBLER__ -Wa,--noexecstack -D_LIBC_REENTRANT libpthread/nptl/sysdeps/unix/sysv/linux/open.S: Assembler messages:
libpthread/nptl/sysdeps/unix/sysv/linux/open.S:8: Error: unknown pseudo-op: `.cfi_sections'
libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages:
libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections'
make: *** [libpthread/nptl/sysdeps/unix/sysv/linux/open.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [libpthread/nptl/sysdeps/unix/sysv/linux/close.o] Error 1
libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c:29: warning: no previous prototype for '_longjmp_unwind'
FATAL: oe_runmake failed

The full log is attached compressed. Uncompressed it was 1.7 MB big.

Thanks,

Paul

#7 lore raw

Re: angstrom-2008.1, uclibc-git: oe_runmake failed: Error: unknown pseudo-op: `.cfi_sections' (was: oe_runmake failed: error: '__a1' undeclared (first use in this function))

Quoted 6 lines · Paul Menzel

Am Donnerstag, den 15.07.2010, 22:16 +0200 schrieb Henning Heinold:

Quoted 1 line

its pushed now.

Henning and Khem, thank you for your fast and great help!

Quoted 8 lines

I hit the next problem with uclibc-git.bb. This time it fails with the distribution angstrom-2008.1 (-ggdb3 removed) but works with the distribution minimal-uclibc.

arm-angstrom-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -c libpthread/nptl/sysdeps/unix/sysv/linux/open.S -o libpthread/nptl/sysdeps/unix/sysv/linux/open.o -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -fno-strict-aliasing -Wnested-externs -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wold-style-declaration -Wold-style-definition -Wnonnull -Wundef -funsigned-char -fno-builtin -fno-asm -mlittle-endian -mtune=arm9tdmi -march=armv4t -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb3 -Os -funit-at-a-time -fmerge-all-constants -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -fstrict-aliasing -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sy
sv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/generic -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/tmp/angstrom-dev/sysroots/armv7a-angstrom-linux-uclibceabi/usr/include/ -isystem /tmp/angstrom-dev/cross/armv7a/lib/gcc/arm-angstrom-linux-uclibceabi/4.3.3/include-fixed -isystem /tmp/angstrom-dev/cross/armv7a/lib/gcc/arm-angstrom-linux-uclibceabi/4.3.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -MT libpthread/nptl/sysdeps/unix/sysv/linux/open.o -MD -MP -MF libpthread/nptl/sysdeps/unix/sysv/linux/.open.o.dep -D__ASSEMBLER__ -Wa,--noexecstack -D_LIBC_REENTRANT
libpthread/nptl/sysdeps/unix/sysv/linux/open.S: Assembler messages:
libpthread/nptl/sysdeps/unix/sysv/linux/open.S:8: Error: unknown pseudo-op: `.cfi_sections'

binutils too old?
qemuarm builds fine with 2.20.1, which version of binutils are you trying to use?
See uclibc.org/FAQ#upstream_versions
We support the last two official upstream versions of binutils/gcc, so that'd be binutils >= 2.20.latest and gcc-4.5.latest (i usually use both HEADs plus eventual fixups/tweaks myself). angstrom-2008.1.conf mentions 2.18 which is definitely way too old for uClibc master by now, fyi.

Quoted 23 lines

libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages:
libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections'
make: *** [libpthread/nptl/sysdeps/unix/sysv/linux/open.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [libpthread/nptl/sysdeps/unix/sysv/linux/close.o] Error 1 libpthread/nptl/sysdeps/unix/sysv/linux/jmp-unwind.c:29: warning: no previous prototype for '_longjmp_unwind'
FATAL: oe_runmake failed

The full log is attached compressed. Uncompressed it was 1.7 MB big.

Thanks,

Paul

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel