Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56947 closed defect (fixed)

jack build fails on OSX 10.8.5 at link stage due to unspecified stdlib during link

Reported by: letaage Owned by: Ken <21211439+kencu@…>
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: jack

Description

I am having trouble installing jack on OSX 10.8.5, it is failing at the linking stage with the following error:

info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

I don't know enough about software to fix this myself :(

Log file attached

Attachments (1)

main.log (222.3 KB) - added by letaage 6 years ago.
jack build log

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by letaage

Attachment: main.log added

jack build log

comment:1 Changed 6 years ago by kencu (Ken)

Keywords: jack removed
Summary: jack build fails on OSX 10.8.5jack build fails on OSX 10.8.5 at link stage due to unspecified stdlib during link

comment:2 Changed 6 years ago by kencu (Ken)

The essential issue is that the software builds against the libc++ headers on your system (I presume you have your system set up to use libc++), but during the link stage it is trying to link against /usr/lib/libstdc++.dylib, which it does by default if none is specified on the link line. It doesn't find the symbols it is looking to link against in that library, so it errors out.

:info:configure C++ compiler flags                          : ['-pipe', '-Os', '-stdlib=libc++', '-arch', 'x86_64', '-Wall', '-I/opt/local/include']
:info:configure Linker flags                                : ['-L/opt/local/lib', '-Wl,-headerpad_max_install_names', '-arch', 'x86_64'] 

The linker invocation should pull in the CXX flags, so it should take care of this without our intervention, but it doesn't.

I'll take a look at this and see where that should be added in the build files. Alternatively, we sometimes just add it ourselves to the link flags.

comment:3 Changed 6 years ago by Ken <21211439+kencu@…>

Owner: set to Ken <21211439+kencu@…>
Resolution: fixed
Status: newclosed

In ea4300d8cd5b7a542f3144be0bea0220b1c80250/macports-ports (master):

jack: add stdlib to link flags

fixes build on systems configured to non-default stdlib settings
add stdlib to link flags if buidling with clang
closes: #56947
(also fix a trivial typo in the config.args)

comment:4 Changed 6 years ago by kencu (Ken)

If you wait a bit for this to propogate through, then selfupdate, your build should go smoothly now.

Note: See TracTickets for help on using tickets.