When I built a fairly simple C++17 program (not FreeBSD specific) 
(targeting aarch64) with g++9 and then tried to run it, running
reported (I omit a very long file path/name that I was using):

ld-elf.so.1: . . . : Undefined symbol "__floatunditf@GCC_4.2.0"

# ldd . . .
. . .:
        libstdc++.so.6 => /usr/local/lib/gcc9/libstdc++.so.6 (0x404dc000)
        libm.so.5 => /lib/libm.so.5 (0x406d4000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40745000)
        libthr.so.3 => /lib/libthr.so.3 (0x40786000)
        libc.so.7 => /lib/libc.so.7 (0x407e2000)

Using -Wl,-rpath=/usr/local/lib/gcc9 in the link avoided the
problem and let the program run (by changing which library
is used, for at least one library).

I've not checked if this is aarch64 specific or FreeBSD vintage
specific or g++ vintage specific. (The context is head -r350364 .)

(The program and its source are not ready for any distribution.)

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to