Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fail on MacOS 11.6.4 #15

Open
plicease opened this issue May 6, 2022 · 1 comment
Open

Test fail on MacOS 11.6.4 #15

plicease opened this issue May 6, 2022 · 1 comment

Comments

@plicease
Copy link

plicease commented May 6, 2022

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
@mohawk2
Copy link
Member

mohawk2 commented May 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants