https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126305
--- Comment #7 from dave.anglin at bell dot net ---
On 2026-07-17 2:16 p.m., anlauf at gcc dot gnu.org wrote:
> So does this testcase link on hpux?
> And print
>
> 45.0000000000000000000000000000000000
bash-5.1$ gcc/gfortran -Bgcc/ -B./hppa64-hp-hpux11.11/libgfortran -o test
test.f90 -L./hppa64-hp-hpux11.11/libgfortran/.libs
-L./hppa64-hp-hpux11.11/libquadmath/.libs/
ld: (Warning) Unsatisfied symbol "asinl" in file
./hppa64-hp-hpux11.11/libgfortran/.libs/libgfortran.sl
ld: Unsatisfied symbol "atanl" in file /var/tmp//cc1u1wui.o
ld: (Warning) Unsatisfied symbol "atan2l" in file
./hppa64-hp-hpux11.11/libgfortran/.libs/libgfortran.sl
ld: (Warning) Unsatisfied symbol "acosl" in file
./hppa64-hp-hpux11.11/libgfortran/.libs/libgfortran.sl
3 warnings.
1 errors.
collect2: error: ld returned 1 exit status
Not sure why cosl, sinl and tanl aren't listed as unsats.
I noticed linking with libquadmath seems required:
bash-5.1$ cat ./hppa64-hp-hpux11.11/libgfortran/libgfortran.spec
#
# This spec file is read by gfortran when linking.
# It is used to specify the libraries we need to link in, in the right
# order.
#
%rename lib liborig
*lib: %{static-libquadmath:-aarchive_shared} -lquadmath
%{static-libquadmath:-adefault} -lm %(liborig)