[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 --- Comment #7 from Mark Millard --- Sorry, dumb c++ mistake: I forgot to also add -static-libstdc++ # g++13 -static-libgcc -static-libstdc++ main.c /usr/local/bin/ld: warning: libunwind.o: missing .note.GNU-stack section implies executable stack /usr/local/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 --- Comment #6 from Mark Millard --- Same source handled as c++ code: # g++13 -static-libgcc main.c /usr/local/bin/ld: warning: libunwind.o: missing .note.GNU-stack section implies executable stack /usr/local/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_ldivmod@GCC_3.5' /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_d2lz@GCC_3.5' /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_uldivmod@GCC_3.5' /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_l2d@GCC_3.5' /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_idivmod@GCC_3.5' /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_ul2f@GCC_3.5' /usr/local/bin/ld: /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/../../../libstdc++.so: undefined reference to `__aeabi_ul2d@GCC_3.5' collect2: error: ld returned 1 exit status -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 Mark Millard changed: What|Removed |Added CC||marklmi26-f...@yahoo.com --- Comment #5 from Mark Millard --- A trivial armv7 example based on pkgbase: # ls -lodTt /var/cache/pkg/*.snap*.pkg | grep -v "^l" | sed -E 's@^[^/]*(/.*/pkg/([^-]*-)(.*)(\.snap[^~]*)~[^.]*\.pkg)$@\2\4@' | sort -r | uniq | head -1 FreeBSD-.snap20240626211138 # uname -apKU FreeBSD OPiP2E-RPi2v1p1 15.0-CURRENT FreeBSD 15.0-CURRENT main-n270963-609cdb12b962 GENERIC arm armv7 1500019 1500019 and packages from pkg update. # more main.c int main() {} # gcc13 -static-libgcc main.c /usr/local/bin/ld: warning: libunwind.o: missing .note.GNU-stack section implies executable stack /usr/local/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker /usr/local/bin/ld: a.out: hidden symbol `__aeabi_unwind_cpp_pr0' in /usr/local/lib/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/libgcc_eh.a(unwind-arm.o) is referenced by DSO /usr/local/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status # gcc13 -v Using built-in specs. COLLECT_GCC=gcc13 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc13/gcc/armv7-portbld-freebsd15.0/13.2.0/lto-wrapper Target: armv7-portbld-freebsd15.0 Configured with: /wrkdirs/usr/ports/lang/gcc13/work/gcc-13.2.0/configure --disable-multilib --disable-bootstrap --disable-nls --enable-gnu-indirect-function --enable-host-shared --enable-plugin --libdir=/usr/local/lib/gcc13 --libexecdir=/usr/local/libexec/gcc13 --program-suffix=13 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc13/include/c++/ --with-gxx-libcxx-include-dir=/usr/include/c++/v1 --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --without-zstd --enable-languages=c,c++,objc,fortran,jit --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/share/man --infodir=/usr/local/share/info/gcc13 --build=armv7-portbld-freebsd15.0 Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.2.0 (FreeBSD Ports Collection) -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 Mark Linimon changed: What|Removed |Added CC||bro...@freebsd.org --- Comment #4 from Mark Linimon --- ^Triage: notify committer of https://cgit.freebsd.org/src/commit/?id=99ea67573164637d633e8051eb0a5d52f1f9488e . -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 --- Comment #3 from qrox...@protonmail.com --- After running git bisect, it appears that gcc -static-libgcc conftest.c fails to link when libc is linking to libsys https://cgit.freebsd.org/src/commit/?id=99ea67573164637d633e8051eb0a5d52f1f9488e -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 John F. Carr changed: What|Removed |Added CC||j...@mit.edu --- Comment #2 from John F. Carr --- I was able to build lang/gcc13 (gcc13-13.2.0_4) in an armv7 jail on an armv8 host: JAILNAME VERSION ARCH METHOD TIMESTAMP PATH armv715.0-CURRENT 1500018 arm.armv7 src=/usr/src 2024-04-22 10:15:45 /usr/local/poudriere/jails/armv7 # poudriere options -j armv7 -n -s lang/gcc13 [00:00:01] Ports supports: FLAVORS SUBPACKAGES SELECTED_OPTIONS [00:00:01] Working on options directory: /usr/local/etc/poudriere.d/armv7-options [00:00:01] Using ports from: /usr/ports [00:00:01] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf ===> The following configuration options are available for gcc13-13.20_4: GRAPHITE=off: Support for Graphite loop optimizations > Options available for the radio BOOTSTRAP: you can only select none or one of them LTO_BOOTSTRAP=off: Build using a full LTO bootstrap STANDARD_BOOTSTRAP=on: Build using a full bootstrap without LTO ===> Use 'make config' to modify these settings [00:00:02] Re-run 'poudriere options' with the -c flag to modify the options. I have on my local system a fix for bug #271087 (missing __aeabi_ exports) but it does not affect visibility of __aeabi_unwind_cpp_pr0. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278649 Lorenzo Salvadore changed: What|Removed |Added Hardware|Any |arm Flags|maintainer-feedback?(salvad |maintainer-feedback+ |o...@freebsd.org)| CC||toolchain@FreeBSD.org Status|New |Open --- Comment #1 from Lorenzo Salvadore --- Unfortunately armv7 is a tier 2 platform for FreeBSD, so there are many issues with higher priority than this one. https://www.freebsd.org/platforms/ However, here is a few suggestions that might help you fix the issue: - test more recent GCC versions, see lang/gcc13-devel, lang/gcc14-devel, lang/gcc15-devel. lang/gcc14 is also coming soon; - look at this recent issue about GCC, libc++ and armv7, which might be related: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278630 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114878 https://github.com/llvm/llvm-project/commit/55357160d0e151c32f86e1d6683b4bddbb706aa1 -- You are receiving this mail because: You are on the CC list for the bug.