public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "piotr.oniszczuk at gmail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/25920] New: cross-compiling for ARM target fails at linking ld.so.new if THUMB used Date: Mon, 04 May 2020 18:05:53 +0000 [thread overview] Message-ID: <bug-25920-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=25920 Bug ID: 25920 Summary: cross-compiling for ARM target fails at linking ld.so.new if THUMB used Product: glibc Version: 2.31 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: piotr.oniszczuk at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- Created attachment 12501 --> https://sourceware.org/bugzilla/attachment.cgi?id=12501&action=edit glibc config.log from failed arm thumb build Hi, I’m trying to build cross-gcc for arm family. Whole multistep process i'm using of building 9.3gcc cross-gcc works ok for: i386, x86_64, aarch64 and arm - but fails in arm for thumb case. gcc9.3.0 cross-compiler I’m using to build glibc is build with multi-lib and provides following multi-libs: arm/v5te/softfp;@marm@march=armv5te+fp@mfloat-abi=softfp arm/v5te/hard;@marm@march=armv5te+fp@mfloat-abi=hard thumb/nofp;@mthumb@mfloat-abi=soft thumb/v7/nofp;@mthumb@march=armv7@mfloat-abi=soft thumb/v7+fp/softfp;@mthumb@march=armv7+fp@mfloat-abi=softfp thumb/v7+fp/hard;@mthumb@march=armv7+fp@mfloat-abi=hard thumb/v7-r+fp.sp/softfp;@mthumb@march=armv7-r+fp.sp@mfloat-abi=softfp thumb/v7-r+fp.sp/hard;@mthumb@march=armv7-r+fp.sp@mfloat-abi=hard thumb/v7-a/nofp;@mthumb@march=armv7-a@mfloat-abi=soft thumb/v7-a+fp/softfp;@mthumb@march=armv7-a+fp@mfloat-abi=softfp thumb/v7-a+fp/hard;@mthumb@march=armv7-a+fp@mfloat-abi=hard thumb/v7-a+simd/softfp;@mthumb@march=armv7-a+simd@mfloat-abi=softfp thumb/v7-a+simd/hard;@mthumb@march=armv7-a+simd@mfloat-abi=hard thumb/v7ve+simd/softfp;@mthumb@march=armv7ve+simd@mfloat-abi=softfp thumb/v7ve+simd/hard;@mthumb@march=armv7ve+simd@mfloat-abi=hard thumb/v8-a/nofp;@mthumb@march=armv8-a@mfloat-abi=soft thumb/v8-a+simd/softfp;@mthumb@march=armv8-a+simd@mfloat-abi=softfp thumb/v8-a+simd/hard;@mthumb@march=armv8-a+simd@mfloat-abi=hard Buildiding glibc 2.31 for ARM works ok for target: -marm -march=armv5te+fp -mfloat-abi=softfp Build fails however (with the same error) for any ARM target with THUMB i.e.: -mthumb -march=armv7 -mfloat-abi=soft build error is following: arm-minimyth-linux-gnueabi-gcc -Wl,--as-needed -pipe -pipe -march=armv7 -mfloat-abi=soft -O2 -fno-lto -nostdlib -nostartfiles -shared -o /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/ld.so.new \ -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs -Wl,-z,now \ /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os -Wl,--version-script=/home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/ld.map \ -Wl,-soname=ld-linux.so.3 \ -Wl,-defsym=_begin=0 /home/piotro/minimyth-dev/images/build/usr/lib/gcc/arm-minimyth-linux-gnueabi/9.3.0/../../../../arm-minimyth-linux-gnueabi/bin/ld: /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os: in function `init_tls': rtld.c:(.text+0x520): undefined reference to `__libc_do_syscall' /home/piotro/minimyth-dev/images/build/usr/lib/gcc/arm-minimyth-linux-gnueabi/9.3.0/../../../../arm-minimyth-linux-gnueabi/bin/ld: /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os: in function `dl_main': rtld.c:(.text+0x2426): undefined reference to `__libc_do_syscall' /home/piotro/minimyth-dev/images/build/usr/lib/gcc/arm-minimyth-linux-gnueabi/9.3.0/../../../../arm-minimyth-linux-gnueabi/bin/ld: /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os: in function `_dl_lookup_symbol_x': (.text+0x798c): undefined reference to `__libc_do_syscall' /home/piotro/minimyth-dev/images/build/usr/lib/gcc/arm-minimyth-linux-gnueabi/9.3.0/../../../../arm-minimyth-linux-gnueabi/bin/ld: /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os: in function `_dl_relocate_object': (.text+0x913e): undefined reference to `__libc_do_syscall' /home/piotro/minimyth-dev/images/build/usr/lib/gcc/arm-minimyth-linux-gnueabi/9.3.0/../../../../arm-minimyth-linux-gnueabi/bin/ld: /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os: in function `_dl_fixup': (.text+0xabac): undefined reference to `__libc_do_syscall' /home/piotro/minimyth-dev/images/build/usr/lib/gcc/arm-minimyth-linux-gnueabi/9.3.0/../../../../arm-minimyth-linux-gnueabi/bin/ld: /home/piotro/minimyth-dev/script/devel/glibc/work/main.d/glibc-2.31_build/elf/librtld.os:(.text+0xafc0): more undefined references to `__libc_do_syscall' follow collect2: error: ld returned 1 exit status As whole (exactly the same building procedure with exactly the same sources) works ok for: i386, x86_64, aarch64 and non-THUMB ARM targets - failed ARM builds for targets with THUMB I’m considering as bug in glibc. glibc config.log from failed arm thumb build is attached. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2020-05-04 18:05 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-04 18:05 piotr.oniszczuk at gmail dot com [this message] 2020-05-04 18:21 ` [Bug libc/25920] " joseph at codesourcery dot com 2020-05-04 19:21 ` piotr.oniszczuk at gmail dot com 2020-05-04 19:37 ` joseph at codesourcery dot com 2020-05-04 20:31 ` piotr.oniszczuk at gmail dot com 2020-05-04 20:41 ` piotr.oniszczuk at gmail dot com 2020-05-05 0:10 ` joseph at codesourcery dot com 2020-05-05 6:44 ` piotr.oniszczuk at gmail dot com 2020-05-05 19:48 ` joseph at codesourcery dot com 2020-05-05 19:54 ` piotr.oniszczuk at gmail dot com 2020-05-05 21:16 ` joseph at codesourcery dot com 2020-05-07 11:20 ` piotr.oniszczuk at gmail dot com 2020-05-07 20:33 ` joseph at codesourcery dot com 2020-05-09 17:30 ` piotr.oniszczuk at gmail dot com 2020-05-11 16:54 ` joseph at codesourcery dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-25920-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).