Opened 4 years ago
Closed 4 years ago
#60470 closed defect (fixed)
clang-devel @20200505-6d6d48ad+analyzer+assertions+libstdcxx: fails to build
Reported by: | EdHarry | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | jeremyhu (Jeremy Huddleston Sequoia), kencu (Ken) | |
Port: | clang-devel |
Description
Clang-devel fails to build on MacOS 10.13, getting "Undefined symbols for architecture x86_64" errors:
Undefined symbols for architecture x86_64: "__ZTIDu", referenced from: -exported_symbol[s_list] command line option "__ZTIPDu", referenced from: -exported_symbol[s_list] command line option "__ZTIPKDu", referenced from: -exported_symbol[s_list] command line option "__ZTSDu", referenced from: -exported_symbol[s_list] command line option "__ZTSPDu", referenced from: -exported_symbol[s_list] command line option "__ZTSPKDu", referenced from: -exported_symbol[s_list] command line option ld: symbol(s) not found for architecture x86_64
Attachments (1)
Change History (8)
Changed 4 years ago by EdHarry
Attachment: | main.log.zip added |
---|
comment:2 Changed 4 years ago by kencu (Ken)
if you know how to build it with clang-9.0, please try that and report back.
if you need a current toolchain, clang-10 is available on macports now and is the latest.
comment:3 Changed 4 years ago by EdHarry
I have both the clang-9.0 and clang-10 ports installed (both work fine)
comment:4 Changed 4 years ago by kencu (Ken)
BTW, as it sounds like you're pushing the window a bit, to force a port to build with a certain compiler, you do this for example:
sudo port -v install clang-devel configure.compiler=macports-clang-9.0
some clang versions have broken the system due to naming issues that have yet to be fixed until a new base is released. To make clang-10 or clang-devel build something, you need to "select" it first at present:
sudo port -v select --list clang sudo port -v select clang whichever-clang-you-want
and then to use it for the build:
sudo port -v install MYPORT configure.compiler=macports-clang
comment:5 Changed 4 years ago by EdHarry
clang-devel successfully builds using mp-clang-10 as the compiler
sudo port -v select clang mp-clang-10 port -v install clang-devel configure.compiler=macports-clang
I haven't tested mp-clang-9.0
comment:6 Changed 4 years ago by kencu (Ken)
fantastic. I'll bump the build xcode clang cutoff to > 903
appreciate the feedback.
comment:7 Changed 4 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | new → closed |
main log