Hello,
I am having an issue compiling OSMesa as part of ParaView 5.10.0-RC1 on a Power 9 Architecture System.
Even though I am using
-Dmesa_USE_SWR=OFF \
It still seems to be tryng to compile SWR which requires AVX, but as AVX instructions do not exist on the Power 9 Architecture this fails.
Here is the end of the file
Build_directory/superbuild/osmesa/src/build/meson-logs/meson-log.txt
showing the error.
Compiler stdout:
Compiler stderr:
g++: error: unrecognized command-line option '-mavx'
Compiler for C++ supports arguments -mavx: NO
Running compile:
Working directory: /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmpds97ckla
Command line: /opt/rh/gcc-toolset-10/root/usr/bin/g++ /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmpds97ckla/testfile.cpp -o /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmpds97ckla/output.obj -c -fPIC -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -march=core-avx
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
g++: error: unrecognized command-line option '-march=core-avx'
Compiler for C++ supports arguments -march=core-avx: NO
Running compile:
Working directory: /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmpzrhyptjy
Command line: /opt/rh/gcc-toolset-10/root/usr/bin/g++ /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmpzrhyptjy/testfile.cpp -o /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmpzrhyptjy/output.obj -c -fPIC -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -tp=sandybridge
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
g++: error: unrecognized command-line option '-tp=sandybridge'
Compiler for C++ supports arguments -tp=sandybridge: NO
Running compile:
Working directory: /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmp_x5lkzj9
Command line: /opt/rh/gcc-toolset-10/root/usr/bin/g++ /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmp_x5lkzj9/testfile.cpp -o /p/app/DAAC/build/PV/Build_5.10.0-RC1_osmesa_openmpi_411_gcc_1021/superbuild/osmesa/src/build/meson-private/tmp_x5lkzj9/output.obj -c -fPIC -D_FILE_OFFSET_BITS=64 -O0 -fpermissive /arch:AVX
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
g++: error: /arch:AVX: No such file or directory
Compiler for C++ supports arguments /arch:AVX: NO
First supported argument: None
src/gallium/drivers/swr/meson.build:207:2: ERROR: Problem encountered: Cannot find AVX support for swr. (these are required for SWR an all architectures.)
Thanks,
Joe