This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[crosstool-ng] arm: stage libc fails with message: ld.so: hidden symbol `rtld_errno' isn't defined


Hi!

I tried cross compiling arm gnu toolkit for cygwin and darwin.
Both times it failed at libc stage linking ld.so with message
ld.so: hidden symbol `rtld_errno' isn't defined.

I can't find a clue. Any help is welcome :)


A crosstool-ng config for darwin attached.


Full linker output follows:
[ALL ] arm-unknown-linux-gnu-gcc -nostdlib -nostartfiles -shared -o /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/ld.so -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os -Wl,--version-script=/Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/ld.map -Wl,-soname=ld-linux.so.2 -T /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/ld.so.lds
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `dl_main':
[ALL ] raise.c:(.text+0x908): undefined reference to `__open'
[ALL ] raise.c:(.text+0x195c): undefined reference to `__access'
[ALL ] raise.c:(.text+0x3adc): undefined reference to `__access'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `lose':
[ALL ] raise.c:(.text+0x4a04): undefined reference to `__close'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `open_verify':
[ALL ] raise.c:(.text+0x4b14): undefined reference to `__open'
[ALL ] raise.c:(.text+0x4b40): undefined reference to `__libc_read'
[ALL ] raise.c:(.text+0x4d10): undefined reference to `__close'
[ALL ] raise.c:(.text+0x4d58): undefined reference to `__lseek'
[ALL ] raise.c:(.text+0x4d68): undefined reference to `__libc_read'
[ALL ] raise.c:(.text+0x4da0): undefined reference to `__lseek'
[ALL ] raise.c:(.text+0x4db0): undefined reference to `__libc_read'
[ALL ] raise.c:(.text+0x4fa4): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x4fb4): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x4fbc): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `open_path':
[ALL ] raise.c:(.text+0x526c): undefined reference to `__GI___xstat64'
[ALL ] raise.c:(.text+0x5324): undefined reference to `__GI___fxstat64'
[ALL ] raise.c:(.text+0x5344): undefined reference to `__close'
[ALL ] raise.c:(.text+0x55b8): undefined reference to `__close'
[ALL ] raise.c:(.text+0x55e0): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x55f0): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_map_object_from_fd':
[ALL ] raise.c:(.text+0x565c): undefined reference to `__GI___fxstat64'
[ALL ] raise.c:(.text+0x56e0): undefined reference to `__close'
[ALL ] raise.c:(.text+0x5e90): undefined reference to `__close'
[ALL ] raise.c:(.text+0x6004): undefined reference to `__lseek'
[ALL ] raise.c:(.text+0x6014): undefined reference to `__libc_read'
[ALL ] raise.c:(.text+0x626c): undefined reference to `__close'
[ALL ] raise.c:(.text+0x65f8): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_map_object':
[ALL ] raise.c:(.text+0x7794): undefined reference to `__close'
[ALL ] raise.c:(.text+0x7d74): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_new_object':
[ALL ] raise.c:(.text+0x9ee4): undefined reference to `__getcwd'
[ALL ] raise.c:(.text+0x9fe8): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_protect_relro':
[ALL ] raise.c:(.text+0xa2e8): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_relocate_object':
[ALL ] raise.c:(.text+0xb390): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_map_object_deps':
[ALL ] raise.c:(.text+0xcb70): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0xcb9c): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_sysdep_read_whole_file':
[ALL ] raise.c:(.text+0xe634): undefined reference to `__open'
[ALL ] raise.c:(.text+0xe650): undefined reference to `__GI___fxstat64'
[ALL ] raise.c:(.text+0xe674): undefined reference to `__close'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_start_profile':
[ALL ] raise.c:(.text+0xf274): undefined reference to `__open'
[ALL ] raise.c:(.text+0xf290): undefined reference to `__GI___fxstat64'
[ALL ] raise.c:(.text+0xf2c0): undefined reference to `__close'
[ALL ] raise.c:(.text+0xf360): undefined reference to `__close'
[ALL ] raise.c:(.text+0xf3c8): undefined reference to `__close'
[ALL ] raise.c:(.text+0xf4bc): undefined reference to `__lseek'
[ALL ] raise.c:(.text+0xf4f4): undefined reference to `__libc_write'
[ALL ] raise.c:(.text+0xf738): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0xf740): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0xf758): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `__GI__dl_make_stack_executable':
[ALL ] raise.c:(.text+0x10ef0): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_sysdep_start':
[ALL ] raise.c:(.text+0x13468): undefined reference to `__libc_check_standard_fds'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_dl_discover_osversion':
[ALL ] raise.c:(.text+0x14098): undefined reference to `__open'
[ALL ] raise.c:(.text+0x140ac): undefined reference to `__read'
[ALL ] raise.c:(.text+0x140b8): undefined reference to `__close'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `__strtoul_internal':
[ALL ] raise.c:(.text+0x1462c): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `brk':
[ALL ] raise.c:(.text+0x149b0): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x149b4): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `mmap':
[ALL ] raise.c:(.text+0x14bd0): undefined reference to `__syscall_error'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `__local_syscall_error':
[ALL ] raise.c:(.text+0x14bf0): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x14c24): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x14c54): undefined reference to `rtld_errno'
[ALL ] raise.c:(.text+0x14c84): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os: In function `_exit':
[ALL ] raise.c:(.text+0x14cd4): undefined reference to `rtld_errno'
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/librtld.os:raise.c:(.text+0x14cd8): more undefined references to `rtld_errno' follow
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/buildtools/lib/gcc/arm-unknown-linux-gnu/4.7.2/../../../../arm-unknown-linux-gnu/bin/ld: /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/ld.so: hidden symbol `rtld_errno' isn't defined
[ALL ] /Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/buildtools/lib/gcc/arm-unknown-linux-gnu/4.7.2/../../../../arm-unknown-linux-gnu/bin/ld: final link failed: Bad value
[ERROR] collect2: error: ld returned 1 exit status
[ERROR] make[3]: *** [/Users/luch/src/other/xtool-arm/1/.build/arm-unknown-linux-gnu/build/build-libc-final/elf/ld.so] Error 1
[ERROR] make[2]: *** [elf/subdir_lib] Error 2
[ERROR] make[1]: *** [all] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing C library'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@158]
[ERROR] >> called from: do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@441]
[ERROR] >> called from: do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR] >> called from: do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@598]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/Users/luch/bin/xtool/docs/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 92:57.00)


--
Thanks in advance
Regards
Alex.

Attachment: crosstool-ng.config
Description: Text document

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]