Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2024 06:49:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 278649] lang/gcc13: build failed on 15.0-CURRENT armv7
Message-ID:  <bug-278649-29464-IdbvzhIaad@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278649-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278649-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278649

Mark Millard <marklmi26-fbsd@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marklmi26-fbsd@yahoo.com

--- Comment #5 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
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 i=
n 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(unwin=
d-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=3Dgcc13
COLLECT_LTO_WRAPPER=3D/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=3D/usr/local/lib/gcc13 --libexecdir=3D/usr/local/libexec/gcc13
--program-suffix=3D13 --with-as=3D/usr/local/bin/as --with-gmp=3D/usr/local
--with-gxx-include-dir=3D/usr/local/lib/gcc13/include/c++/
--with-gxx-libcxx-include-dir=3D/usr/include/c++/v1 --with-ld=3D/usr/local/=
bin/ld
--with-pkgversion=3D'FreeBSD Ports Collection' --with-system-zlib --without=
-zstd
--enable-languages=3Dc,c++,objc,fortran,jit --prefix=3D/usr/local
--localstatedir=3D/var --mandir=3D/usr/local/share/man
--infodir=3D/usr/local/share/info/gcc13 --build=3Darmv7-portbld-freebsd15.0
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.0 (FreeBSD Ports Collection)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278649-29464-IdbvzhIaad>