[Bug 276035] net/mpich: ld: error: undefined reference due to --no-allow-shlib-undefined with clang-17

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 31 Dec 2023 11:31:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276035

            Bug ID: 276035
           Summary: net/mpich: ld: error: undefined reference due to
                    --no-allow-shlib-undefined with clang-17
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: thierry@FreeBSD.org

On -Current, i.e. with clang-17, and without the work-around introduced in
eb36006fdb70, mpich fails to link with the following error:

Making all in .
/bin/sh ./libtool  --tag=CC    --mode=link cc -fvisibility=hidden
-I/usr/local/include/json-c -I/usr/local/include/gcc12 -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-L/usr/local/lib -o src/env/mpichversion src/env/mpichversion.o lib/libmpi.la
-L/usr/local/lib -lepoll-shim -ljson-c -lm
libtool: link: cc -fvisibility=hidden -I/usr/local/include/json-c
-I/usr/local/include/gcc12 -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -o src/env/.libs/mpichversion
src/env/mpichversion.o  -L/usr/local/lib lib/.libs/libmpi.so -lhwloc -lfabric
-lrdmacm -libverbs -lexecinfo -lze_loader -lpthread -lepoll-shim -ljson-c -lm
-Wl,-rpath -Wl,/usr/local/lib
ld: error: undefined reference due to --no-allow-shlib-undefined: __addtf3
>>> referenced by lib/.libs/libmpi.so

ld: error: undefined reference due to --no-allow-shlib-undefined: __gttf2
>>> referenced by lib/.libs/libmpi.so

ld: error: undefined reference due to --no-allow-shlib-undefined: __lttf2
>>> referenced by lib/.libs/libmpi.so

ld: error: undefined reference due to --no-allow-shlib-undefined: __multf3
>>> referenced by lib/.libs/libmpi.so

ld: error: undefined reference due to --no-allow-shlib-undefined:
__extendxftf2
>>> referenced by lib/.libs/libmpi.so

ld: error: undefined reference due to --no-allow-shlib-undefined: __trunctfxf2
>>> referenced by lib/.libs/libmpi.so
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Remark: previously, with clang-16, everything was fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.