On Tue, 06 Dec 2011, Sebastian Reitenbach wrote: > It works for me on i386, and also it compiles fast. Whatever made the rc > candidates so slow, seems to be gone. > > I also found why llvm did not compiled for me with cmake (I reported that > before when you sent the rc2 I think): > In my /etc/mk.conf I had defined: > DEBUG=-g -O0 > > With this setting, build ends here: > > /usr/include/g++/bits/stl_vector.h:601: undefined reference to > `llvm::sys::MutexImpl::acquire()' > ../../lib/libLLVMSupport.a(Threading.cpp.o)(.gnu.linkonce.t._ZN4llvm3sys10SmartMutexILb0EE7acquireEv+0x19): > In function `llvm::sys::SmartMutex<false>::acquire()': > /home/ports/pobj/llvm-3.0/llvm-3.0.src/lib/Support/Threading.cpp:56: > undefined reference to `llvm::sys::MutexImpl::acquire()' > collect2: ld returned 1 exit status > > Commenting out this line, it builds as expected.
Try to add the chunk below to Makefile: .ifdef DEBUG CONFIGURE_ARGS += --disable-optimized --enable-debug-symbols .endif Ciao, David