#35851 closed defect (fixed)
DSDP: Undefined symbols: _ATL_cGetNB _ATL_dGetNB _ATL_sGetNB _ATL_zGetNB __gfortran_compare_string __gfortran_concat_string
Reported by: | yotam@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | garydoranjr@…, miranda.henrique@…, proteinyang@…, jjstickel (Jonathan Stickel), jwhowse4, leonardo.martins@…, spencerdavis2000@…, annleeh83@…, jypelait@…, ryandesign (Ryan Carsten Schmidt) | |
Port: | DSDP |
Description
DSDP is a dependency of py27-cvxopt, which I am trying to install.
It failed during build with a bunch of linker errors (regarding ATLAS and gfortran) inside liblapack.a (see attached "DSDP main.log 1.txt"). (The error log also has a line 'could not read "/opt/local/lib/libtatlas.dylib": no such file or directory' but it definitely exists.)
Trying again to install DSDP complains sometimes that 'couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory' (see attached "DSDP main.log 2.txt") --- that file does *not* exist on my fresh Mountain Lion 10.8.1 machine.
Attachments (4)
Change History (21)
Changed 12 years ago by yotam@…
Attachment: | DSDP main.log 1.txt added |
---|
Changed 12 years ago by yotam@…
Attachment: | DSDP main.log 2.txt added |
---|
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to mnick@… |
---|---|
Port: | DSDP added |
Summary: | DSDP fails during build → DSDP: Undefined symbols: _ATL_cGetNB _ATL_dGetNB _ATL_sGetNB _ATL_zGetNB __gfortran_compare_string __gfortran_concat_string |
comment:2 Changed 12 years ago by yotam@…
I tried building DSDP with a different compiler, as per the wiki instructions:
Xcode 4.2 and later
If a port foo fails to build and you're using Xcode 4.2 or later, the default compiler is clang; try compiling with llvm-gcc-4.2 instead:
sudo port clean foo sudo port install foo configure.compiler=llvm-gcc-4.2
If that fails, try installing the apple-gcc42 port and compiling with that:
sudo port clean foo sudo port install apple-gcc42 sudo port install foo configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2
<<<
Both alternate compilers (llvm-gcc-4.2 and apple-gcc42) produced the exact same linker errors.
comment:5 Changed 12 years ago by proteinyang@…
I got the same problem:
:info:build /usr/bin/llvm-gcc-4.2 -O3 -arch x86_64 -o maxcut maxcut.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_DSDP/DSDP/work/DSDP5.8/lib/libdsdp.a -llapack -lblas -lm :info:build Undefined symbols for architecture x86_64: :info:build "_ATL_cGetNB", referenced from:
I tried different compiler, e.g. llvm-gcc-4.2 and apple-gcc-4.2, but not help...
comment:7 Changed 12 years ago by fred.jendrzejewski@…
Hi,
I tried everything proposed in the bug reports, but I were not able to solve it. Any other ideas?
Replying to yotam@…:
DSDP is a dependency of py27-cvxopt, which I am trying to install.
It failed during build with a bunch of linker errors (regarding ATLAS and gfortran) inside liblapack.a (see attached "DSDP main.log 1.txt"). (The error log also has a line 'could not read "/opt/local/lib/libtatlas.dylib": no such file or directory' but it definitely exists.)
Trying again to install DSDP complains sometimes that 'couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory' (see attached "DSDP main.log 2.txt") --- that file does *not* exist on my fresh Mountain Lion 10.8.1 machine.
comment:8 Changed 12 years ago by yotam@…
A solution to get py27-cvxopt installed is to use the -dsdp variant.
comment:10 Changed 12 years ago by jjstickel (Jonathan Stickel)
comment:11 Changed 11 years ago by mf2k (Frank Schima)
Owner: | changed from mnick@… to macports-tickets@… |
---|
mnick has retired.
comment:12 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jwhowse4@… added |
---|
Duplicate #42016 includes a patch.
comment:13 follow-up: 15 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | leonardo.martins@… added |
---|
#39152 may be a duplicate, and includes a patch.
comment:14 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | spencerdavis2000@… annleeh83@… jypelait@… added |
---|
Has duplicate #38172.
comment:15 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Replying to ryandesign@…:
#39152 may be a duplicate, and includes a patch.
The patch fixes the problem. Committed in r115520.
comment:16 Changed 10 years ago by accounts@…
I still received a linker error regarding atlas with macports version: 2.3.3 It seems the DSDP dependency on atlas hasn't been added to the port.
I worked around this by installing "atlas" explicitly.
$ sudo port install atlas
Changed 9 years ago by tiagofrepereira2012 (Tiago Freitas Pereira)
Attachment: | main_tiago.log added |
---|
comment:17 Changed 9 years ago by tiagofrepereira2012 (Tiago Freitas Pereira)
Hi,
I detected the same issue. Follow attached my log files.
Thanks Tiago
Replying to yotam@…:
Yes, that seems to be the relevant error that needs to be addressed:
You might try if building DSDP with a different compiler would help.
I've occasionally seen MacPorts print inexplicable errors like this about files that are not related to the port currently being installed. Probably it's some stale information left in memory from a previous port install. We should fix it, but it's unimportant to error you're experiencing.
This message should be ignored. Another problem that is unrelated but that we should eventually fix if we can figure out how.