public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "thomas.petazzoni@free-electrons.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107032] New: ARM: libgcc2.c:2174:1: error: r7 cannot be used in 'asm' here Date: Sun, 25 Sep 2022 09:50:41 +0000 [thread overview] Message-ID: <bug-107032-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107032 Bug ID: 107032 Summary: ARM: libgcc2.c:2174:1: error: r7 cannot be used in 'asm' here Product: gcc Version: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: thomas.petazzoni@free-electrons.com Target Milestone: --- When building gcc 10.4.0 or 11.3.0 for Cortex-M3 or M7, the build fails with: ../../../libgcc/libgcc2.c: In function '__clear_cache': ../../../libgcc/libgcc2.c:2174:1: error: r7 cannot be used in 'asm' here 2174 | } | ^ Makefile:501: recipe for target '_clear_cache.o' failed GCC was configured like this: (cd /home/buildroot/autobuild/instance-0/output-1/build/host-gcc-initial-10.4.0/build && rm -rf config.cache; PATH="/home/buildroot/autobuild/instance-0/output-1/host/bin:/home/buildroot/autobuild/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" PKG_CONFIG="/home/buildroot/autobuild/instance-0/output-1/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/buildroot/autobuild/instance-0/output-1/host/lib/pkgconfig:/home/buildroot/autobuild/instance-0/output-1/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/buildroot/autobuild/instance-0/output-1/host/include" CFLAGS="-O2 -I/home/buildroot/autobuild/instance-0/output-1/host/include" CXXFLAGS="-O2 -I/home/buildroot/autobuild/instance-0/output-1/host/include" LDFLAGS="-L/home/buildroot/autobuild/instance-0/output-1/host/lib -Wl,-rpath,/home/buildroot/autobuild/instance-0/output-1/host/lib" INTLTOOL_PERL=/usr/bin/perl CFLAGS="-O2 -I/home/buildroot/autobuild/instance-0/output-1/host/include" LDFLAGS="-L/home/buildroot/autobuild/instance-0/output-1/host/lib -Wl,-rpath,/home/buildroot/autobuild/instance-0/output-1/host/lib" MAKEINFO=missing CFLAGS_FOR_TARGET="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -Wl,-elf2flt=-r -static" CXXFLAGS_FOR_TARGET="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -Wl,-elf2flt=-r -static -Wl,-elf2flt=-r -static" AR_FOR_TARGET=gcc-ar NM_FOR_TARGET=gcc-nm RANLIB_FOR_TARGET=gcc-ranlib CONFIG_SITE=/dev/null ./configure --prefix="/home/buildroot/autobuild/instance-0/output-1/host" --sysconfdir="/home/buildroot/autobuild/instance-0/output-1/host/etc" --localstatedir="/home/buildroot/autobuild/instance-0/output-1/host/var" --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=no --with-fop=no --disable-nls --disable-dependency-tracking --target=arm-buildroot-uclinux-uclibcgnueabi --with-sysroot=/home/buildroot/autobuild/instance-0/output-1/host/arm-buildroot-uclinux-uclibcgnueabi/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=/home/buildroot/autobuild/instance-0/output-1/host --with-mpc=/home/buildroot/autobuild/instance-0/output-1/host --with-mpfr=/home/buildroot/autobuild/instance-0/output-1/host --with-pkgversion="Buildroot 2022.05-439-g18f6e4bf70" --with-bugurl="http://bugs.buildroot.net/" --without-zstd --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --disable-tls --enable-threads --without-isl --without-cloog --with-float=soft --with-abi="aapcs-linux" --with-cpu=cortex-m3 --with-float=soft --with-mode=thumb --enable-languages=c --disable-shared --without-headers --disable-threads --with-newlib --disable-largefile ) Full build log of GCC 10.4.0 for Cortex-M3: http://autobuild.buildroot.net/results/e91/e91fa76142cf50e514d5fe4791a06f3c3c014b5a/build-end.log Full build log of GCC 11.3.0 for Cortex-M7: http://autobuild.buildroot.net/results/9f7/9f7a43a375d476f47702cd7848eba53b76fcd386/build-end.log
next reply other threads:[~2022-09-25 9:51 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-25 9:50 thomas.petazzoni@free-electrons.com [this message] 2022-09-26 8:01 ` [Bug target/107032] " clyon at gcc dot gnu.org 2022-09-26 8:08 ` thomas.petazzoni@free-electrons.com 2022-09-26 8:13 ` clyon at gcc dot gnu.org 2022-09-26 8:42 ` thomas.petazzoni@free-electrons.com 2022-09-26 12:51 ` clyon at gcc dot gnu.org 2022-09-27 10:55 ` rearnsha at gcc dot gnu.org 2022-09-27 11:32 ` clyon at gcc dot gnu.org 2022-09-27 12:02 ` rearnsha at gcc dot gnu.org
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-107032-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.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).