Opened 7 years ago
Closed 6 years ago
#56088 closed defect (fixed)
lapack @3.8.0+gfortran+universal: Configure fails to link VerifyFortranC due to architecture mismatch
Reported by: | demisjohn (Demis D. John) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | ||
Port: | lapack |
Description
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)
Attachments (1)
Change History (3)
Changed 7 years ago by demisjohn (Demis D. John)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | tenomoto removed |
---|---|
Owner: | set to tenomoto |
Status: | new → assigned |
comment:2 Changed 6 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
main.log from failed build