Board index FlightGear Support Compiling

Simgear compilation failure

Building FlightGear from source, and in the need for help?

Re: Simgear compilation failure

Postby dutchguy » Wed Jan 04, 2017 3:17 pm

I just saw the last simgear commit, and tried it out to see if it fixes the problem. It gives the following compilation error though:

Code: Select all
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHLineSegmentVisitor.hxx:21,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHLineSegmentVisitor.cxx:22:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHLineGeometry.hxx:21,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHLineGeometry.cxx:18:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHNode.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHNode.cxx:18:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHNode.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHMotionTransform.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHMotionTransform.cxx:22:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/bucket/newbucket.hxx:39,
                 from /home/govert/fgsrc/simgear/simgear/bucket/newbucket.cxx:37:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHNode.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHGroup.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHPageNode.hxx:25,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHPageNode.cxx:18:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHNode.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHGroup.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHGroup.cxx:22:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
simgear/CMakeFiles/SimGearCore.dir/build.make:494: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineGeometry.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineGeometry.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
simgear/CMakeFiles/SimGearCore.dir/build.make:518: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineSegmentVisitor.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineSegmentVisitor.cxx.o] Error 1
simgear/CMakeFiles/SimGearCore.dir/build.make:566: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHNode.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHNode.cxx.o] Error 1
simgear/CMakeFiles/SimGearCore.dir/build.make:446: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bucket/newbucket.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bucket/newbucket.cxx.o] Error 1
simgear/CMakeFiles/SimGearCore.dir/build.make:590: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPageNode.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPageNode.cxx.o] Error 1
simgear/CMakeFiles/SimGearCore.dir/build.make:470: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHGroup.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHGroup.cxx.o] Error 1
simgear/CMakeFiles/SimGearCore.dir/build.make:542: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHMotionTransform.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHMotionTransform.cxx.o] Error 1
In file included from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:38,
                 from /home/govert/fgsrc/simgear/simgear/math/SGGeometry.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHNode.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHGroup.hxx:22,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHPageNode.hxx:25,
                 from /home/govert/fgsrc/simgear/simgear/bvh/BVHPager.cxx:25:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx: In member function ‘simd4x4_t<double, 4>& simd4x4_t<double, 4>::operator*=(const simd4x4_t<double, 4>&)’:
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:633:51: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             row = _mm256_mul_pd(m1.m4x4()[0], col.v4());
                                                   ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:636:41: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                 row = _mm256_add_pd(row.v4(),
                                         ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:637:69: error: request for member ‘v4’ in ‘col’, which is of non-class type ‘__m256d {aka __vector(4) double}’
                                     _mm256_mul_pd(m1.m4x4()[j], col.v4()));
                                                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:639:30: error: request for member ‘v4’ in ‘row’, which is of non-class type ‘__m256d {aka __vector(4) double}’
             simd4x4[i] = row.v4();
                              ^
simgear/CMakeFiles/SimGearCore.dir/build.make:638: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPager.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPager.cxx.o] Error 1
CMakeFiles/Makefile2:1158: recipe for target 'simgear/CMakeFiles/SimGearCore.dir/all' failed
make[1]: *** [simgear/CMakeFiles/SimGearCore.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm

Re: Simgear compilation failure

Postby erik » Wed Jan 04, 2017 3:30 pm

Shoot, I missed that one.
Should be fixed now.

Erik
erik
 
Posts: 1520
Joined: Thu Nov 01, 2007 1:41 pm

Re: Simgear compilation failure

Postby dutchguy » Wed Jan 04, 2017 4:29 pm

Now it compiles again, but the segfault is still there. The stacktrace is also the same. Is there a command I can run to get more log info?
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm

Re: Simgear compilation failure

Postby erik » Thu Jan 05, 2017 8:55 am

Just a hunch: Do you use multiplayer when the crash happens?
There was a bugfix committed to OpenRadar (in SimGear) that triggered a coredump for others too.

If it's still resent with that fix it would be great if you could compile SimGear and FlightGear again in debug mode: by running: cmake -DCMAKE_BUILD_TYPE=Debug

Erik
erik
 
Posts: 1520
Joined: Thu Nov 01, 2007 1:41 pm

Re: Simgear compilation failure

Postby wkitty42 » Thu Jan 05, 2017 2:01 pm

dutchguy wrote in Wed Jan 04, 2017 11:59 am:I'm up to date with current git. The only difference I can see is that you seem to compile Plib and OSG yourself,

if you are talking to me, yes, i do... i was using the system installed ones at one point but decided that i'd rather build all from the official repos... when i added elgaton's suggested changes, i did see a few things were compiled differently in OSG... i didn't expect plib to change... i was able to tell they were compiled differently by watching the install output where it stated that blahblah was updated...

the rest of your output looks like what i saw when i tried with that option...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 5695
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Simgear compilation failure

Postby erik » Fri Jan 06, 2017 8:14 am

I've now disabled AVX support since I can't test it myself more than I have now (I don; t have hardware that supports AVX). So until someone who can actually test it on AVX compatible hardware steps up to fix the code it has been disabled.

Erik
erik
 
Posts: 1520
Joined: Thu Nov 01, 2007 1:41 pm

Previous

Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest