[bug #68486] Configure fails with clang/flang/musl attempting to link invalid library (-lwp)

asch <[email protected]> Mon, 29 Jun 2026 12:41:29 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============2538944201378288840==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============2538944201378288840==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-1714636915-1782751289=:296614"
Content-Disposition: inline

--8323329-1714636915-1782751289=:296614
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?68486>=0A=0A                 Summa=
ry: Configure fails with clang/flang/musl attempting to=0Alink invalid libr=
ary (-lwp)=0A                   Group: GNU Octave=0A               Submitte=
r: asch=0A               Submitted: Mon 29 Jun 2026 04:41:25 PM UTC=0A     =
           Category: Configuration and Build System=0A                Sever=
ity: 3 - Normal=0A                Priority: 5 - Normal=0A              Item=
 Group: Build Failure=0A                  Status: None=0A             Assig=
ned to: None=0A         Originator Name:=0A        Originator Email:=0A    =
         Open/Closed: Open=0A         Discussion Lock: Unlocked=0A         =
        Release: 11.1.0=0A        Operating System: GNU/Linux=0A           =
Fixed Release: None=0A         Planned Release: None=0A=0A=0A    __________=
_____________________________________________=0A=0AFollow-up Comments:=0A=
=0A=0A-------------------------------------------------------=0ADate: Mon 2=
9 Jun 2026 04:41:25 PM UTC By: asch <asch>=0Afrom build.log:=0A=0Achecking =
for rsvg-convert... rsvg-convert=0Achecking whether the compiler supports G=
NU C++... yes=0Achecking whether clang++ accepts -g... yes=0Achecking for c=
lang++ option to enable C++11 features... none needed=0Achecking dependency=
 style of clang++... none=0Achecking how to run the C++ preprocessor... cla=
ng++ -E=0Achecking whether clang++ supports C++17 features by default... ye=
s=0Achecking whether std::pmr::polymorphic_allocator is available... yes=0A=
checking for x86_64-pc-linux-musl-gcc... (cached) clang=0Achecking whether =
the compiler supports GNU C... (cached) yes=0Achecking whether clang accept=
s -g... (cached) yes=0Achecking for clang option to enable C11 features... =
(cached) none needed=0Achecking whether clang understands -c and -o togethe=
r... (cached) yes=0Achecking whether the compiler is clang... (cached) yes=
=0Achecking for compiler option needed when checking for declarations... (c=
ached)=0A-Werror=3Dimplicit-function-declaration=0Achecking dependency styl=
e of clang... (cached) none=0Achecking how to run the C preprocessor... cla=
ng-cpp=0Achecking for Minix Amsterdam compiler... no=0Achecking for x86_64-=
pc-linux-musl-ar... llvm-ar=0Achecking for _LARGEFILE_SOURCE value needed f=
or large files... no=0Achecking for clang option to support large files... =
none needed=0Achecking g++ compiler version number...=0Achecking gcc compil=
er version number...=0Aconfigure: defining __NO_MATH_INLINES avoids buggy G=
NU libc exp function=0Achecking for sin in -lm... yes=0Achecking for x86_64=
-pc-linux-musl-gfortran... flang=0Achecking whether the compiler supports G=
NU Fortran 77... no=0Achecking whether flang accepts -g... yes=0Achecking w=
hether a usable Fortran compiler was found... yes=0Achecking how to get ver=
bose linking output from flang... -v=0Achecking for Fortran 77 libraries of=
 flang...  -lwp=0A-L/usr/lib/llvm/22/bin/../../../../lib/clang/22/lib/x86_6=
4-pc-linux-musl=0A-L/lib -L/usr/lib -lm=0A-L/usr/lib/llvm/22/bin/../../../.=
./lib/clang/22/lib/linux=0A-L/usr/lib/llvm/22/lib -lflang_rt.runtime=0A/usr=
/lib/llvm/22/bin/../../../../lib/clang/22/lib/linux/libclang_rt.builtins-x8=
6_64.a=0Achecking for dummy main to link with Fortran 77 libraries... unkno=
wn=0Aconfigure: error: in=0A`/var/tmp/portage/sci-mathematics/octave-11.3.0=
/work/octave-11.3.0':=0Aconfigure: error: linking to Fortran libraries from=
 C fails=0ASee `config.log' for more details=0A=0A=0A=0AI managed to work a=
round this just fine by manually setting FLIBS to=0A"'l/usr/lib/clang/22/li=
b/linux -L/usr/lib/llvm/22/lib -lflang_rt.runtime.a".=0A=0AThis is Gentoo L=
inux, kernel 7.1.2, with libc++ and musl. Building with=0Aversion 22.1.8 of=
 clang, llvm and flang. This happens with Octave 11.1.0 and=0A11.3.0.=0A=0A=
=0A=0A=0A=0A=0A    _______________________________________________________=
=0AFile Attachments:=0A=0AName: config.log                     Size: 166KiB=
=0A    <https://file.savannah.gnu.org/file/config.log?file_id=3D58763>=0A=
=0A=0A=0A    AGPL NOTICE=0A=0AThese attachments are served by Savane. You c=
an download the corresponding=0Asource code of Savane at=0Ahttps://savannah=
.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz=0A=
=0A    _______________________________________________________=0A=0AReply t=
o this item at:=0A=0A  <https://savannah.gnu.org/bugs/?68486>=0A=0A________=
_______________________________________=0AMessage sent via Savannah=0Ahttps=
://savannah.gnu.org/=0A
--8323329-1714636915-1782751289=:296614
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCakKgOQAKCRCqLAuaBUf3
TrHbAP0T2bYpT7sg1e/wfaRpbjVbPLIYRpaDor7tGuivGqgWSAEA6CR78AQq/Twp
hINbWypFYRpZjnk5SLWzKcB6q3KhAQs=
=qveu
-----END PGP SIGNATURE-----

--8323329-1714636915-1782751289=:296614--



--===============2538944201378288840==--