[MacPorts] #15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found --------------------------------+------------------------------------------- Reporter: alakazam@melix.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | --------------------------------+------------------------------------------- The {{{octave-ann}}} port does not build correctly, failing with a {{{ld: symbol(s) not found}}} error. I am attaching the output showing the error. -- Ticket URL: <http://trac.macports.org/ticket/15428> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by simon@macports.org): * cc: simon@macports.org (added) * owner: macports-tickets@lists.macosforge.org => andrea.damore@macports.org Comment: Assigned to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): As requested by the maintainer, I am attaching the _full_ debug output, instead of simply the build phase output. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by raimue@macports.org): * cc: raimue@macports.org (added) Comment: anddam asked me for assistance to this on IRC today. You didn't add a full build output here, please run `port clean octave- ann` and then save the output of `port -d install octave-ann 2>&1 > full- output.log`. Just out of interest, do you have the port gcc40 installed? -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): I do not have the {{{gcc40}}} port installed : {{{ % port installed gcc40 None of the specified ports are installed. }}} I have replaced the {{{full-output.log}}} with the output obtained _after_ {{{port clean --all octave-ann}}}, per your request. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): I had (and I'm still having) connection problem, that's why I didn't replied earlier. From your first output it is obvious that the compiler is not able to find a function from libstdc++ , what's not obvious is the reason why. I asked for a complete output in the hope that some environment variable was affecting the build, we needed a clean in order to see configure phase environment that is skipped unless one doesn't perform a clean or turn back to patch phase, not just build. That said I'm not sure how to handle this. Your failing build line, no. 251 in full-output.log, is exactly the same I get on my computer apart "powerpc" instead of "i386" in lib search paths. Do you happen to have some unusual env variable? Try appending -lstdc++ to cxxflags, it shouldn't harm and you can't build anyway at the moment. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): Do you mean to my shell environment {{{$CXXFLAGS}}} ? I was under the impression that those variables were reset to their default values in the context of the port command ? I am not sure I understand where you wish me to append {{{-lstdc++}}} to {{{cxxflags}}}, I guess you mean in the Portfile ? (but would like to make sure :) ). -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): Yes, I meant in the portfile. To brief it and assuming vi is your default editor: {{{ port edit octave-ann }}} eventually prepended by "sudo",[[BR]] move to a blank line,[[BR]] type 'i' without the quotes[[BR]] write {{{ configure.cxxflags-append " -lstdc++ " }}} to exit insert mode type ESC,[[BR]] to save and leave type ':wq' without quotes and ENTER -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): Humh, that was *very* didactic ;) Sorry to have made you detail things this much ; I didn't need that much detail :D Anyway, adding {{{ configure.cxxflags-append " -lstdc++ " }}} to the portfile didn't change the errors I am encountering. I am not sure how to debug this problem, though. Is it possible to list all the files that are effectively searched for linking ? -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): Ok, it may be that things are compiling with gcc 4.2 due to the env bug in leopard-tcl... I'm currently checking out macports-source, and will see if the bug is still present with the latest trunk version. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): It would seem that macports-trunk indeed solves this problem ; {{{octave- ann}}} simply doesn't build correctly with gcc42. I am encountering a new problem when building {{{octave-ann}}} though : {{{ /usr/bin/g++-4.0 -c -I/opt/local/include -fPIC -I/opt/local/include/octave-3.0.1 -I/opt/local/include/octave-3.0.1/octave -I/opt/local/include -mieee-fp -O2 -I../include -DHAVE_OCTAVE_30 ann_wrap.cpp -o ann_wrap.o ann_wrap.cpp: In function 'octave_value_list _wrap_annDist(const octave_value_list&, int)': ann_wrap.cpp:2266: error: expected type-specifier before 'ANN_exception' ann_wrap.cpp:2266: error: expected `)' before '&' token ann_wrap.cpp:2266: error: expected `{' before '&' token ann_wrap.cpp:2266: error: 'e' was not declared in this scope ... [snip : lots of similar errors follow, will include a full debug log] ... }}} -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): Sorry for delay in replying. alakazam can you build octave-ann at all using gcc40 rather than 4.2 ? -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by alakazam@melix.net): I'm not sure what you mean by "at all", but I have just updated macports to the latest trunk, {{{gcc_select}}}ed {{{gcc40}}} (shouldn't change the compiler used by macports if I'm not mistaken), {{{port clean}}}ed {{{octave-ann}}}, and tried installing {{{octave-ann}}}, and I still get the same error log : {{{ Command output: ann_wrap.cpp:9051: error: '_wrap_ann_average_err_set' was not declared in this scope ... ann_wrap.cpp:9503: error: expected `}' at end of input }}} -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by andrea.damore@macports.org): I meant "in any way" as the previous message seemed to suggest that the package didn't build only with gcc42, anyway you made it clear with your following message. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15428: octave-ann 1.0 - Build failure - ld: symbol(s) not found ---------------------------------+------------------------------------------ Reporter: alakazam@melix.net | Owner: andrea.damore@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: | ---------------------------------+------------------------------------------ Changes (by andrea.damore@macports.org): * status: new => closed * resolution: => fixed Comment: I'm closing this as fixed, for the new problem please open a new ticket. -- Ticket URL: <http://trac.macports.org/ticket/15428#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts