<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi.</div><div class=""><br class=""></div><div class="">I’m trying to check if llvm + clang with MCJIT backend supports the new system.</div><div class="">The system information is following.</div><div class=""><br class=""></div><div class=""><div class="">========================================================</div><div class="">cpu      : FUJITSU SPARC64 XIfx<br class="">manufacture   : 4 (Fujitsu)<br class="">impl      : 12<br class="">mask      : 17<br class="">serial      : 0<br class="">fpu      : FUJITSU SPARC64 XIfx<br class="">pmu      : SPARC64XIfx<br class="">prom      : CPUFW-1.5.0<br class="">type      : s64fx<br class="">ncpus probed   : 34<br class="">ncpus active   : 34<br class="">L2$ size   : 12288 KB<br class=""><br class="">uname -m = s64fx<br class="">uname -r = 2.6.32<br class="">uname -s = Linux<br class="">uname -v = #2 SMP Wed Dec 2 15:57:26 JST 2015</div><div class="">========================================================</div></div><div class=""><br class=""></div><div class="">It started from installing ROOT software in the system</div><div class=""><a href="https://root.cern.ch/phpBB3/viewtopic.php?p=94086#p94086" class="">https://root.cern.ch/phpBB3/viewtopic.php?p=94086#p94086</a></div><div class=""><br class=""></div><div class="">I was told to compile a simple test code with llvm + clang compiled on the system.</div><div class=""><br class=""></div><div class=""><div class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">#include <vector></span><br style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px;" class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">extern "C" in printf(const char*,...);</span><br style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px;" class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">std::vector<int> v{12,13,14};</span><br style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px;" class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">int main(int, char*[]) {</span><br style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px;" class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">  printf("vector size: %d\n", (int)v.size());</span><br style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px;" class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">  return 0;</span><br style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px;" class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">}</span></div><br class=""></div><div class="">with the following command</div><div class=""><br class=""></div><div class=""><div class=""><span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; font-size: 12px; background-color: rgb(255, 255, 255);" class="">clang++ -x c++ -std=c++11 -Xclang -emit-llvm - -o jittest.cxx | lli -jit-kind=orc-mcjit -</span></div><br class=""></div><div class="">and then I got the following.</div><div class=""><div class="">For your information, because I config.guess doesn’t recognize the system, I changed the GetHostTarget.cmake a little bit</div><div class="">to recognize the system as sparc64-unknown-linux-gnu.</div></div><div class=""><br class=""></div><div class="">========================================================</div>#0 0x00000000035d929c llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/genie/clangTest/llvm/lib/Support/Unix/Signals.inc:322:0<br class="">#1 0x00000000035d96a8 PrintStackTraceSignalHandler(void*) /home/genie/clangTest/llvm/lib/Support/Unix/Signals.inc:379:0<br class="">#2 0x00000000035d758c llvm::sys::RunSignalHandlers() /home/genie/clangTest/llvm/lib/Support/Signals.cpp:45:0<br class="">#3 0x00000000035d8b6c SignalHandler(int) /home/genie/clangTest/llvm/lib/Support/Unix/Signals.inc:200:0<br class="">#4 0xffffffff003c1d88 __libc_sigaction (/lib64/libpthread.so.0+0x11d88)<br class="">#5 0x000000000554e1b0 clang::Sema::Sema(clang::Preprocessor&, clang::ASTContext&, clang::ASTConsumer&, clang::TranslationUnitKind, clang::CodeCompleteConsumer*) /home/genie/clangTest/llvm/tools/clang/lib/Sema/Sema.cpp:126:0<br class="">#6 0x0000000003ed5710 clang::CompilerInstance::createSema(clang::TranslationUnitKind, clang::CodeCompleteConsumer*) /home/genie/clangTest/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:537:0<br class="">#7 0x0000000003f36364 clang::ASTFrontendAction::ExecuteAction() /home/genie/clangTest/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:554:0<br class="">#8 0x00000000044637a4 clang::CodeGenAction::ExecuteAction() /home/genie/clangTest/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:844:0<br class="">#9 0x0000000003f35c18 clang::FrontendAction::Execute() /home/genie/clangTest/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:457:0<br class="">#10 0x0000000003ed8268 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/genie/clangTest/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:874:0<br class="">#11 0x0000000004095ee0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/genie/clangTest/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:241:0<br class="">#12 0x00000000013b9660 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/genie/clangTest/llvm/tools/clang/tools/driver/cc1_main.cpp:116:0<br class="">#13 0x00000000013ac8b4 ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef) /home/genie/clangTest/llvm/tools/clang/tools/driver/driver.cpp:301:0<br class="">#14 0x00000000013ad574 main /home/genie/clangTest/llvm/tools/clang/tools/driver/driver.cpp:381:0<br class="">#15 0xffffffff00b7d9d8 __libc_start_main (/lib64/libc.so.6+0x2d9d8)<br class="">#16 0x00000000013a9a74 _start (/gwfefs/home/genie/clangTest/install/bin/clang-3.9+0x13a9a74)<br class="">Stack dump:<br class="">0.   Program arguments: /gwfefs/home/genie/clangTest/install/bin/clang-3.9 -cc1 -triple sparc64-unknown-linux-gnu -S -disable-free -main-file-name - -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -dwarf-column-info -debugger-tuning=gdb -resource-dir /gwfefs/home/genie/clangTest/install/bin/../lib/clang/3.9.0 -I/data/Q16264/common/gw/local/include -c-isystem /data/Q16264/common/gw/local/include -cxx-isystem /data/Q16264/common/gw/local/include -internal-isystem /usr/local/include -internal-isystem /gwfefs/home/genie/clangTest/install/bin/../lib/clang/3.9.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /home/genie/clangTest -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -emit-llvm -o /tmp/--edd9e6.s -x c++ - <br class="">clang-3.9: error: unable to execute command: Bus error<br class="">clang-3.9: error: clang frontend command failed due to signal (use -v to see invocation)<br class="">clang version 3.9.0 (trunk 268212)<br class="">Target: sparc64-unknown-linux-gnu<br class="">Thread model: posix<br class="">InstalledDir: /home/genie/clangTest/install/bin<br class="">clang-3.9: note: diagnostic msg: PLEASE submit a bug report to <a href="http://llvm.org/bugs/" class="">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and associated run script.<br class="">clang-3.9: note: diagnostic msg: Error generating preprocessed source(s) - ignoring input from stdin.<br class="">clang-3.9: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.<br class="">'main' function not found in module.<div class="">========================================================</div><div class=""><br class=""></div><div class="">Any idea on this?</div><div class=""><br class=""></div><div class="">Thank you in advance.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Genie</div></body></html>