Opened 11 years ago

Closed 11 years ago

#39711 closed defect (worksforme)

llvm-3.3 @3.3_0+assertions: build failure, "Undefined symbols for architecture x86_64"

Reported by: eric.lebigot@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: llvm-3.3

Description

The compilation of llvm-3.3 fails with "Undefined symbols for architecture x86_64" (after a clean install). I attach the log file.

Attachments (2)

main.log (3.3 MB) - added by eric.lebigot@… 11 years ago.
main.2.log (3.3 MB) - added by eric.lebigot@… 11 years ago.
Log file after deactivate and clean

Change History (7)

Changed 11 years ago by eric.lebigot@…

Attachment: main.log added

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

Owner: changed from macports-tickets@… to jeremyhu@…
Port: llvm-3.3 added

comment:2 Changed 11 years ago by larryv (Lawrence Velázquez)

Summary: llvm-3.3: Undefined symbols for architecture x86_64llvm-3.3 @3.3_0+assertions: build failure, "Undefined symbols for architecture x86_64"

comment:3 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

: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
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

Try:

sudo port -v -f deactivate llvm-3.3
sudo port -v clean llvm-3.3
sudo port -v -s install llvm-3.3

Changed 11 years ago by eric.lebigot@…

Attachment: main.2.log added

Log file after deactivate and clean

comment:4 Changed 11 years ago by eric.lebigot@…

Thank you for the suggestion. Unfortunately the install still fails. I attached the new log file (at least one of the errors is the same as before [Undefined symbols…]).

Any idea would be much appreciated!

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

This builds fine on all my machines and on the buildbots.

You're going to need to do some debugging yourself to figure out why that destructor is missing.

/usr/bin/clang++ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/unittests/Analysis  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/utils/unittest/googletest/include -Wno-missing-field-initializers -Wno-variadic-macros -DGTEST_HAS_RTTI=0 -DGTEST_USE_OWN_TR1_TUPLE -O3  -g -fvisibility-inlines-hidden -fno-exceptions -fno-common -Woverloaded-virtual -Wcast-qual -pipe -O2 -arch x86_64 -pipe -O2 -arch x86_64 -O3 -g -Wl,-rpath -Wl,@executable_path/../lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib -Wl,-rpath -Wl,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/Release+Debug+Asserts/lib -arch x86_64 -arch x86_64 -m64  -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings   -Wno-uninitialized  -Wno-missing-field-initializers  -o Release+Debug+Asserts/AnalysisTests  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/unittests/Analysis/Release+Debug+Asserts/ScalarEvolutionTest.o  \
:info:build 	-lgtest -lgtest_main -lLLVM-3.3   -lz -lpthread -lffi -lm 
: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
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [Release+Debug+Asserts/AnalysisTests] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.3/llvm-3.3/work/llvm-3.3.src/unittests/Analysis'

Please reopen if you have additional information. If you just need to get past this, I suggest you just use the binary packages.

Note: See TracTickets for help on using tickets.