Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Need help with new Eclipse install for Fortran (resend)

Hi Bernard,

This looks more like a problem with your gfortran installation. Are you able to build it manually? Try the following command and see what happens.

/usr/local/gfortran/bin/gfortran -o Fortrantest2023 Fortrantest2023.f95


Greg

On Jan 27, 2023, at 10:39 AM, fellwalker57--- via photran <photran@xxxxxxxxxxx> wrote:

I’ve been developing Fortran programs in Eclipse (now at 2022-03) for years on Macintosh.  This is working correctly on an iMac 2014 running Big Sur (macOS 11.7.3).  I have now migrated to an M2 Mac mini running Ventura (macOS 13.2) and while previously built Fortran apps still run I can’t build a new one.  Here’s the build error:

10:09:20 **** Build of configuration Release for project Fortrantest2023 ****
make all 
Building file: ../Fortrantest2023.f95
Invoking: GNU Fortran Compiler
/usr/local/gfortran/bin/gfortran -funderscoring -O3 -Wall -c -fmessage-length=0 -o "Fortrantest2023.o" "../Fortrantest2023.f95"
Finished building: ../Fortrantest2023.f95

 

Building target: Fortrantest2023
Invoking: MacOS X Fortran Linker
/usr/local/gfortran/bin/gfortran  -o "Fortrantest2023"  ./Fortrantest2023.o   
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
make: *** [Fortrantest2023] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

10:09:23 Build Failed. 2 errors, 0 warnings. (took 3s.113ms)

Can anyone please tell me what I need to do to correct this.  Presumably there is some library somewhere that needs to be installed or linked.

This is a trivial test program that computes square root using the traditional iterative method.  It works on my old machine.

Thank you!

Bernard Abramson
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/photran


Back to the top