[petsc-dev] Gfortran Fix for "library not found for -lSystem" macOS Big Sur
Satish Balay
balay at mcs.anl.gov
Wed Dec 23 13:25:03 CST 2020
You can try:
>>>>>>
diff --git a/config/BuildSystem/config/packages/MPICH.py b/config/BuildSystem/config/packages/MPICH.py
index 3e65836737..f0583a6deb 100644
--- a/config/BuildSystem/config/packages/MPICH.py
+++ b/config/BuildSystem/config/packages/MPICH.py
@@ -61,7 +61,7 @@ class Configure(config.package.GNUPackage):
args.append('--with-device='+mpich_device)
# make MPICH behave properly for valgrind
args.append('--enable-g=meminit')
- if (not self.sharedLibraries.useShared or self.valgrind.found) and config.setCompilers.Configure.isDarwin(self.log):
+ if config.setCompilers.Configure.isDarwin(self.log):
args.append('--disable-opencl')
# MPICH configure errors out on certain standard configure arguments
<<<
Satish
On Wed, 23 Dec 2020, Jacob Faibussowitsch wrote:
> 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<mailto: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
>
> Best regards,
>
> Jacob Faibussowitsch
> (Jacob Fai - booss - oh - vitch)
> Cell: (312) 694-3391
>
>
>
More information about the petsc-dev
mailing list