PDLPorters/extutils-f77

Test fail on MacOS 11.6.4

Opened this issue · 1 comments

gfortran is coming from home brew. Please let me know if any further details would help.

✅ helix% make test
PERL_DL_NONLAZY=1 "/Users/ollisg/opt/perl/5.35.11/bin/perl5.35.11" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/require.t .. Found compiler gfortran
ExtUtils::F77: compiler family is gfortran
ExtUtils::F77: gfortran version 11.2.0
Found compiler gfortran
Found compiler gfortran
ExtUtils::F77: compiler family is gfortran
ExtUtils::F77: gfortran version 11.2.0
Found compiler gfortran
ExtUtils::F77: Using system=Darwin compiler=GNU
Runtime: "-L/usr/local/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/x86_64-apple-darwin20/11/../../.." -L/usr/lib -lgfortran -lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath -lm
Found compiler=GNU - skipping validation of "-L/usr/local/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/x86_64-apple-darwin20/11/../../.." -L/usr/lib -lgfortran -lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath -lm 
ExtUtils::F77: Compiler: gfortran
ExtUtils::F77: Cflags:  
t/require.t .. 1/3 Compiling the test Fortran program...
Command: gfortran   /var/folders/zw/5phm6l1n19q1mxc17l23ksxm0000gn/T/testf7756841.f -o /var/folders/zw/5phm6l1n19q1mxc17l23ksxm0000gn/T/testf7756841_exe at /Users/ollisg/.cpanm/work/1651831395.56340/ExtUtils-F77-1.26/blib/lib/ExtUtils/F77.pm line 14.
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
Executing the test program...
Can't exec "/var/folders/zw/5phm6l1n19q1mxc17l23ksxm0000gn/T/testf7756841_exe": No such file or directory at /Users/ollisg/.cpanm/work/1651831395.56340/ExtUtils-F77-1.26/blib/lib/ExtUtils/F77.pm line 578.
Use of uninitialized value in string ne at /Users/ollisg/.cpanm/work/1651831395.56340/ExtUtils-F77-1.26/blib/lib/ExtUtils/F77.pm line 578.
Test of Fortran Compiler FAILED. 
Do not know how to compile Fortran on your system

#   Failed test 'testcompiler method returns 1'
#   at t/require.t line 11.
#          got: '0'
#     expected: '1'
# Method: runtime, "-L/usr/local/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/x86_64-apple-darwin20/11/../../.." -L/usr/lib -lgfortran -lgcc_ext.10.5 -lgcc_s.10.5 -lquadmath -lm
# Method: trail_, 1
# Method: compiler, gfortran
# Method: cflags,  
# Compiler: /usr/local/bin/gfortran
# Looks like you failed 1 test of 3.
t/require.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

Test Summary Report
-------------------
t/require.t (Wstat: 256 (exited 1) Tests: 3 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=1, Tests=3,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.07 cusr  0.03 csys =  0.12 CPU)
Result: FAIL
Failed 1/1 test programs. 1/3 subtests failed.
make: *** [test_dynamic] Error 1
❌ helix% uname -a
Darwin helix 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 x86_64

Thanks for the report! I won't ask you to make a PR because the code has accumulated over a long time and is a bit confusing. Could you provide a command-line that you does in fact successfully compile a Fortran program in that environment? I can mangle it together from there.