Bus error with rootcling

Hi.

While I’m compiling on unsupported system, I got bus error
Is there anyone having any idea on this?

Thank you in advance!

Genie

/bin/sh: line 1:  2394 Bus error               ../../bin/rootcling -rootbuild -f G__TMVAGui.cxx -s /home/genie/build2/lib/libTMVAGui.so -rml libTMVAGui.so -rmf /home/genie/build2/lib/libTMVAGui.rootmap -writeEmptyRootPCM -I/home/genie/root-6.06.02 -I/home/genie/build2/include TMVA/annconvergencetest.h TMVA/deviations.h TMVA/mvaeffs.h TMVA/PlotFoams.h TMVA/TMVAGui.h TMVA/BDTControlPlots.h TMVA/correlationscatters.h TMVA/efficiencies.h TMVA/mvas.h TMVA/probas.h TMVA/BDT.h TMVA/correlationscattersMultiClass.h TMVA/likelihoodrefs.h TMVA/mvasMulticlass.h TMVA/regression_averagedevs.h TMVA/TMVAMultiClassGui.h TMVA/BDT_Reg.h TMVA/correlations.h TMVA/mvaweights.h TMVA/rulevisCorr.h TMVA/TMVARegGui.h TMVA/BoostControlPlots.h TMVA/correlationsMultiClass.h TMVA/network.h TMVA/rulevis.h TMVA/variables.h TMVA/CorrGui.h TMVA/paracoor.h TMVA/rulevisHists.h TMVA/variablesMultiClass.h TMVA/compareanapp.h TMVA/CorrGuiMultiClass.h TMVA/MovieMaker.h TMVA/tmvaglob.h /home/genie/root-6.06.02/tmva/tmvagui/inc/LinkDef.h
make[2]: *** [tmva/tmvagui/G__TMVAGui.cxx] Error 138
make[1]: *** [tmva/tmvagui/CMakeFiles/G__TMVAGui.dir/all] Error 2

System info for your information. ( Compiling on unsupported system )

cpu      : FUJITSU SPARC64 XIfx
manufacture   : 4 (Fujitsu)
impl      : 12
mask      : 17
serial      : 0
fpu      : FUJITSU SPARC64 XIfx
pmu      : SPARC64XIfx
prom      : CPUFW-1.5.0
type      : s64fx
ncpus probed   : 34
ncpus active   : 34
L2$ size   : 12288 KB

uname -m = s64fx
uname -r = 2.6.32
uname -s = Linux
uname -v = #2 SMP Wed Dec 2 15:57:26 JST 2015

I’m suspecting that this happens because of the lines

-- Constructing LLVMBuild project information
-- Targeting X86

It seems configuration tool couldn’t recognize the system…
Any idea?

Here’s an update.

After I added a line to interpreter/llvm/src/CMakeLists.txt file to force the architecture to Sparc

221 set(LLVM_TARGETS_TO_BUILD
222    ${LLVM_TARGETS_TO_BUILD}
223    ${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD})
224 list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
225 
226 set(LLVM_TARGETS_TO_BUILD Sparc)
227 
228 include(AddLLVMDefinitions)
229 
230 option(LLVM_ENABLE_PIC "Build Position-Independent Code" ON)

It gives me the right target output

-- Target triple: sparc64-unknown-linux-gnu
[color=#FF0000]-- Native target architecture is Sparc[/color]
-- Threads disabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
[color=#FF0000]-- Targeting Sparc[/color]

However, it still stops at the same point with bus error.
Plus, it gives warning

Thank you for any idea!

I posted this to cling support, too.
I tried to delete this post from here, but it seems it’s not allowed.

Thank you for the reply if you have any idea!