Board index FlightGear Support Compiling

Simgear compilation failure

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

Simgear compilation failure

Postby dutchguy » Sat Dec 31, 2016 12:57 pm

Dear all,

For the past week or so, I've been getting the following compilation errors. The first error is quite obvious, but the next all refer to a library of which I don't know what it does, so I'm not comfortable changing the code to remove the error messages. The error log below. It only includes the first few errors, since the full log apparently made this post exceed the character limit.

Code: Select all
-- version is 2017 dot 1 dot 0
-- Library installation directory: lib
-- Boost version: 1.58.0
-- SimGear mode: NORMAL
-- Sound support: ENABLED
-- Using built-in expat code
-- RTI: DISABLED
-- Tests: ENABLED
-- DNS resolver: ENABLED
-- Library building mode: STATIC LIBRARIES
-- Configuring done
-- Generating done
-- Build files have been written to: /home/govert/fgsrc/build-sg
Scanning dependencies of target SimGearCore
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bucket/newbucket.cxx.o
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineGeometry.cxx.o
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHGroup.cxx.o
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPageNode.cxx.o
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHNode.cxx.o
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineSegmentVisitor.cxx.o
[  2%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHMotionTransform.cxx.o
[  3%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPager.cxx.o
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:509:12: error: #include expects "FILENAME" or <FILENAME>
 #  include >avxintrin.h>
            ^
In file included from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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/simd.hxx:518:9: error: ‘__m256d’ does not name a type
         __m256d simd4;
         ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:541:19: error: ‘__m256d’ does not name a type
     simd4_t(const __m256d& v) {
                   ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:545:27: error: expected identifier before ‘&’ token
     inline const __m256d (&v4(void) const) {
                           ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:545:37: error: ‘const’ and ‘volatile’ function specifiers on ‘v4’ invalid in parameter declaration
     inline const __m256d (&v4(void) const) {
                                     ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:545:42: error: ISO C++ forbids declaration of ‘__m256d’ with no type [-fpermissive]
     inline const __m256d (&v4(void) const) {
                                          ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:548:21: error: expected identifier before ‘&’ token
     inline __m256d (&v4(void)) {
                     ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:548:30: error: ISO C++ forbids declaration of ‘__m256d’ with no type [-fpermissive]
     inline __m256d (&v4(void)) {
                              ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:548:12: error: ‘int simd4_t<double, N>::__m256d(int& (*)())’ cannot be overloaded
     inline __m256d (&v4(void)) {
            ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:545:18: error: with ‘const int simd4_t<double, N>::__m256d(int& (*)())’
     inline const __m256d (&v4(void) const) {
                  ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:580:47: error: ‘__m256d’ does not name a type
     inline simd4_t<double,N>& operator=(const __m256d& v) {
                                               ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx: In constructor ‘simd4_t<double, N>::simd4_t(double)’:
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:526:15: error: expected primary-expression before ‘=’ token
         simd4 = _mm256_set1_pd(d);
               ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:526:33: error: there are no arguments to ‘_mm256_set1_pd’ that depend on a template parameter, so a declaration of ‘_mm256_set1_pd’ must be available [-fpermissive]
         simd4 = _mm256_set1_pd(d);
                                 ^
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:526:33: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/govert/fgsrc/simgear/simgear/math/simd.hxx: In constructor ‘simd4_t<double, N>::simd4_t(double, double, double, double)’:
/home/govert/fgsrc/simgear/simgear/math/simd.hxx:532:15: error: expected primary-expression before ‘=’ token
         simd4 = _mm256_set_pd(w,z,y,x);


I'm running Ubuntu 16.04.
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm

Re: Simgear compilation failure

Postby elgaton » Sat Dec 31, 2016 8:38 pm

Does applying the following patch fix the issue?

Code: Select all
diff --git a/simgear/math/simd.hxx b/simgear/math/simd.hxx
index 5dced340..3f6d6cb2 100644
--- a/simgear/math/simd.hxx
+++ b/simgear/math/simd.hxx
@@ -506,7 +506,7 @@ inline simd4_t<float,N>abs(simd4_t<float,N> v) {
 
 # ifdef __AVX__
 #  include <pmmintrin.h>
-#  include >avxintrin.h>
+#  include <immintrin.h>
 
 template<int N>
 class simd4_t<double,N>

(Basically, replace ">avxintrin.h>" with "<immintrin.h>").

If it works, let me know so that I can make a pull request for this fix.
NIATCA 2nd admin, regular ATC at LIPX and creator of the LIPX custom scenery
elgaton
 
Posts: 1107
Joined: Tue Mar 19, 2013 4:58 pm
Callsign: I-ELGA/LIPX_TW
Version: Git
OS: Windows + Arch Linux

Re: Simgear compilation failure

Postby wkitty42 » Sat Dec 31, 2016 11:11 pm

i don't understand why i'm not seeing this... i'm on ubuntu 14.04.5 and my simgear (all of flightgear, actually) is configured and rebuilt every time... my last build was yesterday morning at 0600 local time...

Code: Select all
********** 20161230_060126EST **********
********** Total elapsed update and compile time is 14m 16s **********

PLib:    1b3b3e1d7689a85a50720f112614022c65d592bb
OSG:     18389c84d105ce2875aad7dee3d723902d1cce51
Simgear: 45ac758cc9336168fee1ce24e144347babafeda7
FGFS:    16fdfac7ae4d68e1823cc26ba0fa9238ef5a3025
FGData:  49836f9956d15029488c920e745ff8dbf0585567
FGAddon: r2362 | forgolai | 2016-12-26 15:18:25 -0500 (Mon, 26 Dec 2016)
"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: 5717
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 sanhozay » Sat Dec 31, 2016 11:43 pm

I'm not seeing it either. My initial assumption was that it is because I compile without Qt because I don't use the launcher?
sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Simgear compilation failure

Postby rominet » Sun Jan 01, 2017 12:08 am

The > instead of < in include lines is the easy one, and dutchguy figured it out by himself. The real problem seems to be:
Code: Select all
#error "Never use <avxintrin.h> directly; include <immintrin.h> instead."

I don't have the error either, but this can be easily explained (simgear/simgear/math/simd4x4.hxx):
Code: Select all
# ifdef __AVX__
#  include <pmmintrin.h>
#  include <avxintrin.h>

This appears to come from 2c2a57f36. I think this is something for Erik. dutchguy, can you post to flightgear-devel?

Happy New Year!

Edit: I've posted on flightgear-devel a message linking to this post.
Last edited by rominet on Sun Jan 01, 2017 8:22 am, edited 1 time in total.
rominet
 
Posts: 557
Joined: Sat Nov 01, 2014 1:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: Simgear compilation failure

Postby elgaton » Sun Jan 01, 2017 8:20 am

wkitty42 wrote in Sat Dec 31, 2016 11:11 pm:i don't understand why i'm not seeing this...

sanhozay wrote in Sat Dec 31, 2016 11:43 pm:I'm not seeing it either. My initial assumption was that it is because I compile without Qt because I don't use the launcher?

You're not seeing the error (and neither am I) because the faulty code is inside an #ifdef - it is compiled only if the system in use supports the AVX extensions.
NIATCA 2nd admin, regular ATC at LIPX and creator of the LIPX custom scenery
elgaton
 
Posts: 1107
Joined: Tue Mar 19, 2013 4:58 pm
Callsign: I-ELGA/LIPX_TW
Version: Git
OS: Windows + Arch Linux

Re: Simgear compilation failure

Postby wkitty42 » Sun Jan 01, 2017 10:30 am

sanhozay wrote in Sat Dec 31, 2016 11:43 pm:I'm not seeing it either. My initial assumption was that it is because I compile without Qt because I don't use the launcher?

yeah, my compilation blows that theory away since i do use QT and the --launcher ;)
"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: 5717
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 wkitty42 » Sun Jan 01, 2017 10:32 am

what are AVX extensions? do we need them for anything special?? why is dutchguy seeing them and other's aren't?
"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: 5717
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 sanhozay » Sun Jan 01, 2017 10:54 am

sanhozay
 
Posts: 1207
Joined: Thu Dec 26, 2013 11:57 am
Location: EGNM
Callsign: G-SHOZ
Version: Git
OS: Ubuntu 16.04

Re: Simgear compilation failure

Postby elgaton » Sun Jan 01, 2017 11:01 am

wkitty42 wrote in Sun Jan 01, 2017 10:32 am:what are AVX extensions? do we need them for anything special??

They are special extensions designed to speed up vector operations on processors that support them[/quote].

wkitty42 wrote in Sun Jan 01, 2017 10:32 am:why is dutchguy seeing them and other's aren't?

He's probably compiling SimGear with the -march=native switch, which enables all extensions (SIMD/AVX) supported by the processor in use. My guess is that either you do not use that switch, or you are using it but your CPU does not support AVX (this is my case); thus, since the faulty code is embedded in an #ifdef block, it is not compiled on your system and the error is not triggered.

Anyway, Erik Hofman (the developer responsible for that part) has just pushed a fix to the SimGear repository - to the original poster, could you please check if it works?
NIATCA 2nd admin, regular ATC at LIPX and creator of the LIPX custom scenery
elgaton
 
Posts: 1107
Joined: Tue Mar 19, 2013 4:58 pm
Callsign: I-ELGA/LIPX_TW
Version: Git
OS: Windows + Arch Linux

Re: Simgear compilation failure

Postby dutchguy » Sun Jan 01, 2017 11:40 am

Dear all,

Indeed I'm compiling with -march=native. Sorry I forgot to mention this before. I just did a git pull to get Erik's fix, and while it removed the faulty bracket error, it didn't remove the other errors. The error log now looks like this:

Code: Select all
In file included from /home/govert/fgsrc/simgear/simgear/math/simd.hxx:509:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd.hxx:509:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd.hxx:509:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd.hxx:509:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd.hxx:509:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGVec2.hxx:26,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMath.hxx:31,
                 from /home/govert/fgsrc/simgear/simgear/bucket/newbucket.hxx:39,
                 from /home/govert/fgsrc/simgear/simgear/bucket/newbucket.cxx:37:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
   ^
In file included from /home/govert/fgsrc/simgear/simgear/math/simd4x4.hxx:520:0,
                 from /home/govert/fgsrc/simgear/simgear/math/SGMatrix.hxx:21,
                 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:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avxintrin.h:28:3: error: #error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
 # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."


Thanks for helping and a happy new year to all!
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm

Re: Simgear compilation failure

Postby erik » Sun Jan 01, 2017 12:18 pm

Ok, I'll take a look at it.
Thanks for reporting it.

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

Re: Simgear compilation failure

Postby erik » Sun Jan 01, 2017 12:27 pm

I've now done what the error describes and hope this fixes AVX support.

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

Re: Simgear compilation failure

Postby dutchguy » Sun Jan 01, 2017 12:59 pm

It compiles well now. Thank you for the quick reaction!
dutchguy
 
Posts: 108
Joined: Mon Mar 31, 2014 4:16 pm

Re: Simgear compilation failure

Postby erik » Sun Jan 01, 2017 1:06 pm

Great, let me know if anything else pops up which might be related.
erik
 
Posts: 1521
Joined: Thu Nov 01, 2007 1:41 pm

Next

Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest