[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_AC_PROG_FC_V_OUTPUT fails to parse SunStudio12.13 fortran output
From: |
Gary V. Vaughan |
Subject: |
_AC_PROG_FC_V_OUTPUT fails to parse SunStudio12.13 fortran output |
Date: |
Sun, 22 Dec 2013 18:35:34 +1300 |
Autoconfers,
Currently, Libtool's git master (upcoming 4.2.3 release) fails its fortran tests
on Solaris with gcc:
http://vaughan.pe/libtool/libtool-2.4.2.427.logs/sparc-sun-solaris2.11-gcc4.4.6/testsuite.dir/153/config.log
One or both of the following need fixing for those tests to work:
1. _AC_F77_FC needs to prefer gfortran over f77 on Solaris, otherwise mixed
language compiles end up with objects from SunStudio's f77 (itself a
wrapper for f90 in recent releases) and GNU's gcc - where gfortran would
have done a much better job. (Aside: Does g77 even exist in the wild any
more?)
2. _AC_PROG_FC_V_OUTPUT needs to pick up the location of the fortran
libraries correctly, where the weird quoting of -R arguments and/or
unnecessary `grep '\-L'` filtering currently skips it:
configure:4149: checking how to get verbose linking output from f77
configure:4159: f77 -c -g conftest.f >&5
NOTICE: Invoking /opt/solarisstudio12.3/bin/f90 -f77 -ftrap=%none -c -g
conftest.f
conftest.f:
MAIN main:
configure:4159: $? = 0
configure:4177: f77 -o conftest -g -v -L/opt/fsw/gcc44r/lib
-R/opt/fsw/gcc44r/lib conftest.f
NOTICE: Invoking /opt/solarisstudio12.3/bin/f90 -f77 -ftrap=%none -o conftest
-g -v -L/opt/fsw/gcc44r/lib -R/opt/fsw/gcc44r/lib conftest.f
[[snip]]
### f90: Note: LD_LIBRARY_PATH = (null)
### f90: Note: LD_RUN_PATH = (null)
### f90: Note: LD_OPTIONS = (null)
ln -s /opt/solarisstudio12.3/prod/lib /tmp/lib_link.1387624254.755.01
/usr/ccs/bin/ld -zld32=-S/tmp/lib_link.1387624254.755.01/libldstab_ws.so
-zld64=-S/tmp/lib_link.1387624254.755.01/v9/libldstab_ws.so
-zld32=-S/tmp/lib_link.1387624254.755.01/libld_annotate.so
-zld64=-S/tmp/lib_link.1387624254.755.01/v9/libld_annotate.so
/opt/solarisstudio12.3/prod/lib/crti.o /opt/solarisstudio12.3/prod/lib/crt1.o
/opt/solarisstudio12.3/prod/lib/misalign.o
/opt/solarisstudio12.3/prod/lib/values-xi.o -L/opt/fsw/gcc44r/lib conftest.o
-lf77compat -o conftest -Y
"P,/opt/solarisstudio12.3/lib/sparc:/opt/solarisstudio12.3/lib:/opt/solarisstudio12.3/prod/lib/sparc:/opt/solarisstudio12.3/prod/lib:/usr/ccs/lib:/lib:/usr/lib"
-Qy -R/opt/fsw/gcc44r/lib
"-R/opt/solarisstudio12.3/lib/sparc:/opt/solarisstudio12.3/lib" -t -lifai
-lsunimath -lfai -lfai2 -lfsumai -lfprodai -lfminlai -lfmaxlai -lfminvai
-lfmaxvai -lfui -lfsu -lsunmath -lmtsk -lm -lc
/opt/solarisstudio12.3/prod/lib/crtn.o
[[snip]]
configure:4260: result: -v
configure:4262: checking for Fortran 77 libraries of f77
configure:4285: f77 -o conftest -g -v -L/opt/fsw/gcc44r/lib
-R/opt/fsw/gcc44r/lib conftest.f
[[snip]]
configure:4481: result: -L/opt/fsw/gcc44r/lib -R/opt/fsw/gcc44r/lib
-lf77compat -lifai -lsunimath -lfai -lfai2 -lfsumai -lfprodai -lfminlai
-lfmaxlai -lfminvai -lfmaxvai -lfui -lfsu -lsunmath -lmtsk -lm
configure:4498: checking for dummy main to link with Fortran 77 libraries
configure:4532: gcc -o conftest -O2 -mcpu=ultrasparc -mvis
-L/opt/fsw/gcc44r/lib -R/opt/fsw/gcc44r/lib conftest.c -L/opt/fsw/gcc44r/lib
-R/opt/fsw/gcc44r/lib -lf77compat -lifai -lsunimath -lfai -lfai2 -lfsumai
-lfprodai -lfminlai -lfmaxlai -lfminvai -lfmaxvai -lfui -lfsu -lsunmath -lmtsk
-lm >&5
ld: fatal: library -lf77compat: not found
ld: fatal: library -lifai: not found
ld: fatal: library -lsunimath: not found
ld: fatal: library -lfai: not found
ld: fatal: library -lfai2: not found
ld: fatal: library -lfsumai: not found
ld: fatal: library -lfprodai: not found
ld: fatal: library -lfminlai: not found
ld: fatal: library -lfmaxlai: not found
ld: fatal: library -lfminvai: not found
ld: fatal: library -lfmaxvai: not found
ld: fatal: library -lfui: not found
ld: fatal: library -lfsu: not found
ld: fatal: library -lsunmath: not found
ld: fatal: file processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:4532: $? = 1
Note the quoted "-R/opt/solarisstudio12.3/lib/sparc:/opt/solarisstudio12.3/lib"
in the verbose f77 output holds the location of the list of not found libraries
above.
I'm not at all familiar with FORTRAN, and don't know what the right approach to
fix
this would be, so I'm afraid I didn't write a patch :( But I'm willing to cut a
first
draft if someone can explain what needs to be done :)
Cheers,
--
Gary V. Vaughan (gary AT gnu DOT org)
signature.asc
Description: Message signed with OpenPGP using GPGMail
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- _AC_PROG_FC_V_OUTPUT fails to parse SunStudio12.13 fortran output,
Gary V. Vaughan <=