#68686 closed defect (fixed)

lapack @3.11.0: ld: duplicate LC_RPATH '/opt/local/lib/libgcc'

Reported by: bjmarfito (Bryan Marfito) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: Dave-Allured (Dave Allured), krlong014 (Katharine Long), carlesfernandez (Carles Fernandez)
Port: lapack

Description

I am having problem building and installing LAPACK 3.11.0 using Macports after upgrading to MacOS Sonoma. I'm using a Mac with an ARM chip.

Attaching herewith the logfile for your reference, please.

Attachments (1)

main.log (5.8 MB) - added by bjmarfito (Bryan Marfito) 12 months ago.
Log file during building and installation of LAPACK

Change History (8)

Changed 12 months ago by bjmarfito (Bryan Marfito)

Attachment: main.log added

Log file during building and installation of LAPACK

comment:1 Changed 12 months ago by jmroot (Joshua Root)

Keywords: Lapack removed
Owner: set to tenomoto
Port: lapack added; Lapack removed
Status: newassigned

comment:2 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added
Summary: Problem in installing LAPACKlapack @3.11.0: ld: duplicate LC_RPATH '/opt/local/lib/libgcc'
Version: 2.8.1

I see this in the log:

ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_math_lapack/lapack/work/build/lib/libblas.3.11.0.dylib'

Lots of other tickets about this problem with Xcode 15.

comment:3 Changed 12 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:4 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: krlong014 added

Has duplicate #68904.

comment:5 Changed 10 months ago by carlesfernandez (Carles Fernandez)

Cc: carlesfernandez added

comment:6 Changed 10 months ago by barracuda156

Yes, and still failing:

