octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59968] ld: symbol(s) not found for architectu


From: david laxer
Subject: [Octave-bug-tracker] [bug #59968] ld: symbol(s) not found for architecture x86_64
Date: Fri, 29 Jan 2021 12:04:09 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15

URL:
  <https://savannah.gnu.org/bugs/?59968>

                 Summary: ld: symbol(s) not found for architecture x86_64
                 Project: GNU Octave
            Submitted by: davidlaxer
            Submitted on: Fri 29 Jan 2021 05:04:07 PM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Mac OS

    _______________________________________________________

Details:

I am building Octave from source on OS X 10.15.7.
Xcode 12.4
SuiteSparse  v5.8.1


$ clang --version
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
(base) MacBook-Pro:octave davidlaxer$ xcode-select -p
/Applications/Xcode.app/Contents/Developer



 ./configure  LD_LIBRARY_PATH="-L/opt/local/lib
-L/Users/davidlaxer/SuiteSparse/lib/ -L/Users/davidlaxer/sundials/lib/ 
-L/opt/local/libexec/qt5/lib" LDFLAGS="-L/opt/local/lib
-L/Users/davidlaxer/SuiteSparse/lib/ -L/opt/local/libexec/qt5/lib"
CPPFLAGS="-I/Users/davidlaxer/SuiteSparse/include -I/opt/local/include"
--with-libiconv-prefix=/opt/local/lib
--with-sundials_ida-includedir=/Users/davidlaxer/sundials/include/ida
--with-sundials_ida-libdir=/usr/local/lib

$make 
...
config.status: executing liboctave/external/mk-f77-def.sh commands
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -fPIC -D_THREAD_SAFE -pthread
-fopenmp -Wall -W -Wshadow -Woverloaded-virtual -Wold-style-cast -Wformat
-Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -fvisibility=hidden
-g -O2 -version-info 8:0:0 -no-undefined -bindir /usr/local/bin
-L/opt/local/lib  -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib 
-L/opt/local/lib -L/Users/davidlaxer/SuiteSparse/lib/
-L/opt/local/libexec/qt5/lib -o liboctave/liboctave.la -rpath
/usr/local/lib/octave/7.0.0 liboctave/liboctave_la-liboctave-build-info.lo
liboctave/liboctave_la-version.lo liboctave/array/libarray.la
liboctave/external/blas-xtra/libxerbla.la
liboctave/external/ranlib/libranlib.la liboctave/external/libexternal.la
liboctave/numeric/libnumeric.la liboctave/operators/liboperators.la
liboctave/system/libsystem.la liboctave/util/libutil.la
liboctave/wrappers/libwrappers.la libgnu/libgnu.la -lcurl -lcholmod -lumfpack
-lamd -lcamd -lcolamd -lccolamd -lcxsparse -lsuitesparseconfig -lspqr -larpack
-lqrupdate -lfftw3_threads -lfftw3 -lfftw3f_threads -lfftw3f  -lopenblas
-lreadline -lncurses  -lpcre -ldl   -L/opt/local/lib
-L/Users/davidlaxer/SuiteSparse/lib/ -L/opt/local/libexec/qt5/lib
-L/opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.2.0
-L/opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.2.0/../../.. -lgfortran
-lquadmath -lm  -lm           -liconv   -Wl,-framework -Wl,CoreFoundation -lm

libtool: link: g++ -dynamiclib  -o liboctave/.libs/liboctave.8.dylib 
liboctave/.libs/liboctave_la-liboctave-build-info.o
liboctave/.libs/liboctave_la-version.o  
-Wl,-force_load,liboctave/array/.libs/libarray.a
-Wl,-force_load,liboctave/external/blas-xtra/.libs/libxerbla.a
-Wl,-force_load,liboctave/external/ranlib/.libs/libranlib.a
-Wl,-force_load,liboctave/external/.libs/libexternal.a
-Wl,-force_load,liboctave/numeric/.libs/libnumeric.a
-Wl,-force_load,liboctave/operators/.libs/liboperators.a
-Wl,-force_load,liboctave/system/.libs/libsystem.a
-Wl,-force_load,liboctave/util/.libs/libutil.a
-Wl,-force_load,liboctave/wrappers/.libs/libwrappers.a
-Wl,-force_load,libgnu/.libs/libgnu.a  -L/opt/local/lib
-L/Users/davidlaxer/SuiteSparse/lib/ -L/opt/local/libexec/qt5/lib -lcurl
-lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse
-lsuitesparseconfig -lspqr -larpack -lqrupdate -lfftw3_threads -lfftw3
-lfftw3f_threads -lfftw3f -lopenblas -lreadline -lncurses -lpcre -ldl
-L/opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.2.0
-L/opt/local/lib/gcc10/gcc/x86_64-apple-darwin19/10.2.0/../../.. -lgfortran
-lquadmath -liconv -lm  -pthread -fopenmp -g -O2 -Wl,-framework
-Wl,CoreFoundation   -pthread -fopenmp -install_name 
/usr/local/lib/octave/7.0.0/liboctave.8.dylib -compatibility_version 9
-current_version 9.0 -Wl,-single_module
Undefined symbols for architecture x86_64:
 
"__Z13SuiteSparseQRISt7complexIdEElidlP21cholmod_sparse_structPS3_PPlS4_S6_PP20cholmod_dense_structP21cholmod_common_struct",
referenced from:
     
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_repC1ERKS2_i in
libnumeric.a(libnumeric_la-sparse-qr.o)
 
"__Z19SuiteSparseQR_qmultISt7complexIdEEP20cholmod_dense_structiP21cholmod_sparse_structS3_PlS3_P21cholmod_common_struct",
referenced from:
     
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1CERK13ComplexMatrixb
in libnumeric.a(libnumeric_la-sparse-qr.o)
      __ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1QEb in
libnumeric.a(libnumeric_la-sparse-qr.o)
 
"__Z22SuiteSparseQR_min2normISt7complexIdEEP20cholmod_dense_structidP21cholmod_sparse_structS3_P21cholmod_common_struct",
referenced from:
     
__ZN6octave4math9sparse_qrI12SparseMatrixE14min2norm_solveI6MArrayISt7complexIdEE13ComplexMatrixEET0_RKS2_RKT_Rxi
in libnumeric.a(libnumeric_la-sparse-qr.o)
     
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE14min2norm_solveI6MArrayISt7complexIdEE13ComplexMatrixEET0_RKS2_RKT_Rxi
in libnumeric.a(libnumeric_la-sparse-qr.o)
     
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE14min2norm_solveI6MArrayIdE13ComplexMatrixEET0_RKS2_RKT_Rxi
in libnumeric.a(libnumeric_la-sparse-qr.o)
 
"__Z22SuiteSparseQR_min2normISt7complexIdEEP21cholmod_sparse_structidS3_S3_P21cholmod_common_struct",
referenced from:
     
__ZN6octave4math9sparse_qrI12SparseMatrixE14min2norm_solveI19SparseComplexMatrixS5_EET0_RKS2_RKT_Rxi
in libnumeric.a(libnumeric_la-sparse-qr.o)
     
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE14min2norm_solveIS2_S2_EET0_RKS2_RKT_Rxi
in libnumeric.a(libnumeric_la-sparse-qr.o)
     
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE14min2norm_solveI12SparseMatrixS2_EET0_RKS2_RKT_Rxi
in libnumeric.a(libnumeric_la-sparse-qr.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [liboctave/liboctave.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

$ nm -n ./liboctave/numeric/.libs/libnumeric.a | grep
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1QEb
00000000000032f0 T
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1QEb
000000000000a500 s
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1QEb.cold

$ nm -n liboctave/numeric/.libs/libnumeric.a | grep
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1CERK13ComplexMatrixb
0000000000003130 T
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1CERK13ComplexMatrixb
000000000000a4e4 s
__ZN6octave4math9sparse_qrI19SparseComplexMatrixE13sparse_qr_rep1CERK13ComplexMatrixb.cold






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 29 Jan 2021 05:04:07 PM UTC  Name: libnumeric.la  Size: 961B   By:
davidlaxer

<http://savannah.gnu.org/bugs/download.php?file_id=50805>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59968>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]