Hi, I'm trying to compile the latest clang/llvm SVN versions and I get this error on multiple systems : (Compiling with gcc): llvm[4]: Compiling cc1_main.cpp for Debug+Asserts build llvm[4]: Compiling cc1as_main.cpp for Debug+Asserts build llvm[4]: Compiling driver.cpp for Debug+Asserts build llvm[4]: Linking Debug+Asserts executable clang /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): In function `clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)': /home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:8011: undefined reference to `clang::Sema::checkPseudoObjectAssignment(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)' /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): In function `clang::Sema::BuildUnaryOp(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*)': /home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:8200: undefined reference to `clang::Sema::checkPseudoObjectIncDec(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*)' /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): In function `clang::Sema::CheckPlaceholderExpr(clang::Expr*)': /home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:10098: undefined reference to `clang::Sema::checkPseudoObjectRValue(clang::Expr*)' collect2: ld returned 1 exit status make[4]: *** [/home/hades/data/Tesi/llvm-build/Debug+Asserts/bin/clang] Errore 1 make[4]: Leaving directory `/home/hades/data/Tesi/llvm-build/tools/clang/tools/driver' (Compiling with llvm[4]: Compiling driver.cpp for Debug+Asserts build llvm[4]: Linking Debug+Asserts executable clang /usr/bin/ld.gold: /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): in function clang::Sema::CheckPlaceholderExpr(clang::Expr*):/home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:10098: error: undefined reference to 'clang::Sema::checkPseudoObjectRValue(clang::Expr*)' /usr/bin/ld.gold: /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): in function clang::Sema::BuildUnaryOp(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*):/home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:8200: error: undefined reference to 'clang::Sema::checkPseudoObjectIncDec(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*)' /usr/bin/ld.gold: /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): in function clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*):/home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:8011: error: undefined reference to 'clang::Sema::checkPseudoObjectAssignment(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[4]: *** [/home/hades/data/Tesi/llvm-build/Debug+Asserts/bin/clang] Errore 1 make[4]: Leaving directory `/home/hades/data/Tesi/llvm-build/tools/clang/tools/driver' So far I tried an ArchLinux system and a MacOSX system. Both exhibit the same problem with both gcc and clang for compilation. To compile I use these configure flags: configure --enable-targets=x86_64 --prefix=${GIT_PREFIX} --with-gmp=${GIT_PREFIX} --with-isl=${GIT_PREFIX} --with-cloog=${GIT_PREFIX} what's up? Marcello
On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote:> Hi, I'm trying to compile the latest clang/llvm SVN versions and I get > this error on multiple systems :Linking, not compiling, but still. I am getting a similar error when building this morning.> Undefined symbols for architecture x86_64: > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced from: > clang::Sema::CheckPlaceholderExpr(clang::Expr*) in libclangSema.a(SemaExpr.o) > "clang::Sema::checkPseudoObjectIncDec(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*)", referenced from: > clang::Sema::BuildUnaryOp(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*) in libclangSema.a(SemaExpr.o) > "clang::Sema::checkPseudoObjectAssignment(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)", referenced from: > clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) in libclangSema.a(SemaExpr.o) > ld: symbol(s) not found for architecture x86_64 >-- Marshall Marshall Clow Idio Software <mailto:mclow.lists at gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki
On Tue, Oct 25, 2011 at 06:44:06AM -0700, Marshall Clow wrote:> > On Oct 25, 2011, at 6:09 AM, Marcello Maggioni wrote: > > > Hi, I'm trying to compile the latest clang/llvm SVN versions and I get > > this error on multiple systems : > > > Linking, not compiling, but still. > > I am getting a similar error when building this morning. > > > Undefined symbols for architecture x86_64: > > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced from: > > clang::Sema::CheckPlaceholderExpr(clang::Expr*) in libclangSema.a(SemaExpr.o) > > "clang::Sema::checkPseudoObjectIncDec(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*)", referenced from: > > clang::Sema::BuildUnaryOp(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*) in libclangSema.a(SemaExpr.o) > > "clang::Sema::checkPseudoObjectAssignment(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)", referenced from: > > clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) in libclangSema.a(SemaExpr.o) > > ld: symbol(s) not found for architecture x86_64 > > > > > -- Marshall > > Marshall Clow Idio Software <mailto:mclow.lists at gmail.com>The cmake build of llvm/clang svn is showing a different error on x86_64-apple-darwin11... cmake $CMAKE_OPTIONS -DCMAKE_INSTALL_PREFIX=/sw/opt/llvm-3.1 -DLLVM_ENABLE_ASSERTIONS=OFF -DCMAKE_BUILD_TYPE=Release .. -- The C compiler identification is Clang -- The CXX compiler identification is Clang -- Check for working C compiler: /sw/var/lib/fink/path-prefix-clang/gcc -- Check for working C compiler: /sw/var/lib/fink/path-prefix-clang/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /sw/var/lib/fink/path-prefix-clang/c++ -- Check for working CXX compiler: /sw/var/lib/fink/path-prefix-clang/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for argz.h -- Looking for argz.h - not found -- Looking for assert.h -- Looking for assert.h - found -- Looking for ctype.h -- Looking for ctype.h - found -- Looking for dirent.h -- Looking for dirent.h - found -- Looking for dl.h -- Looking for dl.h - not found -- Looking for dld.h -- Looking for dld.h - not found -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for errno.h -- Looking for errno.h - found -- Looking for execinfo.h -- Looking for execinfo.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for limits.h -- Looking for limits.h - found -- Looking for link.h -- Looking for link.h - not found -- Looking for malloc.h -- Looking for malloc.h - not found -- Looking for malloc/malloc.h -- Looking for malloc/malloc.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for ndir.h -- Looking for ndir.h - not found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for setjmp.h -- Looking for setjmp.h - found -- Looking for signal.h -- Looking for signal.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stdio.h -- Looking for stdio.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for sys/dir.h -- Looking for sys/dir.h - found -- Looking for sys/dl.h -- Looking for sys/dl.h - not found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/ndir.h -- Looking for sys/ndir.h - not found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/uio.h -- Looking for sys/uio.h - found -- Looking for sys/wait.h -- Looking for sys/wait.h - found -- Looking for termios.h -- Looking for termios.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for utime.h -- Looking for utime.h - found -- Looking for valgrind/valgrind.h -- Looking for valgrind/valgrind.h - not found -- Looking for windows.h -- Looking for windows.h - not found -- Looking for fenv.h -- Looking for fenv.h - found -- Looking for mach/mach.h -- Looking for mach/mach.h - found -- Looking for mach-o/dyld.h -- Looking for mach-o/dyld.h - found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Looking for pthread_getspecific in pthread -- Looking for pthread_getspecific in pthread - found -- Looking for pthread_rwlock_init in pthread -- Looking for pthread_rwlock_init in pthread - found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for getpagesize -- Looking for getpagesize - found -- Looking for getrusage -- Looking for getrusage - found -- Looking for setrlimit -- Looking for setrlimit - found -- Looking for isatty -- Looking for isatty - found -- Looking for index -- Looking for index - found -- Looking for isinf -- Looking for isinf - not found. -- Looking for isinf -- Looking for isinf - found -- Looking for finite -- Looking for finite - not found. -- Looking for isnan -- Looking for isnan - not found. -- Looking for isnan -- Looking for isnan - found -- Looking for ceilf -- Looking for ceilf - found -- Looking for floorf -- Looking for floorf - found -- Looking for fmodf -- Looking for fmodf - found -- Looking for longjmp -- Looking for longjmp - found -- Looking for setjmp -- Looking for setjmp - found -- Looking for siglongjmp -- Looking for siglongjmp - found -- Looking for sigsetjmp -- Looking for sigsetjmp - found -- Looking for writev -- Looking for writev - found -- Looking for nearbyintf -- Looking for nearbyintf - found -- Looking for mallinfo -- Looking for mallinfo - not found. -- Looking for malloc_zone_statistics -- Looking for malloc_zone_statistics - found -- Looking for mkdtemp -- Looking for mkdtemp - found -- Looking for mkstemp -- Looking for mkstemp - found -- Looking for mktemp -- Looking for mktemp - found -- Looking for closedir -- Looking for closedir - found -- Looking for opendir -- Looking for opendir - found -- Looking for readdir -- Looking for readdir - found -- Looking for getcwd -- Looking for getcwd - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for getrlimit -- Looking for getrlimit - found -- Looking for rindex -- Looking for rindex - found -- Looking for strchr -- Looking for strchr - found -- Looking for strcmp -- Looking for strcmp - found -- Looking for strdup -- Looking for strdup - found -- Looking for strrchr -- Looking for strrchr - found -- Looking for pthread_mutex_lock -- Looking for pthread_mutex_lock - found -- Looking for sbrk -- Looking for sbrk - found -- Looking for srand48 -- Looking for srand48 - found -- Looking for lrand48 -- Looking for lrand48 - found -- Looking for drand48 -- Looking for drand48 - found -- Looking for strtoll -- Looking for strtoll - found -- Looking for strtoq -- Looking for strtoq - found -- Looking for strerror -- Looking for strerror - found -- Looking for strerror_r -- Looking for strerror_r - found -- Looking for strerror_s -- Looking for strerror_s - not found. -- Looking for memcpy -- Looking for memcpy - found -- Looking for memmove -- Looking for memmove - found -- Looking for setenv -- Looking for setenv - found -- Looking for dlerror -- Looking for dlerror - found -- Looking for dlopen -- Looking for dlopen - found -- Looking for __GLIBC__ -- Looking for __GLIBC__ - not found. -- Performing Test HAVE_INT64_T -- Performing Test HAVE_INT64_T - Success -- Performing Test HAVE_UINT64_T -- Performing Test HAVE_UINT64_T - Success -- Performing Test HAVE_U_INT64_T -- Performing Test HAVE_U_INT64_T - Success -- Performing Test HAVE_ERROR_T -- Performing Test HAVE_ERROR_T - Failed -- Performing Test LLVM_HAS_ATOMICS -- Performing Test LLVM_HAS_ATOMICS - Success -- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG -- Performing Test SUPPORTS_NO_VARIADIC_MACROS_FLAG - Success -- Target triple: x86_64-apple-darwin11.2.0 -- Native target architecture is X86 -- Threads enabled. -- Performing Test SUPPORTS_FPIC_FLAG -- Performing Test SUPPORTS_FPIC_FLAG - Success -- Building with -fPIC -- Targeting X86 -- Found Perl: /usr/bin/perl -- Check if the system is big endian -- Searching 16 bit integer -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Clang version: 3.0 -- Found Subversion: /usr/bin/svn (found version "1.6.16") -- Found PythonInterp: /sw/bin/python2.7 -- Configuring done CMake Error at tools/clang/CMakeLists.txt:186 (add_library): Cannot find source file: /sw/src/fink.build/llvm31-3.1-0/llvm-3.1/tools/clang/lib/Sema/SemaPseudoObject.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Call Stack (most recent call first): tools/clang/lib/Sema/CMakeLists.txt:3 (add_clang_library)> > A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). > -- Yu Suzuki > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev