Boost logo

Geometry :

Subject: Re: [geometry] Forking and compiling tests
From: Henry Roeland (henry_at_[hidden])
Date: 2014-12-09 16:04:53


Hi Barend and Adam,

Tried the tests at work on both Ubuntu 12.04 LTS/G++ 4.6 and Ubuntu 14.04 LTS/G++ 4.8.2 and both worked OK.

So it seems like a problem locally in my Virtual Machine. I’m using Parallels 10 on my macbook pro.

I’m testing the specs of the Virtual machine and found out that different memory/cpu specs matter:

SMALL: Running Ubuntu 14.04.1 LTS / G++ 4.8.2 with 1GB memory and 2 x 2.6 CPU’s ( My original configuration where trouble started):

...failed updating 5 targets...
...skipped 15 targets...
...updated 667 targets…

Few of the error message(s):
gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug/comparable_distance.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I"." -I"../../.." -I"../../../boost/geometry/extensions/contrib/ttmath" -c -o "../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug/comparable_distance.o" "algorithms/comparable_distance.cpp"

...failed gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug/comparable_distance.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance for lack of <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance.run for lack of <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance…

gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug/distance.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I"." -I"../../.." -I"../../../boost/geometry/extensions/contrib/ttmath" -c -o "../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug/distance.o" "algorithms/distance.cpp"

...failed gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug/distance.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug>distance for lack of <p../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug>distance.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug>distance.run for lack of <p../../../bin.v2/libs/geometry/test/algorithms/distance.test/gcc-4.8/debug>distance…

gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug/distance_linear_areal.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I"." -I"../../.." -I"../../../boost/geometry/extensions/contrib/ttmath" -c -o "../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug/distance_linear_areal.o" "algorithms/distance_linear_areal.cpp"

...failed gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug/distance_linear_areal.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug>distance_linear_areal for lack of <p../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug>distance_linear_areal.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug>distance_linear_areal.run for lack of <p../../../bin.v2/libs/geometry/test/algorithms/distance_linear_areal.test/gcc-4.8/debug>distance_linear_areal...

MEDIUM: Running Ubuntu 14.04.1 LTS / G++ 4.8.2 with 1GB memory and 4 x 2.6 CPU’s:

...failed updating 1 target...
...skipped 3 targets...
...updated 683 targets...

The error message:
gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug/comparable_distance.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I"." -I"../../.." -I"../../../boost/geometry/extensions/contrib/ttmath" -c -o "../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug/comparable_distance.o" "algorithms/comparable_distance.cpp"

...failed gcc.compile.c++ ../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug/comparable_distance.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance for lack of <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance.o...
...skipped <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance.run for lack of <p../../../bin.v2/libs/geometry/test/algorithms/comparable_distance.test/gcc-4.8/debug>comparable_distance...

LARGE: Running Ubuntu 14.04.1 LTS / G++ 4.8.2 with 2GB memory and 4 x 2.6 CPU’s:

...updated 687 targets...

So everything seems to work with this configuration!

Maybe fixed in newer g++ version?: https://github.com/CleverRaven/Cataclysm-DDA/issues/10120 <https://github.com/CleverRaven/Cataclysm-DDA/issues/10120>

Kind regards,

Henry Roeland

> On 9 dec. 2014, at 14:08, Adam Wulkiewicz <adam.wulkiewicz_at_[hidden]> wrote:
>
> Hi,
>
> 2014-12-09 8:13 GMT+01:00 Barend Gehrels <barend_at_[hidden] <mailto:barend_at_[hidden]>>:
> Hi Henry,
>
> Henry Roeland wrote On 9-12-2014 7:20:
>> henry_at_ubuntu:~/Develop/boost/mod/modular-boost/libs/geometry/test⟫ g++ -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -DBOOST_ALL_NO_LIB=1 -I"." -I"../../.." -I"../../../boost/geometry/extensions/contrib/ttmath" -c -o "../../../bin.v2/libs/geometry/test/geometries/boost_polygon.test/gcc-4.8/debug/boost_polygon.o" "geometries/boost_polygon.cpp"
>> g++: internal compiler error: Killed (program cc1plus)
>>
>
> Can you check another testfile too? Because boost_polygon is specific because it depends on two Boost libraries (Boost.Geometry, Boost.Polygon). Please check if a simpler case (e.g. arithmetic\dot_product.cpp) works.
>
>
> Still, it shouldn't result in an internal compiler error.
>
>>
>> Am I the only one building & running geometry tests with g++ 4.8 on Ubuntu 14.04.1 LTS (Inside virtual machine)?
>
> I don't have that configuration.
>
> I have Mint 17 based on Ubuntu 14.04 and GCC 4.8.2. I just tried to get a fresh clone, run the tests and it works for me. Is your compiler setup ok? Which standard library implementation are you using?
>
> You could try to compile one of the simpler tests manually, something like this should work:
>
> g++ -IPATH_TO_BOOST -IPATH_TO_BOOST/libs/geometry/test PATH_TO_BOOST/libs/geometry/test/arithmetic/dot_product.cpp
>
> Regards,
> Adam
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry



Geometry list run by mateusz at loskot.net