Opened 7 years ago

Closed 3 years ago

#53053 closed defect (fixed)

atlas build fail -- Xcode can't create dynamic library?

Reported by: Zippyzip Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: atlas

Description

I can't manage to build standalone atlas (+gcc5). ( It seems +nofortran avoids the error but then I get problems for atlas dependent ports such as Octave)

MacOS X: El Capitan 10.11.6

XCode: 8.1

Macports: 2.3.5.

Snippet of presumably relevant part of the log file:

:info:build make[4]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/build/lib'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make dylib
:info:build make[5]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/build/lib'
:info:build rm -rf RCW_tMp ; mkdir RCW_tMp
:info:build cd RCW_tMp ; ar x ../liblapack.a 
:info:build cd RCW_tMp ; ar x ../libf77blas.a
:info:build cd RCW_tMp ; ar x ../libcblas.a 
:info:build cd RCW_tMp ; ar x ../libatlas.a
:info:build cd RCW_tMp ; /usr/bin/libtool -dynamiclib -o ../libsatlas.dylib \
:info:build         -install_name /opt/local/lib/libsatlas.dylib -current_version 3.10.2 \
:info:build         -compatibility_version 3.10.2 *.o -lpthread -lm /opt/local/lib/gcc5/libgfortran.dylib
:info:build error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `d' in: -dynamiclib
:info:build Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
:info:build Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
:info:build make[5]: *** [dylib] Error 1
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/build/lib'
:info:build make[4]: *** [shared_all] Error 2
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/build/lib'
:info:build make[3]: *** [dylibs] Error 2
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/build'
:info:build make[2]: *** [IBuildDyLibs] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/build/bin'
:info:build ARED LIBRARY UPDATE at 10:05
:info:build make -f Makefile IBuildDyLibs 2>&1 | ./xatlas_tee INSTALL_LOG/LIBDYBUILD.LOG
:info:build    DONE  STAGE 5-2-0 at 10:05

...

:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make dylib
:info:build rm -rf RCW_tMp ; mkdir RCW_tMp
:info:build cd RCW_tMp ; ar x ../liblapack.a 
:info:build cd RCW_tMp ; ar x ../libf77blas.a
:info:build cd RCW_tMp ; ar x ../libcblas.a 
:info:build cd RCW_tMp ; ar x ../libatlas.a
:info:build cd RCW_tMp ; /opt/local/bin/gcc-mp-5 -fomit-frame-pointer -mfpmath=sse -O3 -fno-schedule-insns2 -fPIC -msse4.2 -m64 -fPIC -dynamiclib -o ../libsatlas.dylib \
:info:build         -install_name /opt/local/lib/libsatlas.dylib -current_version 3.10.2 \
:info:build         -compatibility_version 3.10.2 *.o -lpthread -lm /opt/local/lib/gcc5/libgfortran.dylib
:info:build gcc-mp-5: error: /opt/local/lib/gcc5/libgfortran.dylib: No such file or directory
:info:build make[1]: *** [dylib] Error 1
:info:build make: *** [shared_all] Error 2
:info:build Command failed: /usr/bin/make shared_all
:info:build Exit code: 2
:error:build org.macports.build for port atlas returned: command execution failed

Change History (4)

comment:1 Changed 7 years ago by Zippyzip

My apologies, it seems the problem is not related to Xcode but to gcc/gfortran. I still don't understand why libgfortran is a dead symlink on my installation, looking into it.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Cc: vince@… removed
Keywords: xcode dynamic library fortran removed
Owner: set to Veence
Status: newassigned

comment:3 Changed 7 years ago by Zippyzip

Update:

I solved the problem with the dead symlink by reinstalling libgcc. Since then atlas appears to build without problem. (I am still unsure what the deal was with the first error involving XCode, but apparently it does not break the build...)

comment:4 Changed 3 years ago by Veence (Vincent)

Resolution: fixed
Status: assignedclosed
  • Not relevant anymore -
Note: See TracTickets for help on using tickets.