[MacPorts] #56088: lapack @3.8.0+gfortran+universal: Configure fails to link VerifyFortranC due to architecture mismatch
MacPorts
noreply at macports.org
Sun Mar 18 07:18:44 UTC 2018
#56088: lapack @3.8.0+gfortran+universal: Configure fails to link VerifyFortranC
due to architecture mismatch
-----------------------+--------------------
Reporter: demisjohn | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: | Port: lapack
-----------------------+--------------------
When building with +universal, fails to "configure", with error in
main.log showing:
{{{
:info:configure [100%] Linking C executable VerifyFortranC
:info:configure /opt/local/bin/cmake -E cmake_link_script
CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
:info:configure /usr/bin/clang -pipe -Os -DNDEBUG
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names -lvecLibFort
CMakeFiles/VerifyFortranC.dir/main.c.o
CMakeFiles/VerifyFortranC.dir/VerifyC.c.o -o VerifyFortranC
-L/opt/local/lib/gcc7/gcc/x86_64-apple-darwin16/7.3.0
-L/opt/local/lib/gcc7 libVerifyFortran.a
:info:configure Undefined symbols for architecture x86_64:
:info:configure "__gfortran_st_write", referenced from:
:info:configure _verifyfortran_ in
libVerifyFortran.a(VerifyFortran.f.o)
:info:configure "__gfortran_st_write_done", referenced from:
:info:configure _verifyfortran_ in
libVerifyFortran.a(VerifyFortran.f.o)
:info:configure "__gfortran_transfer_character_write", referenced
from:
:info:configure _verifyfortran_ in
libVerifyFortran.a(VerifyFortran.f.o)
:info:configure ld: symbol(s) not found for architecture x86_64
:info:configure clang: error: linker command failed with exit code 1
(use -v to see invocation)
}}}
If run with '''-universal''', it builds ok.
The file '''VerifyFortran.f.o''' is x86_64 only - should it be i386 &
x86_64 for a universal build? Maybe doesn't explain the above error.
No idea how to fix or debug.
XCode v9.2, MacOS 10.12.6, MacBook Pro (13-inch, 2017, Four Thunderbolt 3
Ports)
--
Ticket URL: <https://trac.macports.org/ticket/56088>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list