:info:build [  9%] Building Fortran object SRC/CMakeFiles/lapack.dir/slacon.f.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_lapack/lapack/work/build/SRC && /opt/local/bin/gfortran-mp-13 -Dlapack_EXPORTS  -pipe -Os -m64 -frecursive -O2 -DNDEBUG -O2 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_lapack/lapack/work/lapack-3.11.0/SRC/slacon.f -o CMakeFiles/lapack.dir/slacon.f.o
:info:build /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/gcc13 -lgfortran -Wl,-rpath,/opt/local/lib/libgcc -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -compatibility_version 3.0.0 -current_version 3.11.0 -o ../../lib/libcblas.3.11.0.dylib -install_name @rpath/libcblas.3.dylib CMakeFiles/cblas.dir/cblas_srotg.c.o CMakeFiles/cblas.dir/cblas_srotmg.c.o CMakeFiles/cblas.dir/cblas_srot.c.o CMakeFiles/cblas.dir/cblas_srotm.c.o CMakeFiles/cblas.dir/cblas_sswap.c.o CMakeFiles/cblas.dir/cblas_sscal.c.o CMakeFiles/cblas.dir/cblas_scopy.c.o CMakeFiles/cblas.dir/cblas_saxpy.c.o CMakeFiles/cblas.dir/cblas_sdot.c.o CMakeFiles/cblas.dir/cblas_sdsdot.c.o CMakeFiles/cblas.dir/cblas_snrm2.c.o CMakeFiles/cblas.dir/cblas_sasum.c.o CMakeFiles/cblas.dir/cblas_isamax.c.o CMakeFiles/cblas.dir/sdotsub.f.o CMakeFiles/cblas.dir/sdsdotsub.f.o CMakeFiles/cblas.dir/snrm2sub.f.o CMakeFiles/cblas.dir/sasumsub.f.o CMakeFiles/cblas.dir/isamaxsub.f.o CMakeFiles/cblas.dir/cblas_scasum.c.o CMakeFiles/cblas.dir/scasumsub.f.o CMakeFiles/cblas.dir/cblas_scnrm2.c.o CMakeFiles/cblas.dir/scnrm2sub.f.o CMakeFiles/cblas.dir/cblas_sgemv.c.o CMakeFiles/cblas.dir/cblas_sgbmv.c.o CMakeFiles/cblas.dir/cblas_sger.c.o CMakeFiles/cblas.dir/cblas_ssbmv.c.o CMakeFiles/cblas.dir/cblas_sspmv.c.o CMakeFiles/cblas.dir/cblas_sspr.c.o CMakeFiles/cblas.dir/cblas_sspr2.c.o CMakeFiles/cblas.dir/cblas_ssymv.c.o CMakeFiles/cblas.dir/cblas_ssyr.c.o CMakeFiles/cblas.dir/cblas_ssyr2.c.o CMakeFiles/cblas.dir/cblas_stbmv.c.o CMakeFiles/cblas.dir/cblas_stbsv.c.o CMakeFiles/cblas.dir/cblas_stpmv.c.o CMakeFiles/cblas.dir/cblas_stpsv.c.o CMakeFiles/cblas.dir/cblas_strmv.c.o CMakeFiles/cblas.dir/cblas_strsv.c.o CMakeFiles/cblas.dir/cblas_sgemm.c.o CMakeFiles/cblas.dir/cblas_ssymm.c.o CMakeFiles/cblas.dir/cblas_ssyrk.c.o CMakeFiles/cblas.dir/cblas_ssyr2k.c.o CMakeFiles/cblas.dir/cblas_strmm.c.o CMakeFiles/cblas.dir/cblas_strsm.c.o CMakeFiles/cblas.dir/cblas_globals.c.o CMakeFiles/cblas.dir/cblas_xerbla.c.o CMakeFiles/cblas.dir/xerbla.c.o CMakeFiles/cblas.dir/cblas_drotg.c.o CMakeFiles/cblas.dir/cblas_drotmg.c.o CMakeFiles/cblas.dir/cblas_drot.c.o CMakeFiles/cblas.dir/cblas_drotm.c.o CMakeFiles/cblas.dir/cblas_dswap.c.o CMakeFiles/cblas.dir/cblas_dscal.c.o CMakeFiles/cblas.dir/cblas_dcopy.c.o CMakeFiles/cblas.dir/cblas_daxpy.c.o CMakeFiles/cblas.dir/cblas_ddot.c.o CMakeFiles/cblas.dir/cblas_dsdot.c.o CMakeFiles/cblas.dir/cblas_dnrm2.c.o CMakeFiles/cblas.dir/cblas_dasum.c.o CMakeFiles/cblas.dir/cblas_idamax.c.o CMakeFiles/cblas.dir/ddotsub.f.o CMakeFiles/cblas.dir/dsdotsub.f.o CMakeFiles/cblas.dir/dnrm2sub.f.o CMakeFiles/cblas.dir/dasumsub.f.o CMakeFiles/cblas.dir/idamaxsub.f.o CMakeFiles/cblas.dir/cblas_dgemv.c.o CMakeFiles/cblas.dir/cblas_dgbmv.c.o CMakeFiles/cblas.dir/cblas_dger.c.o CMakeFiles/cblas.dir/cblas_dsbmv.c.o CMakeFiles/cblas.dir/cblas_dspmv.c.o CMakeFiles/cblas.dir/cblas_dspr.c.o CMakeFiles/cblas.dir/cblas_dspr2.c.o CMakeFiles/cblas.dir/cblas_dsymv.c.o CMakeFiles/cblas.dir/cblas_dsyr.c.o CMakeFiles/cblas.dir/cblas_dsyr2.c.o CMakeFiles/cblas.dir/cblas_dtbmv.c.o CMakeFiles/cblas.dir/cblas_dtbsv.c.o CMakeFiles/cblas.dir/cblas_dtpmv.c.o CMakeFiles/cblas.dir/cblas_dtpsv.c.o CMakeFiles/cblas.dir/cblas_dtrmv.c.o CMakeFiles/cblas.dir/cblas_dtrsv.c.o CMakeFiles/cblas.dir/cblas_dgemm.c.o CMakeFiles/cblas.dir/cblas_dsymm.c.o CMakeFiles/cblas.dir/cblas_dsyrk.c.o CMakeFiles/cblas.dir/cblas_dsyr2k.c.o CMakeFiles/cblas.dir/cblas_dtrmm.c.o CMakeFiles/cblas.dir/cblas_dtrsm.c.o CMakeFiles/cblas.dir/cblas_crotg.c.o CMakeFiles/cblas.dir/cblas_csrot.c.o CMakeFiles/cblas.dir/cblas_cswap.c.o CMakeFiles/cblas.dir/cblas_cscal.c.o CMakeFiles/cblas.dir/cblas_csscal.c.o CMakeFiles/cblas.dir/cblas_ccopy.c.o CMakeFiles/cblas.dir/cblas_caxpy.c.o CMakeFiles/cblas.dir/cblas_cdotu_sub.c.o CMakeFiles/cblas.dir/cblas_cdotc_sub.c.o CMakeFiles/cblas.dir/cblas_icamax.c.o CMakeFiles/cblas.dir/cdotcsub.f.o CMakeFiles/cblas.dir/cdotusub.f.o CMakeFiles/cblas.dir/icamaxsub.f.o CMakeFiles/cblas.dir/cblas_scabs1.c.o CMakeFiles/cblas.dir/scabs1sub.f.o CMakeFiles/cblas.dir/cblas_cgemv.c.o CMakeFiles/cblas.dir/cblas_cgbmv.c.o CMakeFiles/cblas.dir/cblas_chemv.c.o CMakeFiles/cblas.dir/cblas_chbmv.c.o CMakeFiles/cblas.dir/cblas_chpmv.c.o CMakeFiles/cblas.dir/cblas_ctrmv.c.o CMakeFiles/cblas.dir/cblas_ctbmv.c.o CMakeFiles/cblas.dir/cblas_ctpmv.c.o CMakeFiles/cblas.dir/cblas_ctrsv.c.o CMakeFiles/cblas.dir/cblas_ctbsv.c.o CMakeFiles/cblas.dir/cblas_ctpsv.c.o CMakeFiles/cblas.dir/cblas_cgeru.c.o CMakeFiles/cblas.dir/cblas_cgerc.c.o CMakeFiles/cblas.dir/cblas_cher.c.o CMakeFiles/cblas.dir/cblas_cher2.c.o CMakeFiles/cblas.dir/cblas_chpr.c.o CMakeFiles/cblas.dir/cblas_chpr2.c.o CMakeFiles/cblas.dir/cblas_cgemm.c.o CMakeFiles/cblas.dir/cblas_csymm.c.o CMakeFiles/cblas.dir/cblas_chemm.c.o CMakeFiles/cblas.dir/cblas_cherk.c.o CMakeFiles/cblas.dir/cblas_cher2k.c.o CMakeFiles/cblas.dir/cblas_ctrmm.c.o CMakeFiles/cblas.dir/cblas_ctrsm.c.o CMakeFiles/cblas.dir/cblas_csyrk.c.o CMakeFiles/cblas.dir/cblas_csyr2k.c.o CMakeFiles/cblas.dir/cblas_zrotg.c.o CMakeFiles/cblas.dir/cblas_zdrot.c.o CMakeFiles/cblas.dir/cblas_zswap.c.o CMakeFiles/cblas.dir/cblas_zscal.c.o CMakeFiles/cblas.dir/cblas_zdscal.c.o CMakeFiles/cblas.dir/cblas_zcopy.c.o CMakeFiles/cblas.dir/cblas_zaxpy.c.o CMakeFiles/cblas.dir/cblas_zdotu_sub.c.o CMakeFiles/cblas.dir/cblas_zdotc_sub.c.o CMakeFiles/cblas.dir/cblas_dznrm2.c.o CMakeFiles/cblas.dir/cblas_dzasum.c.o CMakeFiles/cblas.dir/cblas_izamax.c.o CMakeFiles/cblas.dir/zdotcsub.f.o CMakeFiles/cblas.dir/zdotusub.f.o CMakeFiles/cblas.dir/dzasumsub.f.o CMakeFiles/cblas.dir/dznrm2sub.f.o CMakeFiles/cblas.dir/izamaxsub.f.o CMakeFiles/cblas.dir/cblas_dcabs1.c.o CMakeFiles/cblas.dir/dcabs1sub.f.o CMakeFiles/cblas.dir/cblas_zgemv.c.o CMakeFiles/cblas.dir/cblas_zgbmv.c.o CMakeFiles/cblas.dir/cblas_zhemv.c.o CMakeFiles/cblas.dir/cblas_zhbmv.c.o CMakeFiles/cblas.dir/cblas_zhpmv.c.o CMakeFiles/cblas.dir/cblas_ztrmv.c.o CMakeFiles/cblas.dir/cblas_ztbmv.c.o CMakeFiles/cblas.dir/cblas_ztpmv.c.o CMakeFiles/cblas.dir/cblas_ztrsv.c.o CMakeFiles/cblas.dir/cblas_ztbsv.c.o CMakeFiles/cblas.dir/cblas_ztpsv.c.o CMakeFiles/cblas.dir/cblas_zgeru.c.o CMakeFiles/cblas.dir/cblas_zgerc.c.o CMakeFiles/cblas.dir/cblas_zher.c.o CMakeFiles/cblas.dir/cblas_zher2.c.o CMakeFiles/cblas.dir/cblas_zhpr.c.o CMakeFiles/cblas.dir/cblas_zhpr2.c.o CMakeFiles/cblas.dir/cblas_zgemm.c.o CMakeFiles/cblas.dir/cblas_zsymm.c.o CMakeFiles/cblas.dir/cblas_zhemm.c.o CMakeFiles/cblas.dir/cblas_zherk.c.o CMakeFiles/cblas.dir/cblas_zher2k.c.o CMakeFiles/cblas.dir/cblas_ztrmm.c.o CMakeFiles/cblas.dir/cblas_ztrsm.c.o CMakeFiles/cblas.dir/cblas_zsyrk.c.o CMakeFiles/cblas.dir/cblas_zsyr2k.c.o   -L/opt/local/lib/gcc13/gcc/arm64-apple-darwin23/13.2.0  -Wl,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_lapack/lapack/work/build/lib ../../lib/libblas.3.11.0.dylib -lgfortran -lgfortran -lemutls_w -lgcc -lquadmath -lemutls_w -lgcc -lgcc 
:info:build ld: warning: ignoring duplicate libraries: '-lemutls_w', '-lgcc', '-lgfortran'
:info:build ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_lapack/lapack/work/build/lib/libblas.3.11.0.dylib'
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [lib/libcblas.3.11.0.dylib] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_lapack/lapack/work/build'
:info:build make[1]: *** [CBLAS/src/CMakeFiles/cblas.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

comment:7 Changed 10 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In a2228121bebce723ad9b257b84d975aa0e653a12/macports-ports (master):

lapack @3.11.0: don't duplicate rpaths

closes: #68686

Note: See TracTickets for help on using tickets.