[petsc-dev] Gfortran Fix for "library not found for -lSystem" macOS Big Sur

Jacob Faibussowitsch jacob.fai at gmail.com
Wed Dec 23 13:11:26 CST 2020


Follow up, seems that things are more borked than I previously thought. Adding the below to $LIBRARY_PATH makes gfortran work, but MPICH build now fails with:

ld: framework not found OpenCL
collect2: error: ld returned 1 exit status

(Along with 10 different unsigned to signed conversion warnings).

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
Cell: (312) 694-3391



> On Dec 22, 2020, at 13:33, Jacob Faibussowitsch <jacob.fai at gmail.com> wrote:
> 
> Hello All,
> 
> If anyone is on macOS and using brew to get gfortran, you may find it suddenly doesn’t work anymore.
> 
> Fix is to add /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib to $LIBRARY_PATH in startup shell file, as per this SO post.
> 
> https://apple.stackexchange.com/questions/408999/gfortran-compiler-error-on-mac-os-big-sur <https://apple.stackexchange.com/questions/408999/gfortran-compiler-error-on-mac-os-big-sur>
> 
> Best regards,
> 
> Jacob Faibussowitsch
> (Jacob Fai - booss - oh - vitch)
> Cell: (312) 694-3391
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201223/14423de5/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 1144070 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201223/14423de5/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201223/14423de5/attachment-0003.html>


More information about the petsc-dev mailing list