From nobody Sun Dec 31 16:51:02 2023 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T34r63djVz565ws for ; Sun, 31 Dec 2023 16:51:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T34r62SBKz4dnR for ; Sun, 31 Dec 2023 16:51:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704041462; a=rsa-sha256; cv=none; b=Q5gYgzGrvA2KKYf0Q97/ZtFTuSRXsaxfP0nGgxKgI68tX0TvtyrUYTggszhCkx4LJ8XnBa 6HtUxpAZBbEig/jBr33wbiTnkjv4Lk1igdKF4wdCWQ6b5fN68lsc8LGGn8PHdGlHJWJ+vo cUf1HS0bA9Zftp0NjSY6LfQF52c7T3kn8z217bG5AqI3kM3fEk/U2EZNkLMsf56asMCutp FNXF1AaLg7ruYvMsqRWBJ+WmN8hPhi5NNDWlEb+Ulu3Q7R1ZPTNWZixBFWlzE23zDi084N yDsVxl9ndK+X6w3J4M8cmdkbr8p4Vy4/It7Z4J9duZ11lQuyjRTbsl4k466EEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704041462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PSbvIO9B+PUlf2NlI0kI70iGmlTxEeTaKkQgvoEmLhw=; b=B3afU3sYw6qy7LDKdP5W+M0i1OH9cTYJg4++KPtu1VJjsWqSmu7rV1D/vrwKPLjyq1zcQ4 5ycZxsrrXUQ/fBjmeOyPKVS9NGzC/71mFv0xt01pzKbxzaLkYBI9Sd/1up4+qR0gK2djp4 EOd6Paui8vDXL5/JrsKNd6i0Sa3opEN+bpq9qrb+Rpp63RmG45axj587PMsXpoXdUaHZih aMEg97LsFeuBNvAr6whyoK7PhxOEf+dXSTC+mMwgDdErCSnQPITVppor+KFyjjcSar4tXn vTvA3QVmrQvBhGxRMs/FUDwBw1CkApcsSGIFpRNpHII8Q0qSaxQzkAFoXpjl2g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T34r61YGzzhsb for ; Sun, 31 Dec 2023 16:51:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BVGp2k6069165 for ; Sun, 31 Dec 2023 16:51:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BVGp2Xj069164 for toolchain@FreeBSD.org; Sun, 31 Dec 2023 16:51:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 276035] net/mpich: ld: error: undefined reference due to --no-allow-shlib-undefined with clang-17 Date: Sun, 31 Dec 2023 16:51:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276035 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org Status|New |Open --- Comment #2 from Dimitry Andric --- What happens is that clang 17 partially supports __float128 on x86_64, while clang 16 did not. The configure script under clang 16 shows: configure:43831: checking size of __float128 configure:43836: clang15 -o conftest -I/usr/local/include/json-c -I/usr/local/include/gcc12 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -I/usr/local/include -DNETMOD_INLINE=3D__netmod_inline_ofi__ -I/wrkdirs/usr/ports/net/mpich/work/mpich-4.1.2/src/mpl/include -D_REENTRANT -I/wrkdirs/usr/ports/net/mpich/work/mpich-4.1.2/src/mpi/romio/include -I/wrkdirs/usr/ports/net/mpich/work/mpich-4.1.2/src/pmi/include=20 -L/usr/local/lib conftest.c -L/usr/local/lib -lepoll-shim -ljson-c -lm >&5 conftest.c:127:57: error: __float128 is not supported on this target static long int longval () { return (long int) (sizeof (__float128)); } ^ conftest.c:128:67: error: __float128 is not supported on this target static unsigned long int ulongval () { return (long int) (sizeof (__float12= 8)); } ^ conftest.c:138:28: error: __float128 is not supported on this target if (((long int) (sizeof (__float128))) < 0) ^ conftest.c:141:37: error: __float128 is not supported on this target if (i !=3D ((long int) (sizeof (__float128)))) ^ conftest.c:148:37: error: __float128 is not supported on this target if (i !=3D ((long int) (sizeof (__float128)))) ^ 5 errors generated. configure:43836: $? =3D 1 configure: program exited with status 1 while with clang 17 you get: configure:43831: checking size of __float128 configure:43836: cc -o conftest -I/usr/local/include/json-c -I/usr/local/include/gcc12 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -I/usr/local/include -DNETMOD_INLINE=3D__netmod_inline_ofi__ -I/wrkdirs/usr/ports/net/mpich/work/mpich-4.1.2/src/mpl/include -D_REENTRANT -I/wrkdirs/usr/ports/net/mpich/work/mpich-4.1.2/src/mpi/romio/include -I/wrkdirs/usr/ports/net/mpich/work/mpich-4.1.2/src/pmi/include=20 -L/usr/local/lib conftest.c -L/usr/local/lib -lepoll-shim -ljson-c -lm >&5 configure:43836: $? =3D 0 configure:43836: ./conftest configure:43836: $? =3D 0 configure:43850: result: 16 So in src/include/mpichconf.h you then get: /* Define if __float128 is supported */ #define HAVE_FLOAT128 1 which causes src/mpi/coll/op/opsum.c to emit calls to libgcc support functi= ons for float128 types, in particular: * __addtf3 * __gttf2 * __lttf2 * __multf3 * __extendxftf2 * __trunctfxf2 Unfortunately not all these functions are available yet in compiler-rt. They will be included when llvm-18 is imported. For now, it is probably easiest to suppress float128 detection in the confi= gure script, for example by adding: CONFIGURE_ENV+=3D ac_cv_sizeof___float128=3D0 just below CONFIGURE_ARGS in the Makefile. --=20 You are receiving this mail because: You are the assignee for the bug.=