Open mmikhasenko opened 7 years ago
Hi Mikhail,
which version of Ubuntu are you actually using? If you are using Ubuntu 16.04, then gcc 5.3 should be the default version for gcc. Between gcc 4.8 and 5.3 the ABI has changed. I would expect the system BOOST to be compiled with 5.3, thus using the new ABI. Please try to use either the default compiler, or compile BOOST yourself.
Hi Sebastian,
you might be right about the origin of the problem.
Although, I have indeed Ubuntu 16.04
with default compiler gcc-4.8
. Could it be that the new compiler came with updates which I did not do?
I am on the way to compile boost
myself, I will let you know.
Thanks.
Which package did you install to get gcc
/g++
? If you just install the g++
package you should get 5.3. Could you check which package you actually installed? In case you already have several versions of GCC installed, you could try update-alternatives
to change the used version.
The gcc/g++
package came together with Ubuntu repository. I did not install it.
You are right I have two alternatives:
apt list --installed | grep g++
g++/xenial,now 4:5.3.1-1ubuntu1 amd64 [installed]
g++-4.8/xenial,now 4.8.5-4ubuntu2 amd64 [installed]
g++-5/xenial-security,now 5.4.0-6ubuntu1~16.04.4 amd64 [installed,upgradable to: 5.4.0-6ubuntu1~16.04.5]
Probably update-altegnatives
will work although I have not tried.
The good news is that when I compiled boost
myself the test example . /test/testMC.sh
started to work!
Thank you very much.
I am wondering whether there is a way to detect such problem during cmake
step. It would be great.
If you come up with an idea, I perform some tests.
Compilation proceeds without errors. When I run the text example
${ROOTPWA}/test/testMC.sh
, I get the following errorThe full output:
My environment: