Hello,

I was able to fix it. Thanks again.

Best regards,

Joauma

De : Matthew Knepley <[email protected]>
Date : mercredi, 31 mai 2023 à 12:55
À : Joauma Marichal <[email protected]>
Cc : PETSc <[email protected]>, [email protected] 
<[email protected]>
Objet : Re: [petsc-maint] Error during compile
On Wed, May 31, 2023 at 6:34 AM Joauma Marichal 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

Thanks a lot, it worked. However my code does not compile anymore (I haven’t 
changed anything since yesterday and it worked then). I get the following error:

It looks like your Homebrew has changed. In particular, the gcc 12.2.0 is 
missing, and presumably that is where libgfortran was.

  Thanks,

     Matt


 -L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current -lpetsc -lHYPRE -lflapack 
-lfblas -lc++ -lmpifort -lmpi -lpmpi -lgfortran -lemutls_w -lquadmath -lc++

ld: warning: directory not found for option 
'-L/opt/homebrew/Cellar/mpich/4.1/lib'

ld: warning: directory not found for option 
'-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc/aarch64-apple-darwin22/12'

ld: warning: directory not found for option 
'-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc'

ld: warning: directory not found for option 
'-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current'

ld: library not found for -lgfortran

clang: error: linker command failed with exit code 1 (use -v to see invocation)


I attach the complete log file.

Thanks a lot for your help.

Best regards,

Joauma

De : Matthew Knepley <[email protected]<mailto:[email protected]>>
Date : mercredi, 31 mai 2023 à 12:03
À : Joauma Marichal 
<[email protected]<mailto:[email protected]>>
Cc : PETSc <[email protected]<mailto:[email protected]>>, 
[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>
Objet : Re: [petsc-maint] Error during compile
On Wed, May 31, 2023 at 5:25 AM Joauma Marichal 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

I am writing to you as I am trying to compile petsc on my mac.

I used:
$ export 
PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/munki
$ ./configure --download-fblaslapack --download-hypre 
--prefix=../marha/lib_petsc

This is a bug in make 4.4.1. Either upgrade to the latest PETSc release or

  make OMAKE_PRINTDIR=make all

  Thanks,

     Matt

Which has worked previously but today, I get:


**************************ERROR*************************************

  Error during compile, check arch-darwin-c-debug/lib/petsc/conf/make.log

  Send it and arch-darwin-c-debug/lib/petsc/conf/configure.log to 
[email protected]<mailto:[email protected]>

********************************************************************


I attach the files.

Thanks a lot for your help.

Best regards,

Joauma





--
What most experimenters take for granted before they begin their experiments is 
infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/<http://www.cse.buffalo.edu/~knepley/>


--
What most experimenters take for granted before they begin their experiments is 
infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/<http://www.cse.buffalo.edu/~knepley/>

Reply via email to