[MacPorts] #58895: OpenBLAS @0.3.7 +native build failure: ld: library not found for -lSystem

MacPorts noreply at macports.org
Thu Aug 29 19:24:23 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 kencu):

 for comparison, here is my test build of `hello.f` using gcc9 on my 10.14
 system (with Xcode installed) and it works fine. I have `ld64 +ld64_xcode`
 for my ld.
 {{{
 $ /opt/local/bin/gfortran-mp-9 -v -o hello hello.f
 Driving: /opt/local/bin/gfortran-mp-9 -v -o hello hello.f -mmacosx-
 version-min=10.14.0 -asm_macosx_version_min=10.14 -l gfortran -shared-
 libgcc
 Using built-in specs.
 COLLECT_GCC=/opt/local/bin/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' 'hello' '-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 hello.f -ffixed-
 form -fPIC -quiet -dumpbase hello.f -mmacosx-version-min=10.14.0
 -mtune=core2 -auxbase hello -version -fintrinsic-modules-path
 /opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0/finclude -o
 /var/folders/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//ccGXS4iK.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' 'hello' '-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/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//cczWZxaG.o
 /var/folders/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//ccGXS4iK.s
 clang version 9.0.0 (trunk 365158)
 Target: x86_64-apple-darwin18.7.0
 Thread model: posix
 InstalledDir: /opt/local/libexec/llvm-devel/bin
  "/opt/local/libexec/llvm-devel/bin/clang" -cc1as -triple x86_64-apple-
 macosx10.14.0 -filetype obj -main-file-name ccGXS4iK.s -target-cpu penryn
 -fdebug-compilation-dir /Users/cunningh -dwarf-debug-producer "clang
 version 9.0.0 (trunk 365158)" -dwarf-version=4 -mrelocation-model pic -o
 /var/folders/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//cczWZxaG.o
 /var/folders/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//ccGXS4iK.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' 'hello' '-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=/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' 'hello' '-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 hello
 -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/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//cczWZxaG.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 hello
 -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/hp/684rvltd0c127nmt0bh3bpzm0000gn/T//cczWZxaG.o -lgfortran
 -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
 -lgcc_ext.10.5 -lgcc -lSystem -v
 @(#)PROGRAM:ld  PROJECT:ld64-450.3
 BUILD 18:16:53 Apr  5 2019
 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386
 x86_64 x86_64h armv6m armv7k armv7m armv7em
 Library search paths:
         /opt/local/lib/gcc9/gcc/x86_64-apple-darwin18/9.2.0
         /opt/local/lib/gcc9
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib
 Framework search paths:
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58895#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list