[MacPorts] #58895: OpenBLAS @0.3.7 +native build failure: ld: library not found for -lSystem
MacPorts
noreply at macports.org
Thu Aug 29 14:38:15 UTC 2019
#58895: OpenBLAS @0.3.7 +native build failure: ld: library not found for -lSystem
-----------------------+-------------------------
Reporter: prbuen | Owner: NicosPavlov
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: OpenBLAS |
-----------------------+-------------------------
Comment (by prbuen):
Thanks Ken, you got it right: somehow the Library search paths aren't
setup properly on my gfortran. Compiling hello above gives me (`gcc9`
rather than `gcc8`):
{{{
# gfortran-mp-9 -v -o test test.f
Driving: gfortran-mp-9 -v -o test test.f -mmacosx-version-min=10.14.0
-asm_macosx_version_min=10.14 -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran-mp-9
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin18/9.2.0
/lto-wrapper
Target: x86_64-apple-darwin18
Configured with:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc9/gcc9/work/gcc-9.2.0/configure
--prefix=/opt/local --build=x86_64-apple-darwin18 --enable-
languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc9
--includedir=/opt/local/include/gcc9 --infodir=/opt/local/share/info
--mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-9 --with-
local-prefix=/opt/local --with-system-zlib --disable-nls --program-
suffix=-mp-9 --with-gxx-include-dir=/opt/local/include/gcc9/c++/ --with-
gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-
isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto
--enable-libstdcxx-time --with-build-config=bootstrap-debug --with-
as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-
ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
--disable-tls --with-pkgversion='MacPorts gcc9 9.2.0_0' --with-
sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
Thread model: posix
gcc version 9.2.0 (MacPorts gcc9 9.2.0_0)
COLLECT_GCC_OPTIONS='-v' '-o' 'test' '-mmacosx-version-min=10.14.0'
'-asm_macosx_version_min=10.14' '-shared-libgcc' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin18/9.2.0/f951 test.f -ffixed-
form -fPIC -quiet -dumpbase test.f -mmacosx-version-min=10.14.0
-mtune=core2 -auxbase test -version -fintrinsic-modules-path
/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/finclude -o
/var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//cc1QUpH1.s
GNU Fortran (MacPorts gcc9 9.2.0_0) version 9.2.0 (x86_64-apple-darwin18)
compiled by GNU C version 9.2.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (MacPorts gcc9 9.2.0_0) version 9.2.0 (x86_64-apple-
darwin18)
compiled by GNU C version 9.2.0, GMP version 6.1.2, MPFR version
4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-v' '-o' 'test' '-mmacosx-version-min=10.14.0'
'-shared-libgcc' '-mtune=core2'
/opt/local/bin/as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-
min=10.14 -o /var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//ccKMt2QZ.o
/var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//cc1QUpH1.s
clang version 5.0.2 (tags/RELEASE_502/final)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-5.0/bin
"/opt/local/libexec/llvm-5.0/bin/clang" -cc1as -triple x86_64-apple-
macosx10.14.0 -filetype obj -main-file-name cc1QUpH1.s -target-cpu penryn
-fdebug-compilation-dir /Users/pbuenzli/packages/programmation/openblas
-dwarf-debug-producer clang version 5.0.2 (tags/RELEASE_502/final) -dwarf-
version=4 -mrelocation-model pic -o
/var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//ccKMt2QZ.o
/var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//cc1QUpH1.s
Reading specs from /opt/local/lib/gcc9/gcc/x86_64-apple-
darwin18/9.2.0/../../../libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-v' '-o' 'test' '-mmacosx-version-min=10.14.0'
'-shared-libgcc' '-mtune=core2'
COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-
darwin18/9.2.0/:/opt/local/libexec/gcc/x86_64-apple-
darwin18/9.2.0/:/opt/local/libexec/gcc/x86_64-apple-
darwin18/:/opt/local/lib/gcc9/gcc/x86_64-apple-
darwin18/9.2.0/:/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/
LIBRARY_PATH=/usr/lib/:/usr/local/lib/:/opt/local/lib/gcc9/gcc/x86_64
-apple-darwin18/9.2.0/:/opt/local/lib/gcc9/gcc/x86_64-apple-
darwin18/9.2.0/../../../
COLLECT_GCC_OPTIONS='-v' '-o' 'test' '-mmacosx-version-min=10.14.0'
'-shared-libgcc' '-mtune=core2'
/opt/local/libexec/gcc/x86_64-apple-darwin18/9.2.0/collect2 -syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/
-dynamic -arch x86_64 -macosx_version_min 10.14.0
-weak_reference_mismatches non-weak -o test -L/usr/local/lib
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/../../..
/var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//ccKMt2QZ.o -lgfortran
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
-lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 9.2.0
/opt/local/bin/ld -syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/
-dynamic -arch x86_64 -macosx_version_min 10.14.0
-weak_reference_mismatches non-weak -o test -L/usr/local/lib
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0
-L/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/../../..
/var/folders/g6/sbw_4b913pvbfm82xb95jwdh0000gn/T//ccKMt2QZ.o -lgfortran
-no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
-lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-274.2
configured to support archs: i386 x86_64 x86_64h armv6 armv7 armv7s armv7m
armv7k arm64 (tvOS)
Library search paths:
/usr/local/lib
/opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0
/opt/local/lib/gcc9
Framework search paths:
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58895#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list