Opened 2 years ago

Closed 2 years ago

#65292 closed defect (fixed)

armadillo fails to build on Leopard: Undefined symbols: "_dpstrf_", "_zpstrf_", "_cpstrf_", "_spstrf_"

Reported by: barracuda156 Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, leopard, snowleopard Cc:
Port: armadillo

Description

[100%] Linking CXX shared library libarmadillo.dylib
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/armadillo.dir/link.txt --verbose=ON
/opt/local/bin/g++-mp-11 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -O2 -DNDEBUG -arch ppc -mmacosx-version-min=10.5 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -compatibility_version 11.0.0 -current_version 11.1.1 -o libarmadillo.11.1.1.dylib -install_name /opt/local/lib/libarmadillo.11.dylib CMakeFiles/armadillo.dir/src/wrapper1.cpp.o CMakeFiles/armadillo.dir/src/wrapper2.cpp.o  -Wl,-rpath,/opt/local/lib -framework Accelerate /opt/local/lib/libhdf5.dylib /opt/local/lib/libMacportsLegacySupport.dylib /opt/local/lib/libz.dylib //usr/lib/libdl.dylib //usr/lib/libm.dylib 
Undefined symbols:
  "_dpstrf_", referenced from:
      _wrapper_dpstrf_ in wrapper1.cpp.o
      _wrapper2_dpstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper_dpstrf_, _wrapper2_dpstrf_ )
  "_zpstrf_", referenced from:
      _wrapper_zpstrf_ in wrapper1.cpp.o
      _wrapper2_zpstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper_zpstrf_, _wrapper2_zpstrf_ )
  "_cpstrf_", referenced from:
      _wrapper_cpstrf_ in wrapper1.cpp.o
      _wrapper2_cpstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper2_cpstrf_, _wrapper_cpstrf_ )
  "_spstrf_", referenced from:
      _wrapper_spstrf_ in wrapper1.cpp.o
      _wrapper2_spstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper2_spstrf_, _wrapper_spstrf_ )
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [libarmadillo.11.1.1.dylib] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_armadillo/armadillo/work/build'
make[1]: *** [CMakeFiles/armadillo.dir/all] Error 2

It also fails on 10.6 PPC identically.

Attachments (1)

main.log (33.4 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by Schamschula (Marius Schamschula)

I don't have access to these operating systems. Patches welcome.

comment:2 Changed 2 years ago by barracuda156

Same failure on Rosetta:

Undefined symbols:
  "_dpstrf_", referenced from:
      _wrapper_dpstrf_ in wrapper1.cpp.o
      _wrapper2_dpstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper_dpstrf_, _wrapper2_dpstrf_ )
  "_zpstrf_", referenced from:
      _wrapper_zpstrf_ in wrapper1.cpp.o
      _wrapper2_zpstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper_zpstrf_, _wrapper2_zpstrf_ )
  "_cpstrf_", referenced from:
      _wrapper_cpstrf_ in wrapper1.cpp.o
      _wrapper2_cpstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper_cpstrf_, _wrapper2_cpstrf_ )
  "_spstrf_", referenced from:
      _wrapper_spstrf_ in wrapper1.cpp.o
      _wrapper2_spstrf_ in wrapper2.cpp.o
     (maybe you meant: _wrapper_spstrf_, _wrapper2_spstrf_ )
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [libarmadillo.11.2.3.dylib] Error 1

comment:3 Changed 2 years ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 604d5a3a1fe87f8a1696198bdede13b9503369e1/macports-ports (master):

armadillo: make openblas variant default on PPC, fixes build
Fixes: #65292

Note: See TracTickets for help on using tickets.