Dear root experts,
I had a problem compiling ROOT v6-02-01 (NOT on Mac, but
linux x86_64, Fedora-20), due to (?) a SEGV in building
hsimple.root, only when compiling w/ cmake (seems NO problem
in autoconf build.)
Both configured by enabling the following:
gdml, minuit2, python, roofit, gsl_shared
Any clue?
Kazuyoshi
The following is a part of the message on the SEGV.
Scanning dependencies of target hsimple
[ 50%] Generating hsimple.root
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x0000003be00bc2fc in __libc_waitpid (pid=12678, stat_loc=stat_loc
entry=0x7fffdd7046e0, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1 0x0000003be0042522 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2 0x00007fd3cb7e2979 in TUnixSystem::StackTrace (this=0x6439e0) at /home/furutaka/work/root/root.git/core/unix/src/TUnixSystem.cxx:2297
#3 0x00007fd3cb7e44ec in TUnixSystem::DispatchSignals (this=0x6439e0, sig=kSigSegmentationViolation) at /home/furutaka/work/root/root.git/core/unix/src/TUnixSystem.cxx:3523
#4 <signal handler called>
#5 _M_grab (__alloc2=..., __alloc1=..., this=<optimized out>) at /usr/src/debug/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:229
#6 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string (this=0xfd18e0, __str=<error reading variable: Cannot access memory at address 0xffffffffffffffe8>) at /usr/src/debug/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.tcc:173
#7 0x00007fd3c99c941a in TClingClassInfo (this=0xfd18a0) at /home/furutaka/work/root/root.git/core/meta/src/TClingClassInfo.h:53
#8 TClingBaseClassInfo::TClingBaseClassInfo (this=0x7fffdd706e40, interp=<optimized out>, ci=0xfd9fe0) at /home/furutaka/work/root/root.git/core/meta/src/TClingBaseClassInfo.cxx:71
#9 0x00007fd3c9984290 in TCling::CreateListOfBaseClasses (this=0x6b0500, cl=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TCling.cxx:3061
#10 0x00007fd3cb7bb867 in TClass::GetListOfBases (this=this
entry=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:3283
#11 0x00007fd3cb7bb8f2 in TClass::GetBaseClass (this=this
entry=0xfdc740, cl=cl
entry=0xe0f0b0) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:2452
#12 0x00007fd3cb7bb998 in TClass::InheritsFrom (this=this
entry=0xfdc740, cl=0xe0f0b0) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:4341
#13 0x00007fd3cb7bd80f in TClass::Property (this=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:5371
#14 0x00007fd3cb7bd639 in TClass::IsForeign (this=this
entry=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:5273
#15 0x00007fd3cb7c8fc5 in TClass::PostLoadCheck (this=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:5292
#16 0x00007fd3cb7bd090 in TClass::GetClass (typeinfo=..., load=<optimized out>, load
entry=true) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:2912
#17 0x00007fd3cb74e6dc in TBuffer::GetClass (typeinfo=...) at /home/furutaka/work/root/root.git/core/base/src/TBuffer.cxx:297
#18 0x00007fd3c9986d56 in GetObject<TObjArray> (ptr=<synthetic pointer>, namecycle=0x7fd3cabac1c8 "__ProtoClasses", this=0xfddc00) at /home/furutaka/work/root/root_v6.02.00-build/include/TDirectoryFile.h:82
#19 TCling::LoadPCM (this=this
entry=0x6b0500, pcmFileName=..., headers=headers
entry=0x7fd3cbe064c0 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()::headers>, triggerFunc=triggerFunc
entry=0x7fd3cbb5ee90 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()>) at /home/furutaka/work/root/root.git/core/meta/src/TCling.cxx:1219
#20 0x00007fd3c999d291 in TCling::RegisterModule (this=0x6b0500, modulename=<optimized out>, headers=<optimized out>, includePaths=<optimized out>, payloadCode=<optimized out>, fwdDeclsCode=<optimized out>, triggerFunc=0x7fd3cbb5ee90 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()>, fwdDeclsArgToSkip=std::vector of length 0, capacity 0, classesHeaders=0x7fd3cbe078f8 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()::classesHeaders+4632>) at /home/furutaka/work/root/root.git/core/meta/src/TCling.cxx:1584
#21 0x00007fd3cb681b82 in TROOT::InitInterpreter (this=0x7fd3cbab8cc0 <ROOT::GetROOT1()::alloc>) at /home/furutaka/work/root/root.git/core/base/src/TROOT.cxx:1721
#22 0x00007fd3cb681e76 in ROOT::GetROOT2 () at /home/furutaka/work/root/root.git/core/base/src/TROOT.cxx:339
#23 0x00007fd3cb717aa6 in TEnv::Getvalue (this=0x645580, name=0x7fd3cb7f3860 "Url.Special") at /home/furutaka/work/root/root.git/core/base/src/TEnv.cxx:449
#24 0x00007fd3cb718139 in TEnv::GetValue (this=<optimized out>, name=<optimized out>, dflt=0x7fd3cb7f3898 "file: rfio: hpss: castor: dcache: dcap:") at /home/furutaka/work/root/root.git/core/base/src/TEnv.cxx:532
#25 0x00007fd3cb6f8661 in TUrl::GetSpecialProtocols () at /home/furutaka/work/root/root.git/core/base/src/TUrl.cxx:594
#26 0x00007fd3cb6f8cee in TUrl::SetUrl (this=this
entry=0x7fffdd707ac0, url=url
entry=0x401139 "hsimple.root", defaultIsFile=defaultIsFile
entry=true) at /home/furutaka/work/root/root.git/core/base/src/TUrl.cxx:144
#27 0x00007fd3cb6f931f in TUrl::TUrl (this=0x7fffdd707ac0, url=0x401139 "hsimple.root", defaultIsFile=<optimized out>) at /home/furutaka/work/root/root.git/core/base/src/TUrl.cxx:78
#28 0x00007fd3cd09a0d0 in TFile::TFile (this=0x7fffdd7078d0, fname1=0x401139 "hsimple.root", option=0x401130 "RECREATE", ftitle=0x401110 "Demo ROOT file with histograms", compress=1) at /home/furutaka/work/root/root.git/io/io/src/TFile.cxx:205
#29 0x0000000000400dae in hsimple () at /home/furutaka/work/root/root.git/test/hsimple.cxx:41
#30 0x0000003be0021d65 in __libc_start_main (main=0x400c70 <main()>, argc=1, argv=0x7fffdd707cf8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffdd707ce8) at libc-start.c:285
#31 0x0000000000400ca1 in _start ()
===========================================================
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5 _M_grab (__alloc2=..., __alloc1=..., this=<optimized out>) at /usr/src/debug/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:229
#6 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string (this=0xfd18e0, __str=<error reading variable: Cannot access memory at address 0xffffffffffffffe8>) at /usr/src/debug/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.tcc:173
#7 0x00007fd3c99c941a in TClingClassInfo (this=0xfd18a0) at /home/furutaka/work/root/root.git/core/meta/src/TClingClassInfo.h:53
#8 TClingBaseClassInfo::TClingBaseClassInfo (this=0x7fffdd706e40, interp=<optimized out>, ci=0xfd9fe0) at /home/furutaka/work/root/root.git/core/meta/src/TClingBaseClassInfo.cxx:71
#9 0x00007fd3c9984290 in TCling::CreateListOfBaseClasses (this=0x6b0500, cl=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TCling.cxx:3061
#10 0x00007fd3cb7bb867 in TClass::GetListOfBases (this=this
entry=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:3283
#11 0x00007fd3cb7bb8f2 in TClass::GetBaseClass (this=this
entry=0xfdc740, cl=cl
entry=0xe0f0b0) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:2452
#12 0x00007fd3cb7bb998 in TClass::InheritsFrom (this=this
entry=0xfdc740, cl=0xe0f0b0) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:4341
#13 0x00007fd3cb7bd80f in TClass::Property (this=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:5371
#14 0x00007fd3cb7bd639 in TClass::IsForeign (this=this
entry=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:5273
#15 0x00007fd3cb7c8fc5 in TClass::PostLoadCheck (this=0xfdc740) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:5292
#16 0x00007fd3cb7bd090 in TClass::GetClass (typeinfo=..., load=<optimized out>, load
entry=true) at /home/furutaka/work/root/root.git/core/meta/src/TClass.cxx:2912
#17 0x00007fd3cb74e6dc in TBuffer::GetClass (typeinfo=...) at /home/furutaka/work/root/root.git/core/base/src/TBuffer.cxx:297
#18 0x00007fd3c9986d56 in GetObject<TObjArray> (ptr=<synthetic pointer>, namecycle=0x7fd3cabac1c8 "__ProtoClasses", this=0xfddc00) at /home/furutaka/work/root/root_v6.02.00-build/include/TDirectoryFile.h:82
#19 TCling::LoadPCM (this=this
entry=0x6b0500, pcmFileName=..., headers=headers
entry=0x7fd3cbe064c0 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()::headers>, triggerFunc=triggerFunc
entry=0x7fd3cbb5ee90 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()>) at /home/furutaka/work/root/root.git/core/meta/src/TCling.cxx:1219
#20 0x00007fd3c999d291 in TCling::RegisterModule (this=0x6b0500, modulename=<optimized out>, headers=<optimized out>, includePaths=<optimized out>, payloadCode=<optimized out>, fwdDeclsCode=<optimized out>, triggerFunc=0x7fd3cbb5ee90 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()>, fwdDeclsArgToSkip=std::vector of length 0, capacity 0, classesHeaders=0x7fd3cbe078f8 <(anonymous namespace)::TriggerDictionaryInitialization_libMathCore_Impl()::classesHeaders+4632>) at /home/furutaka/work/root/root.git/core/meta/src/TCling.cxx:1584
#21 0x00007fd3cb681b82 in TROOT::InitInterpreter (this=0x7fd3cbab8cc0 <ROOT::GetROOT1()::alloc>) at /home/furutaka/work/root/root.git/core/base/src/TROOT.cxx:1721
#22 0x00007fd3cb681e76 in ROOT::GetROOT2 () at /home/furutaka/work/root/root.git/core/base/src/TROOT.cxx:339
#23 0x00007fd3cb717aa6 in TEnv::Getvalue (this=0x645580, name=0x7fd3cb7f3860 "Url.Special") at /home/furutaka/work/root/root.git/core/base/src/TEnv.cxx:449
#24 0x00007fd3cb718139 in TEnv::GetValue (this=<optimized out>, name=<optimized out>, dflt=0x7fd3cb7f3898 "file: rfio: hpss: castor: dcache: dcap:") at /home/furutaka/work/root/root.git/core/base/src/TEnv.cxx:532
#25 0x00007fd3cb6f8661 in TUrl::GetSpecialProtocols () at /home/furutaka/work/root/root.git/core/base/src/TUrl.cxx:594
#26 0x00007fd3cb6f8cee in TUrl::SetUrl (this=this
entry=0x7fffdd707ac0, url=url
entry=0x401139 "hsimple.root", defaultIsFile=defaultIsFile
entry=true) at /home/furutaka/work/root/root.git/core/base/src/TUrl.cxx:144
#27 0x00007fd3cb6f931f in TUrl::TUrl (this=0x7fffdd707ac0, url=0x401139 "hsimple.root", defaultIsFile=<optimized out>) at /home/furutaka/work/root/root.git/core/base/src/TUrl.cxx:78
#28 0x00007fd3cd09a0d0 in TFile::TFile (this=0x7fffdd7078d0, fname1=0x401139 "hsimple.root", option=0x401130 "RECREATE", ftitle=0x401110 "Demo ROOT file with histograms", compress=1) at /home/furutaka/work/root/root.git/io/io/src/TFile.cxx:205
#29 0x0000000000400dae in hsimple () at /home/furutaka/work/root/root.git/test/hsimple.cxx:41
#30 0x0000003be0021d65 in __libc_start_main (main=0x400c70 <main()>, argc=1, argv=0x7fffdd707cf8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffdd707ce8) at libc-start.c:285
#31 0x0000000000400ca1 in _start ()
===========================================================
make[2]: *** [hsimple.root] Error 139
make[1]: *** [CMakeFiles/hsimple.dir/all] Error 2
make: *** [all] Error 2
From: Fons Rademakers <***@cern.ch>
Subject: Re: Issue compiling latest root
Date: Sun, 19 Oct 2014 21:20:12 +0200
Post by Fons RademakersGentlemen,
./configure --all
make -j 24
root [0]
Processing hsimple.C...
hsimple : Real Time = 0.11 seconds Cpu Time = 0.10 seconds
(class TFile *) 0x7fc339872940
============================================================
=== ROOT BUILD SUCCESSFUL. ===
=== Run 'source bin/thisroot.[c]sh' before starting ROOT ===
============================================================
real 6m44.954s
user 96m0.108s
sys 9m5.125s
No special settings.
xcode 6.0.1
$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
$ clang++ -v
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
BUILDCOCOA := yes
MACOSXVERS := 10.10
OSXSDK :=
IOSVERS :=
IOSSDK :=
Cheers, Fons.
Post by Frank FilthautHi Axel,
I, too, just upgraded to Yosemite. I don$B!G(Bt get Dag$B!G(Bs error (the llvm
stage
is built successfully for me $B!=(B weird?) but I$B!G(Bm getting a different
generating the core/base/src/G__core.src dictionary fails with the message
*input_line_3:1:10: **fatal error: **'assert.h' file not found*
#include <assert.h>
* ^*
Error: Error loading the default header files.
make: *** [core/base/src/G__Core.cxx] Error 1
I don$B!G(Bt quite understand why assert.h isn$B!G(Bt found as it is clearly
there, as
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/assert.h
which is consistent with my SDK settings: running
xcrun --show-sdk-path
yields
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
--enable-roofit --with-macosxvers=10.9
The 10.9 is necessary since there doesn$B!G(Bt appear to be a 10.10 SDK
yet.
Any clue?
BTW: when using a previously compiled build, I get the same complaint about
different targets as Dag does.
Thanks,
Frank
Post by Dag GillbergHi Alex,
error: PCH file was compiled for the target
'x86_64-apple-macosx10.9.0'
but the current translation unit is being
compiled for target 'x86_64-apple-macosx10.10.0'
And building myself, I get the message I attached previously.
root/interpreter/llvm/obj/Makefile.config
which i attached.
Cheers,
Dag
Hi Dag,
I suspect that this is an amazing side effect of the upgrade,
actually: note how your user name in the directory is once capital
and once lower case.
I will try to find out what happens here... In the meantime, could
you try an out of source build?
Cheers, Axel
On October 18, 2014 11:11:23 AM CEST, Dag Gillberg
Hello root experts,
I'm trying to compile root v6-02-01 on my laptop, and it doesn't
*** Building interpreter/llvm/inst/lib/libclangSema.a...
make[1]: *** No rule to make target
`/Users/dag/root6/root-v6-02-01/interpreter/llvm/src/Users/Dag/root6/root-v6-02-01/interpreter/llvm/obj/Makefile',
needed by `Makefile'. Stop.
make: *** [interpreter/llvm/inst/lib/libclangSema.a] Error 2
So it seems that somewhere in the makefile jungle a space has
gone missing between
/Users/dag/root6/root-v6-02-01/interpreter/llvm/src
/Users/Dag/root6/root-v6-02-01/interpreter/llvm/obj/Makefile
?
./configure --all --disable-fink
make
Any ideas how to fix this?
Thanks,
Dag
PS: I just upgraded to MacOS Yosemite
<Makefile.config>
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
WWW: http://fons.rademakers.org Fax: +41 22 7669640