clang/llvm stuff

  • building on SLC4:
    • had to undef SSE2 in one of the files clang

  • building root (5.22.00d):
    • make sure clang etc. are in the path
    • ran configure:
./configure --with-cc=clang --with-cxx=clang++ --with-ld=clang++
    • edited config/Makefile.config
      • added -D_GLIBCXX__PTHREADS to EXTRA_CFLAGS and EXTRA_CXXFLAGS (see also LLVM bug 5621, there is a patch attached)

got (on karmic):

clang++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -D_GLIBCXX__PTHREADS -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Icint/cint/inc -Icint/cint/src -Icint/cint/src/dict -pthread -I. -o cint/cint/src/ifunc.o -c cint/cint/src/ifunc.cxx

clang: Mangle.cpp:299: const clang::DeclContext* IgnoreLinkageSpecDecls(const clang::DeclContext*): Assertion `cast(DC)->getLanguage() == LinkageSpecDecl::lang_cxx && "Unexpected linkage decl!"' failed.
...
...
Stack dump:
0.	Program arguments: /home/holzner/clang/from-svn/llvm/Debug/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name ifunc.cxx -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /home/holzner/clang/from-svn/llvm/Debug/lib/clang/1.1 -D_GLIBCXX__PTHREADS -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -Iinclude -Icint/cint/inc -Icint/cint/src -Icint/cint/src/dict -I. -O2 -Wall -W -Woverloaded-virtual -fmessage-length 199 -pthread -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-2rVJEz.s -x c++ cint/cint/src/ifunc.cxx 
1.	 parser at end of file
2.	Per-file LLVM IR generation
3.	cint/cint/src/ifunc.cxx:7293:62: Generating code for declaration '::G__ifunc_refs'
4.	cint/cint/src/ifunc.cxx:7294:1: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see invocation)


-- AndreHolzner - 21-Feb-2010

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2010-02-21 - AndreHolzner
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback