[Bug 236344] [toolchain] gcc-built shared library crashes in static object constructors when dynamically loaded
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Aug 2021 01:26:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236344 Mark Millard <marklmi26-fbsd@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #8 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Greg V from comment #7) Just an FYI: In use of FreeBSD's libc++ from g++ I use, for example, from a specific context (not a port): CXX= g++11 -v -std=c++20 -Wpedantic -Wall -Wextra CXX+= -Wno-psabi -nostdinc -nostdinc++ \ -I/usr/include/c++/v1 -I/usr/include . . . LDCXX= -nodefaultlibs -lc++ -lcxxrt -lthr -lm -lc -lgcc_s On aarch64 I've also use: -mno-outline-atomics I also sometimes need -Wl,-rpath=/usr/local/lib/gcc11 for things missing from the -lgcc_s . The context does not load any other .so's, however. For reference . . . My FreeBSD goes back to 2021-Jul-05: # uname -apKU FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #10 main-n247756-348c41d1815d-dirty: Mon Jul 5 10:23:55 PDT 2021 root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400025 1400025 The ports go back to 2021-Jun-19: # ~/fbsd-based-on-what-commit.sh branch: main merge-base: 7e413d93a62bb844a193e568fd8a1ba4834e5ea5 merge-base: CommitDate: 2021-06-19 00:23:12 +0000 7e413d93a62b (HEAD -> main, freebsd/main, freebsd/HEAD) graphics/mesa-devel: update to 21.1.b.3189 n549134 (--first-parent --count for merge-base) -- You are receiving this mail because: You are the assignee for the bug.