[petsc-users] [petsc-maint] Error during compile

Matthew Knepley knepley at gmail.com
Wed May 31 05:55:05 CDT 2023


On Wed, May 31, 2023 at 6:34 AM Joauma Marichal <
joauma.marichal at uclouvain.be> 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 <knepley at gmail.com>
> *Date : *mercredi, 31 mai 2023 à 12:03
> *À : *Joauma Marichal <joauma.marichal at uclouvain.be>
> *Cc : *PETSc <petsc-maint at mcs.anl.gov>, petsc-users at mcs.anl.gov <
> petsc-users at mcs.anl.gov>
> *Objet : *Re: [petsc-maint] Error during compile
>
> On Wed, May 31, 2023 at 5:25 AM Joauma Marichal <
> joauma.marichal at uclouvain.be> 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
> petsc-maint at mcs.anl.gov <petsc-maint at mcs.anl.gov>*
>
> **********************************************************************
>
>
>
>
>
> 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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230531/43a096e3/attachment.html>


More information about the petsc-users mailing list