[MacPorts] #53565: cmake: Fortran build error with MACOSX_DEPLOYMENT_TARGET set
MacPorts
noreply at macports.org
Tue Feb 14 05:23:46 UTC 2017
#53565: cmake: Fortran build error with MACOSX_DEPLOYMENT_TARGET set
----------------------+------------------------
Reporter: tenomoto | Owner: michaelld
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: cmake, gcc
----------------------+------------------------
When MACOSX_DEPLOYMENT_TARGET is set, gfortran fails to build a simple
test program during cmake. The attachment is a minimal CMakeLists.txt to
reproduce the problem. I used gfrotran-mp-6 on Sierra, but I also had the
same problem with gfortran-mp-5.
{{{
$ tail CMakeFiles/CMakeError.log
/opt/local/bin/gfortran-mp-6 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-mmacosx-version-min=10.11 -c
/tmp/cmake/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o
CMakeFiles/cmTC_7967f.dir/testFortranCompiler.f.o
Linking Fortran executable cmTC_7967f
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTC_7967f.dir/link.txt --verbose=1
/opt/local/bin/gfortran-mp-6 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
-mmacosx-version-min=10.11
CMakeFiles/cmTC_7967f.dir/testFortranCompiler.f.o -o cmTC_7967f
ld: unexpected token: !tapi-tbd-v2 file
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libSystem.tbd'
for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [cmTC_7967f] Error 1
make: *** [cmTC_7967f/fast] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/53565>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list