[LLVMdev] [LLVMDev] Clang stopped compiling?

Marcello Maggioni hayarms at gmail.com
Tue Oct 25 06:09:14 PDT 2011


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



More information about the llvm-dev mailing list