mrklein / openfoam-os-x

Patches for OpenFOAM(R) to build it on OS X
93 stars 33 forks source link

problem with " brew install mrklein/foam/scotch" #88

Closed cloner0110 closed 1 year ago

cloner0110 commented 1 year ago

Hi, the following error happened upon executing of brew install scotch.

==> Fetching dependencies for mrklein/foam/scotch: openssl@3
==> Fetching openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.1.2-1
######################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:904a07d9
######################################################################### 100.0%
==> Fetching mrklein/foam/scotch
==> Downloading https://gforge.inria.fr/frs/download.php/file/34618/scotch_6.0.4
==> Downloading from https://www.labri.fr/perso/pelegrin/scotch/distrib/scotch_6
######################################################################### 100.0%
==> Installing scotch from mrklein/foam
==> Installing dependencies for mrklein/foam/scotch: openssl@3
==> Installing mrklein/foam/scotch dependency: openssl@3
==> Pouring openssl@3--3.1.2.arm64_ventura.bottle.1.tar.gz
🍺  /opt/homebrew/Cellar/openssl@3/3.1.2: 6,495 files, 28.4MB
==> Installing mrklein/foam/scotch
==> make scotch VERBOSE=ON CCS=clang CCP=mpicc CCD=mpicc RANLIB=echo CFLAGS=-O3
Last 15 lines from /Users/amirhosseintaran/Library/Logs/Homebrew/scotch/01.make:
clang -O3 -fPIC -Drestrict=__restrict -DCOMMON_PTHREAD_BARRIER -DCOMMON_PTHREAD -DSCOTCH_CHECK_AUTO -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_GZ  -c wgraph_part_rb.c -o wgraph_part_rb.o
clang -O3 -fPIC -Drestrict=__restrict -DCOMMON_PTHREAD_BARRIER -DCOMMON_PTHREAD -DSCOTCH_CHECK_AUTO -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_GZ  -c library_error.c -o library_error.o
clang -O3 -fPIC -Drestrict=__restrict -DCOMMON_PTHREAD_BARRIER -DCOMMON_PTHREAD -DSCOTCH_CHECK_AUTO -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_GZ  -c library_error_exit.c -o library_error_exit.o
library_random_f.c:75:3: error: call to undeclared function 'SCOTCH_randomProc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  SCOTCH_randomProc (*procnum);
  ^
library_random_f.c:75:3: note: did you mean 'SCOTCH_randomSeed'?
./scotch.h:270:29: note: 'SCOTCH_randomSeed' declared here
void                        SCOTCH_randomSeed   (SCOTCH_Num);
                            ^
1 error generated.
make[2]: *** [library_random_f.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scotch] Error 2
make: *** [scotch] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/mrklein/homebrew-foam/issues
cloner0110 commented 1 year ago

This one also can be replaced by brew install scotch. worked for m2, Ventura