Opened 11 years ago

Last modified 11 years ago

#41641 closed defect

llvm-3.4: build fails in Release+Debug+Asserts/AnalysisTests: ld: symbol(s) not found for architecture x86_64 — at Version 1

Reported by: h.rayflood@… Owned by: jeremyhu@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: llvm-3.4

Description (last modified by ryandesign (Ryan Carsten Schmidt))

rfmoz-mac7:~ h$ uname -a
Darwin rfmoz-mac7.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
rfmoz-mac7:~ h$ xcodebuild -version
Xcode 4.1
Build version 4B110
rfmoz-mac7:bin h$ sudo ./port outdated
The following installed ports are outdated:
clang-3.4                      3.4-r193358_0 < 3.4-r195772_0
dragonegg-3.4-gcc-4.6          3.4-r193358_0 < 3.4-r195772_0
llvm-3.4                       3.4-r193358_0 < 3.4-r195772_0
rfmoz-mac7:bin h$ sudo ./port upgrade outdated configure.compiler=clang
--->  Computing dependencies for llvm-3.4
--->  Fetching distfiles for llvm-3.4
--->  Verifying checksums for llvm-3.4
--->  Extracting llvm-3.4
--->  Applying patches to llvm-3.4
--->  Configuring llvm-3.4
--->  Building llvm-3.4
Error: org.macports.build for port llvm-3.4 returned: command execution failed
Please see the log file for port llvm-3.4 for details:
    /opt/gcc-mp/var/macports/logs/_opt_gcc-mp_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.4/llvm-3.4/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Change History (2)

Changed 11 years ago by h.rayflood@…

Attachment: main.log.zip added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: llvm-3.4 added
Summary: clang-3.4: build fails in Release+Debug+Asserts/AnalysisTests: ld: symbol(s) not found for architecture x86_64llvm-3.4: build fails in Release+Debug+Asserts/AnalysisTests: ld: symbol(s) not found for architecture x86_64

The error in the log is:

:info:build Undefined symbols for architecture x86_64:
:info:build   "llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::~LoopBase()", referenced from:
:info:build       llvm::(anonymous namespace)::ScalarEvolutionsTest_SCEVMultiplyAddRecs_Test::TestBody() in ScalarEvolutionTest.o
:info:build ld: symbol(s) not found for architecture x86_64

But why are you specifying configure.compiler=clang? You should let MacPorts pick the compiler it wants to. In this case (since you have Xcode 4.1) that would be llvm-gcc-4.2. You should really consider upgrading to Xcode 4.6.3.

Note: See TracTickets for help on using tickets.