Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2025 13:25:28 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Cc:        FreeBSD ARM List <freebsd-arm@freebsd.org>
Subject:   armv7 gcc14 build failures:: hidden symbol `__aeabi_unwind_cpp_pr0' in /wrkdirs/. . ./lang/gcc14/. . ./prev-gcc/libgcc_eh.a(unwind-arm.o) is referenced by DSO
Message-ID:  <A855754C-7E39-4CC9-A3ED-A4FDF96A28C0@yahoo.com>
References:  <A855754C-7E39-4CC9-A3ED-A4FDF96A28C0.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The context here is poudriere=3Ddevel based builds in an armv7 poudriere
jail on a Windows DevKit 2023. The official FreeBSD package builds fail
showing the same type of error in the build log. (config.log is not
available for that context, however.)

I'll note the gcc14 build does not depend on devel/libunwind .

In the config.log the errors show up as:

/usr/local/bin/ld: a.out: hidden symbol `__aeabi_unwind_cpp_pr0' in =
/wrkdirs/usr/ports/lang/gcc14/work/.build/./prev-gcc/libgcc_eh.a(unwind-ar=
m.o) is referenced by DSO
/usr/local/bin/ld: final link failed: bad value
. . .
/usr/local/bin/ld: a.out: hidden symbol `__aeabi_unwind_cpp_pr0' in =
/wrkdirs/usr/ports/lang/gcc14/work/.build/./prev-gcc/libgcc_eh.a(unwind-ar=
m.o) is referenced by DSO
/usr/local/bin/ld: final link failed: bad value
. . .
/usr/local/bin/ld: conftest: hidden symbol `__aeabi_unwind_cpp_pr0' in =
/wrkdirs/usr/ports/lang/gcc14/work/.build/./prev-gcc/libgcc_eh.a(unwind-ar=
m.o) is referenced by DSO
/usr/local/bin/ld: final link failed: bad value


Such errors lead to the later notice seen in the builder's
log file because of the failure to create executables:

checking for library containing strerror... configure: error: Link tests =
are not allowed after GCC_NO_EXECUTABLES.
gmake[2]: *** [Makefile:11359: configure-stage2-libiberty] Error 1


For reference:

# ~/fbsd-based-on-what-commit.sh -C /usr/ports
66f7cf708299 (HEAD -> main, freebsd/main, freebsd/HEAD) sysutils/limine: =
Update 9.0.0 =E2=86=92 9.1.3
Author:     mintsuki <mintsuki@protonmail.com>
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-03-13 09:32:07 +0000
branch: main
merge-base: 66f7cf708299f143d609dd8c84e305f67b339f16
merge-base: CommitDate: 2025-03-13 09:32:07 +0000
n699297 (--first-parent --count for merge-base)

# uname -apKU
FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT #3 =
main-n275926-a54a240c1b57-dirty: Thu Mar 13 00:46:45 PDT 2025     =
root@aarch64-main-pbase:/usr/obj/BUILDs/main-CA76-nodbg-clang/usr/main-src=
/arm64.aarch64/sys/GENERIC-NODBG-CA76 arm64 aarch64 1500034 1500034

# ~/fbsd-based-on-what-commit.sh -C /usr/main-src
a54a240c1b57 (HEAD -> main, freebsd/main, freebsd/HEAD) net80211: work =
around unused variable "vap" in non-debug builds
Author:     Adrian Chadd <adrian@FreeBSD.org>
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-03-13 01:07:33 +0000
branch: main
merge-base: a54a240c1b579e2c30af125f3b1fdfd87f280078
merge-base: CommitDate: 2025-03-13 01:07:33 +0000
n275926 (--first-parent --count for merge-base)

However,

=
https://pkg-status.freebsd.org/ampere2/data/main-armv7-default/pe7b7ad617b=
a1_se2dd73cf45/logs/errors/gcc14-14.2.0_2.log

(gcc14-14.2.0_2 ended at Sun Mar 9 20:09:14 UTC 2025) shows:

. . .
checking for pid_t... yes
checking for library containing strerror... configure: error: Link tests =
are not allowed after GCC_NO_EXECUTABLES.
gmake[2]: *** [Makefile:11359: configure-stage2-libiberty] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc14/work/.build'
gmake[1]: *** [Makefile:24457: stage2-bubble] Error 2
. . .

So this is unlikely to be specific to my personal
build environment's details.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A855754C-7E39-4CC9-A3ED-A4FDF96A28C0>