intel / level-zero-raytracing-support

Apache License 2.0
2 stars 1 forks source link

"../simd/avx.h" not found #1

Open HurricanePootis opened 4 months ago

HurricanePootis commented 4 months ago

Whenever compiling this project with the following cmake setup:

cmake -B build -S level-zero-raytracing-support-v1.0.0 \
-DCMAKE_BUILD_TYPE=
-DCMAKE_INSTALL_PREFIX=/usr

cmake --build build

I get the following error:

<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
In file included from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/leaf.h:9,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/qnode.h:9,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/qbvh6.h:6,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/qbvh6.cpp:4:
/home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/math/vec2.h:213:10: fatal error: ../simd/avx.h: No such file or directory
  213 | #include "../simd/avx.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [rtbuild/CMakeFiles/embree_rthwif.dir/build.make:91: rtbuild/CMakeFiles/embree_rthwif.dir/qbvh6.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/leaf.h:9,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/qnode.h:9,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/qbvh6.h:6,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/qbvh6_builder_sah.h:6,
                 from /home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/rtbuild.cpp:7:
/home/hurricane/aur/level-zero-raytracing-support/src/level-zero-raytracing-support-1.0.0/rtbuild/math/vec2.h:213:10: fatal error: ../simd/avx.h: No such file or directory
  213 | #include "../simd/avx.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [rtbuild/CMakeFiles/embree_rthwif.dir/build.make:77: rtbuild/CMakeFiles/embree_rthwif.dir/rtbuild.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1010: rtbuild/CMakeFiles/embree_rthwif.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Looks like there is a supposed to be a avx.h file in rtbuild/simd/?

svenwoop commented 3 months ago

You seem to have AVX ISA enabled through your CXXFLAGS environment variable. Please remove this and compile the code with default compiler settings for SSE.