libquadmath.o.dylib found by gcc, but not mpicc

67 views Asked by At

I want to compile some igraph code within a file that uses MPI and OpenACC. Using an igraph example (“sparsemat2.c”), it compiles with “gcc”, but not “mpicc”.

$ gcc sparsemat2.c -I/usr/local/include/igraph -o sparsemat2 -ligraph
$ mpicc sparsemat2.c -I/usr/local/include/igraph -o sparsemat2 -ligraph
ld: file not found: @rpath/libquadmath.0.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$

Looking at the “-v” output, the two call most of the same include directories and link libraries. Is “libquadmath.0.dylib” somehow attached to “gcc”? Is there a way for “mpicc” to link to it?

System info:

MacBook Pro OSX 12.6.3
$ mpicc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$
0

There are 0 answers