2020.4: cmake fails on testing SPIRV-Tools
$ rpm -qa | grep spirv
spirv-tools-libs-2020.6-2.fc34.x86_64
spirv-tools-2020.6-2.fc34.x86_64
spirv-headers-devel-1.5.4.raytracing-2.fc34.noarch
spirv-tools-devel-2020.6-2.fc34.x86_64
+ /usr/bin/cmake -B x86_64-redhat-linux-gnu -D BUILD_SHARED_LIBS=ON -D CMAKE_AR=/usr/bin/ar -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_FLAGS_RELEASE=-DNDEBUG -D CMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D CMAKE_Fortran_FLAGS_RELEASE=-DNDEBUG -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_NM=/usr/bin/nm -D CMAKE_RANLIB=/usr/bin/ranlib -D CMAKE_VERBOSE_MAKEFILE=ON -D DBUILD_SHARED_LIBS=ON -D INCLUDE_INSTALL_DIR=/usr/include -D LIB_INSTALL_DIR=/usr/lib64 -D LIB_SUFFIX=64 -D SHARE_INSTALL_PREFIX=/usr/share -D SYSCONF_INSTALL_DIR=/etc -S . -D CMAKE_SKIP_RPATH=ON -D SHADERC_SKIP_TESTS=ON -D PYTHON_EXE=/usr/bin/python3
-- The C compiler identification is GNU 11.0.0
-- The CXX compiler identification is GNU 11.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Shaderc: build type is "RelWithDebInfo".
-- Configuring Shaderc to avoid building tests.
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.3", minimum required is "3")
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING
-- Performing Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING - Success
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING - Success
-- Performing Test COMPILER_SUPPORTS_PIC
-- Performing Test COMPILER_SUPPORTS_PIC - Success
CMake Error at third_party/CMakeLists.txt:62 (message):
SPIRV-Tools was not found - required for compilation
-- Configuring incomplete, errors occurred!
See also "/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log".
$ cat /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log
The system is: Linux - 5.9.14-200.fc33.x86_64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/gcc
Build flags: -O2;-g;-pipe;-Wall;-Werror=format-security;-Wp,-D_FORTIFY_SOURCE=2;-Wp,-D_GLIBCXX_ASSERTIONS;-fstack-protector-strong;-grecord-gcc-switches;-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1;-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1;-m64;-mtune=generic;-fasynchronous-unwind-tables;-fstack-clash-protection;-fcf-protection;;-fdata-sections;-ffunction-sections
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is GNU, found in "/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/3.19.2/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/g++
Build flags: -O2;-g;-pipe;-Wall;-Werror=format-security;-Wp,-D_FORTIFY_SOURCE=2;-Wp,-D_GLIBCXX_ASSERTIONS;-fstack-protector-strong;-grecord-gcc-switches;-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1;-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1;-m64;-mtune=generic;-fasynchronous-unwind-tables;-fstack-clash-protection;-fcf-protection;;-fdata-sections;-ffunction-sections
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is GNU, found in "/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/3.19.2/CompilerIdCXX/a.out"
Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_dd062/fast && /usr/bin/gmake -f CMakeFiles/cmTC_dd062.dir/build.make CMakeFiles/cmTC_dd062.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o
/usr/bin/gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -v -o CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake/Modules/CMakeCCompilerABI.c
Using built-in specs.
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1
Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1
COLLECT_GCC=/usr/bin/gcc
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC)
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o' '-c' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_dd062.dir/'
/usr/libexec/gcc/x86_64-redhat-linux/11/cc1 -quiet -v -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS /usr/share/cmake/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_dd062.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -m64 -mtune=generic -march=x86-64 -g -grecord-gcc-switches -O2 -Wall -version -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fdata-sections -ffunction-sections -fPIE -iplugindir=/usr/lib/gcc/x86_64-redhat-linux/11/plugin -fplugin=annobin -o - |
as -v --gdwarf-4 --64 -o CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o
GNU assembler version 2.35.1 (x86_64-redhat-linux) using BFD version version 2.35.1-16.fc34
GNU C17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)
compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0), GMP version 6.2.0, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.16.1-GMP
warning: GMP header version 6.2.0 differs from library version 6.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
annobin: Version ANNOBIN_VERSION
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-redhat-linux/11/include
/usr/local/include
/usr/include
End of search list.
GNU C17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)
compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0), GMP version 6.2.0, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.16.1-GMP
warning: GMP header version 6.2.0 differs from library version 6.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
annobin: Version ANNOBIN_VERSION
Compiler executable checksum: 7160720e5a5abd1221027be0477dc066
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o' '-c' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.'
Linking C executable cmTC_dd062
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dd062.dir/link.txt --verbose=1
/usr/bin/gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -v -rdynamic CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o -o cmTC_dd062
Using built-in specs.
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1
Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-ld
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC)
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' '-v' '-rdynamic' '-o' 'cmTC_dd062' '-march=x86-64' '-pie' '-dumpdir' 'cmTC_dd062.'
/usr/libexec/gcc/x86_64-redhat-linux/11/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccrXoup6.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_dd062 /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/11 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../.. -z relro --as-needed -z now --gc-sections CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' '-v' '-rdynamic' '-o' 'cmTC_dd062' '-march=x86-64' '-pie' '-dumpdir' 'cmTC_dd062.'
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Parsed C implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/lib/gcc/x86_64-redhat-linux/11/include]
add: [/usr/local/include]
add: [/usr/include]
end of search list found
collapse include dir [/usr/lib/gcc/x86_64-redhat-linux/11/include] ==> [/usr/lib/gcc/x86_64-redhat-linux/11/include]
collapse include dir [/usr/local/include] ==> [/usr/local/include]
collapse include dir [/usr/include] ==> [/usr/include]
implicit include dirs: [/usr/lib/gcc/x86_64-redhat-linux/11/include;/usr/local/include;/usr/include]
Parsed C implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_dd062/fast && /usr/bin/gmake -f CMakeFiles/cmTC_dd062.dir/build.make CMakeFiles/cmTC_dd062.dir/build]
ignore line: [gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp']
ignore line: [Building C object CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/gcc -O2 -g -pipe -Wall -Wp -D_FORTIFY_SOURCE=2 -Wp -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -v -o CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake/Modules/CMakeCCompilerABI.c]
ignore line: [Using built-in specs.]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1]
ignore line: [COLLECT_GCC=/usr/bin/gcc]
ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none]
ignore line: [OFFLOAD_TARGET_DEFAULT=1]
ignore line: [Target: x86_64-redhat-linux]
ignore line: [Configured with: ../configure --enable-bootstrap --enable-languages=c c++ fortran objc obj-c++ ada go d lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux]
ignore line: [Thread model: posix]
ignore line: [Supported LTO compression algorithms: zlib zstd]
ignore line: [gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o' '-c' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_dd062.dir/']
ignore line: [ /usr/libexec/gcc/x86_64-redhat-linux/11/cc1 -quiet -v -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS /usr/share/cmake/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_dd062.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -m64 -mtune=generic -march=x86-64 -g -grecord-gcc-switches -O2 -Wall -version -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fdata-sections -ffunction-sections -fPIE -iplugindir=/usr/lib/gcc/x86_64-redhat-linux/11/plugin -fplugin=annobin -o - |]
ignore line: [ as -v --gdwarf-4 --64 -o CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o]
ignore line: [GNU assembler version 2.35.1 (x86_64-redhat-linux) using BFD version version 2.35.1-16.fc34]
ignore line: [GNU C17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)]
ignore line: [ compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0) GMP version 6.2.0 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.16.1-GMP]
ignore line: []
ignore line: [warning: GMP header version 6.2.0 differs from library version 6.2.1.]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Versions of loaded plugins:]
ignore line: [ annobin: Version ANNOBIN_VERSION]
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/include-fixed"]
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include"]
ignore line: [#include "..." search starts here:]
ignore line: [#include <...> search starts here:]
ignore line: [ /usr/lib/gcc/x86_64-redhat-linux/11/include]
ignore line: [ /usr/local/include]
ignore line: [ /usr/include]
ignore line: [End of search list.]
ignore line: [GNU C17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)]
ignore line: [ compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0) GMP version 6.2.0 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.16.1-GMP]
ignore line: []
ignore line: [warning: GMP header version 6.2.0 differs from library version 6.2.1.]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Versions of loaded plugins:]
ignore line: [ annobin: Version ANNOBIN_VERSION]
ignore line: [Compiler executable checksum: 7160720e5a5abd1221027be0477dc066]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o' '-c' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.']
ignore line: [Linking C executable cmTC_dd062]
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dd062.dir/link.txt --verbose=1]
ignore line: [/usr/bin/gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -v -rdynamic CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o -o cmTC_dd062 ]
ignore line: [Using built-in specs.]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-hardened-ld]
ignore line: [COLLECT_GCC=/usr/bin/gcc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper]
ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none]
ignore line: [OFFLOAD_TARGET_DEFAULT=1]
ignore line: [Target: x86_64-redhat-linux]
ignore line: [Configured with: ../configure --enable-bootstrap --enable-languages=c c++ fortran objc obj-c++ ada go d lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux]
ignore line: [Thread model: posix]
ignore line: [Supported LTO compression algorithms: zlib zstd]
ignore line: [gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC) ]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' '-v' '-rdynamic' '-o' 'cmTC_dd062' '-march=x86-64' '-pie' '-dumpdir' 'cmTC_dd062.']
link line: [ /usr/libexec/gcc/x86_64-redhat-linux/11/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccrXoup6.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_dd062 /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/11 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../.. -z relro --as-needed -z now --gc-sections CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o]
arg [/usr/libexec/gcc/x86_64-redhat-linux/11/collect2] ==> ignore
arg [-plugin] ==> ignore
arg [/usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so] ==> ignore
arg [-plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/ccrXoup6.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [--build-id] ==> ignore
arg [--no-add-needed] ==> ignore
arg [--eh-frame-hdr] ==> ignore
arg [--hash-style=gnu] ==> ignore
arg [-m] ==> ignore
arg [elf_x86_64] ==> ignore
arg [-export-dynamic] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
arg [-pie] ==> ignore
arg [-o] ==> ignore
arg [cmTC_dd062] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o] ==> ignore
arg [-L/usr/lib/gcc/x86_64-redhat-linux/11] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/11]
arg [-L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64]
arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
arg [-L/usr/lib/gcc/x86_64-redhat-linux/11/../../..] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../..]
arg [-zrelro] ==> ignore
arg [--as-needed] ==> ignore
arg [-znow] ==> ignore
arg [--gc-sections] ==> ignore
arg [CMakeFiles/cmTC_dd062.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lgcc] ==> lib [gcc]
arg [--push-state] ==> ignore
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--pop-state] ==> ignore
arg [-lc] ==> lib [c]
arg [-lgcc] ==> lib [gcc]
arg [--push-state] ==> ignore
arg [--as-needed] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [--pop-state] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o] ==> ignore
collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/11] ==> [/usr/lib/gcc/x86_64-redhat-linux/11]
collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64] ==> [/usr/lib64]
collapse library dir [/lib/../lib64] ==> [/lib64]
collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64]
collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../..] ==> [/usr/lib]
implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
implicit dirs: [/usr/lib/gcc/x86_64-redhat-linux/11;/usr/lib64;/lib64;/usr/lib]
implicit fwks: []
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_4a66c/fast && /usr/bin/gmake -f CMakeFiles/cmTC_4a66c.dir/build.make CMakeFiles/cmTC_4a66c.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -v -o CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp
Using built-in specs.
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1
Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1
COLLECT_GCC=/usr/bin/g++
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC)
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_4a66c.dir/'
/usr/libexec/gcc/x86_64-redhat-linux/11/cc1plus -quiet -v -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_4a66c.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -m64 -mtune=generic -march=x86-64 -g -grecord-gcc-switches -O2 -Wall -version -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fdata-sections -ffunction-sections -fPIE -iplugindir=/usr/lib/gcc/x86_64-redhat-linux/11/plugin -fplugin=annobin -o - |
as -v --gdwarf-4 --64 -o CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o
GNU assembler version 2.35.1 (x86_64-redhat-linux) using BFD version version 2.35.1-16.fc34
GNU C++17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)
compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0), GMP version 6.2.0, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.16.1-GMP
warning: GMP header version 6.2.0 differs from library version 6.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
annobin: Version ANNOBIN_VERSION
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux
/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward
/usr/lib/gcc/x86_64-redhat-linux/11/include
/usr/local/include
/usr/include
End of search list.
GNU C++17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)
compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0), GMP version 6.2.0, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.16.1-GMP
warning: GMP header version 6.2.0 differs from library version 6.2.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Versions of loaded plugins:
annobin: Version ANNOBIN_VERSION
Compiler executable checksum: 968e84be7fa2c740f38c69366fcf6905
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.'
Linking CXX executable cmTC_4a66c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4a66c.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -v -rdynamic CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_4a66c
Using built-in specs.
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1
Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1
Reading specs from /usr/lib/rpm/redhat/redhat-hardened-ld
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC)
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' '-v' '-rdynamic' '-o' 'cmTC_4a66c' '-shared-libgcc' '-march=x86-64' '-pie' '-dumpdir' 'cmTC_4a66c.'
/usr/libexec/gcc/x86_64-redhat-linux/11/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSRX8uW.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_4a66c /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/11 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../.. -z relro --as-needed -z now --gc-sections CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o
COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' '-v' '-rdynamic' '-o' 'cmTC_4a66c' '-shared-libgcc' '-march=x86-64' '-pie' '-dumpdir' 'cmTC_4a66c.'
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Parsed CXX implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11]
add: [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux]
add: [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward]
add: [/usr/lib/gcc/x86_64-redhat-linux/11/include]
add: [/usr/local/include]
add: [/usr/include]
end of search list found
collapse include dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11] ==> [/usr/include/c++/11]
collapse include dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux] ==> [/usr/include/c++/11/x86_64-redhat-linux]
collapse include dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward] ==> [/usr/include/c++/11/backward]
collapse include dir [/usr/lib/gcc/x86_64-redhat-linux/11/include] ==> [/usr/lib/gcc/x86_64-redhat-linux/11/include]
collapse include dir [/usr/local/include] ==> [/usr/local/include]
collapse include dir [/usr/include] ==> [/usr/include]
implicit include dirs: [/usr/include/c++/11;/usr/include/c++/11/x86_64-redhat-linux;/usr/include/c++/11/backward;/usr/lib/gcc/x86_64-redhat-linux/11/include;/usr/local/include;/usr/include]
Parsed CXX implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_4a66c/fast && /usr/bin/gmake -f CMakeFiles/cmTC_4a66c.dir/build.make CMakeFiles/cmTC_4a66c.dir/build]
ignore line: [gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp']
ignore line: [Building CXX object CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o]
ignore line: [/usr/bin/g++ -O2 -g -pipe -Wall -Wp -D_FORTIFY_SOURCE=2 -Wp -D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -v -o CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
ignore line: [Using built-in specs.]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1]
ignore line: [COLLECT_GCC=/usr/bin/g++]
ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none]
ignore line: [OFFLOAD_TARGET_DEFAULT=1]
ignore line: [Target: x86_64-redhat-linux]
ignore line: [Configured with: ../configure --enable-bootstrap --enable-languages=c c++ fortran objc obj-c++ ada go d lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux]
ignore line: [Thread model: posix]
ignore line: [Supported LTO compression algorithms: zlib zstd]
ignore line: [gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_4a66c.dir/']
ignore line: [ /usr/libexec/gcc/x86_64-redhat-linux/11/cc1plus -quiet -v -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_4a66c.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -m64 -mtune=generic -march=x86-64 -g -grecord-gcc-switches -O2 -Wall -version -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fdata-sections -ffunction-sections -fPIE -iplugindir=/usr/lib/gcc/x86_64-redhat-linux/11/plugin -fplugin=annobin -o - |]
ignore line: [ as -v --gdwarf-4 --64 -o CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o]
ignore line: [GNU assembler version 2.35.1 (x86_64-redhat-linux) using BFD version version 2.35.1-16.fc34]
ignore line: [GNU C++17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)]
ignore line: [ compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0) GMP version 6.2.0 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.16.1-GMP]
ignore line: []
ignore line: [warning: GMP header version 6.2.0 differs from library version 6.2.1.]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Versions of loaded plugins:]
ignore line: [ annobin: Version ANNOBIN_VERSION]
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/include-fixed"]
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/include"]
ignore line: [#include "..." search starts here:]
ignore line: [#include <...> search starts here:]
ignore line: [ /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11]
ignore line: [ /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/x86_64-redhat-linux]
ignore line: [ /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/backward]
ignore line: [ /usr/lib/gcc/x86_64-redhat-linux/11/include]
ignore line: [ /usr/local/include]
ignore line: [ /usr/include]
ignore line: [End of search list.]
ignore line: [GNU C++17 (GCC) version 11.0.0 20201223 (Red Hat 11.0.0-0) (x86_64-redhat-linux)]
ignore line: [ compiled by GNU C version 11.0.0 20201223 (Red Hat 11.0.0-0) GMP version 6.2.0 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.16.1-GMP]
ignore line: []
ignore line: [warning: GMP header version 6.2.0 differs from library version 6.2.1.]
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
ignore line: [Versions of loaded plugins:]
ignore line: [ annobin: Version ANNOBIN_VERSION]
ignore line: [Compiler executable checksum: 968e84be7fa2c740f38c69366fcf6905]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-v' '-o' 'CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-march=x86-64' '-dumpdir' 'CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.']
ignore line: [Linking CXX executable cmTC_4a66c]
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4a66c.dir/link.txt --verbose=1]
ignore line: [/usr/bin/g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -v -rdynamic CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_4a66c ]
ignore line: [Using built-in specs.]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-hardened-cc1]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-annobin-cc1]
ignore line: [Reading specs from /usr/lib/rpm/redhat/redhat-hardened-ld]
ignore line: [COLLECT_GCC=/usr/bin/g++]
ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper]
ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none]
ignore line: [OFFLOAD_TARGET_DEFAULT=1]
ignore line: [Target: x86_64-redhat-linux]
ignore line: [Configured with: ../configure --enable-bootstrap --enable-languages=c c++ fortran objc obj-c++ ada go d lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux]
ignore line: [Thread model: posix]
ignore line: [Supported LTO compression algorithms: zlib zstd]
ignore line: [gcc version 11.0.0 20201223 (Red Hat 11.0.0-0) (GCC) ]
ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../:/lib/:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS='-O2' '-g' '-pipe' '-Wall' '-fstack-protector-strong' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' '-m64' '-mtune=generic' '-fasynchronous-unwind-tables' '-fstack-clash-protection' '-fcf-protection=full' '-fdata-sections' '-ffunction-sections' '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld' '-v' '-rdynamic' '-o' 'cmTC_4a66c' '-shared-libgcc' '-march=x86-64' '-pie' '-dumpdir' 'cmTC_4a66c.']
link line: [ /usr/libexec/gcc/x86_64-redhat-linux/11/collect2 -plugin /usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper -plugin-opt=-fresolution=/tmp/ccSRX8uW.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_4a66c /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/11 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/11/../../.. -z relro --as-needed -z now --gc-sections CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o]
arg [/usr/libexec/gcc/x86_64-redhat-linux/11/collect2] ==> ignore
arg [-plugin] ==> ignore
arg [/usr/libexec/gcc/x86_64-redhat-linux/11/liblto_plugin.so] ==> ignore
arg [-plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/ccSRX8uW.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lc] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [--build-id] ==> ignore
arg [--no-add-needed] ==> ignore
arg [--eh-frame-hdr] ==> ignore
arg [--hash-style=gnu] ==> ignore
arg [-m] ==> ignore
arg [elf_x86_64] ==> ignore
arg [-export-dynamic] ==> ignore
arg [-dynamic-linker] ==> ignore
arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
arg [-pie] ==> ignore
arg [-o] ==> ignore
arg [cmTC_4a66c] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crti.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/crtbeginS.o] ==> ignore
arg [-L/usr/lib/gcc/x86_64-redhat-linux/11] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/11]
arg [-L/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64]
arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
arg [-L/usr/lib/gcc/x86_64-redhat-linux/11/../../..] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../..]
arg [-zrelro] ==> ignore
arg [--as-needed] ==> ignore
arg [-znow] ==> ignore
arg [--gc-sections] ==> ignore
arg [CMakeFiles/cmTC_4a66c.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
arg [-lstdc++] ==> lib [stdc++]
arg [-lm] ==> lib [m]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lc] ==> lib [c]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [/usr/lib/gcc/x86_64-redhat-linux/11/crtendS.o] ==> ignore
arg [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crtn.o] ==> ignore
collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/11] ==> [/usr/lib/gcc/x86_64-redhat-linux/11]
collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64] ==> [/usr/lib64]
collapse library dir [/lib/../lib64] ==> [/lib64]
collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64]
collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/11/../../..] ==> [/usr/lib]
implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
implicit dirs: [/usr/lib/gcc/x86_64-redhat-linux/11;/usr/lib64;/lib64;/usr/lib]
implicit fwks: []
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_FALLTHROUGH_WARNING succeeded with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_26456/fast && /usr/bin/gmake -f CMakeFiles/cmTC_26456.dir/build.make CMakeFiles/cmTC_26456.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_26456.dir/src.cxx.o
/usr/bin/g++ -DCOMPILER_SUPPORTS_FALLTHROUGH_WARNING -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wimplicit-fallthrough -o CMakeFiles/cmTC_26456.dir/src.cxx.o -c /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_26456
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_26456.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -rdynamic CMakeFiles/cmTC_26456.dir/src.cxx.o -o cmTC_26456
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING succeeded with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_9c454/fast && /usr/bin/gmake -f CMakeFiles/cmTC_9c454.dir/build.make CMakeFiles/cmTC_9c454.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_9c454.dir/src.cxx.o
/usr/bin/g++ -DCOMPILER_SUPPORTS_EXTRA_SEMI_WARNING -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wimplicit-fallthrough -Wextra-semi -o CMakeFiles/cmTC_9c454.dir/src.cxx.o -c /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_9c454
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9c454.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wimplicit-fallthrough -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -rdynamic CMakeFiles/cmTC_9c454.dir/src.cxx.o -o cmTC_9c454
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_PIC succeeded with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_8d67d/fast && /usr/bin/gmake -f CMakeFiles/cmTC_8d67d.dir/build.make CMakeFiles/cmTC_8d67d.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8d67d.dir/src.cxx.o
/usr/bin/g++ -DCOMPILER_SUPPORTS_PIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wimplicit-fallthrough -fPIC -o CMakeFiles/cmTC_8d67d.dir/src.cxx.o -c /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_8d67d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8d67d.dir/link.txt --verbose=1
/usr/bin/g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -Wimplicit-fallthrough -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-sections -rdynamic CMakeFiles/cmTC_8d67d.dir/src.cxx.o -o cmTC_8d67d
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; }
I do no have an RPM based install, so I cannot verify this myself. Is the version of SPIRV-Tools that you are using the same one that appears in the DEPS file for the 2020.4 shaderc checkout?
This has nothing to do with rpm.
The beginning of your bug report begins with an rpm command indicating what version of libraries you are using, which is why I was asking, since I initially was suspecting that something had changed in SPIRV-Tools since v2020.4 of shaderc had been cut.
Looking at the beginning of the cmake call in your bug report, specifically:
CMake Error at third_party/CMakeLists.txt:62 (message): SPIRV-Tools was not found - required for compilation
It appears that SPIRV-Tools is not being found at all by CMake for you.
This would suggest that either you haven't used ./utils/git-sync-deps to pull SPIRV-Tools into third_party/ in the checkout or if you are using a prebuilt version of SPIRV-Tools, something like a directory path hasn't been specified correctly.
Using HEAD checkout + ./utils/git-sync-deps in shaderc and also v2020.4 checkout, I am not able to reproduce a build issue on Linux locally.
As Ryan says, this appears to be an issue finding SPIRV-Tools. Shaderc attempts to find SPIRV-Tools in SHADERC_SPIRV_TOOLS_DIR which if it is set incorrect won't work. You'll need to pass the correct flags to CMake to point that at your spirv-tools folder.
No this is not SPIRV-Tools issue. I'm using git tagged tar ball which has only two files in third_party and no source code of SPIRV-Tools in that directory. I have installed SPIRV-Tools in build env.
$ rpm -ql spirv-tools
/usr/bin/spirv-as
/usr/bin/spirv-cfg
/usr/bin/spirv-dis
/usr/bin/spirv-lesspipe.sh
/usr/bin/spirv-link
/usr/bin/spirv-opt
/usr/bin/spirv-reduce
/usr/bin/spirv-val
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/cae2d7709a4e420a39414041dea5eb97d76038
/usr/lib/.build-id/13
/usr/lib/.build-id/13/e6c6ef6667e94be6c0535abcd4c12cd82dfcac
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/22f88d73cba2a44a018d081dad9223db92e86a
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/c4a1835257fd55f5b1da04c5603611849196d5
/usr/lib/.build-id/68
/usr/lib/.build-id/68/49cb59877dcc38878a37bd3fe69d35436a05a0
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/e7b83d3fefb246fb1a62b1fed71ec635f0c7b3
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/af0afa153782b89e28fc98eb1b3e8cfb8344fc
After remove completly third_party/ now I have anothe issue.
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING
-- Performing Test COMPILER_SUPPORTS_EXTRA_SEMI_WARNING - Success
CMake Error at CMakeLists.txt:105 (add_subdirectory):
add_subdirectory given source "third_party" which is not an existing
directory.
-- Performing Test COMPILER_SUPPORTS_PIC
-- Performing Test COMPILER_SUPPORTS_PIC - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring incomplete, errors occurred!
See also "/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeOutput.log".
See also "/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeError.log".
In CMakeError.log I found:
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_07a3d/fast && /usr/bin/gmake -f CMakeFiles/cmTC_07a3d.dir/build.make CMakeFiles/cmTC_07a3d.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_07a3d.dir/CheckFunctionExists.c.o
/usr/bin/gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/r
pm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdat
a-sections -ffunction-sections -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_07a3d.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_07a3d
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_07a3d.dir/link.txt --verbose=1
/usr/bin/gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm
/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-
sections -ffunction-sections -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--gc-section
s -rdynamic CMakeFiles/cmTC_07a3d.dir/CheckFunctionExists.c.o -o cmTC_07a3d -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_07a3d.dir/build.make:106: cmTC_07a3d] Error 1
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/shaderc-2020.4/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:140: cmTC_07a3d/fast] Error 2
It looks like a typo because in glibs there is no libpthreads. It is libpthread
$ rpm -ql glibc | grep libpt
/lib64/libpthread-2.32.9000.so
/lib64/libpthread.so.0
If you remove the third_party/ folder, things won't work. There is a required CMakeFile in there that you've deleted. You have to set the flags in CMake to tell Shaderc where SPIRV-Tools is. If you don't do that, it can't find it, it doesn't matter how/where it is on your system.
As far as I can tell, we don't set lpthreads in our CMakefile. Is that coming from your environment?
The source code in third_party is checked out by the script utils/git-sync-deps that's what our bots used to checkout the required dependencies. The third_party cmake file defaults to using those locations when looking for things, but as I mentioned above, those locations can be overridden if you want to try using something else.
I've added patches from fedora which adapts source tree to be able use system installed SPIRV-Tools. You can find those adaptations in https://src.fedoraproject.org/rpms/shaderc Some of the adaprations are in %prep section https://src.fedoraproject.org/rpms/shaderc/blob/master/f/shaderc.spec#_73
Please remove using own copy in souce tree because this is standalone project which provides pkgconfig file which allow detect those resources and use them
$ rpm -ql spirv-tools-devel | grep pkg
/usr/lib64/pkgconfig/SPIRV-Tools-shared.pc
/usr/lib64/pkgconfig/SPIRV-Tools.pc
Way how you are using SPIRV-Tools does not make any sense and is causing only confusions. Using pkgconfig is possible to detect and demand exaxt and/or minimum version of that resources in build env.
At ehe moment I have almost building shaderc exacept linking.
The way this is being built may not make sense for Fedora, but it does make sense for how other downstream projects use Shaderc. You don't have to have a checked out copy of SPIRV-Tools in the source tree, but you then have to set the right cmake variables. I don't see how this works at all if you erase the third_party folder as we use that to find SPIRV-Tools.
If you're going to delete our build files and inject your own, there isn't much we can do to help you. You'll have to figure out why the fedora scripts aren't working.
If you leave third_party you can try to set the cmake flags I mentioned above to point at your spirv-tools folders.
I've removed remove third_party/ and commented fedora patch and still cannot figure out how to build shader.
in third_party/CMakeLists.txt seems is implemented to build unconditionally
44 if (NOT TARGET SPIRV-Tools)
45 # Check SPIRV-Tools before glslang so that it is linked into glslang.
46 # we control optimizations via glslang API calls directly.
47 if (IS_DIRECTORY ${SHADERC_SPIRV_TOOLS_DIR})
48 if ("${SHADERC_SKIP_TESTS}")
49 # Also skip building tests in SPIRV-Tools.
50 set(SPIRV_SKIP_TESTS ON CACHE BOOL "Skip building SPIRV-Tools tests")
51 elseif(NOT "${SPIRV_SKIP_TESTS}")
52 # SPIRV-Tools requires effcee and re2 to build tests.
53 # re2 tests take a long time and do not add much value, since re2 is a
54 # dependency of a dependency, so not running them.
55 set(RE2_BUILD_TESTING OFF CACHE STRING "Run RE2 Tests")
56 add_subdirectory(${SHADERC_RE2_DIR} re2)
57 add_subdirectory(${SHADERC_EFFCEE_DIR} effcee)
58 endif()
59 add_subdirectory(${SHADERC_SPIRV_TOOLS_DIR} spirv-tools)
60 endif()
61 if (NOT TARGET SPIRV-Tools)
62 message(FATAL_ERROR "SPIRV-Tools was not found - required for compilation")
63 endif()
64 endif()
I don't need to build SPIRV-Tools because I have it alredy build and installed.
Per @dj2 comment before, the current build structure of shaderc is based around doing full source builds of dependencies, since a) shaderc tends to be tightly coupled to specific versions of libraries like glslang and SPIRV-Tools, so whatever combination of system libraries that are available are likely to be untested/incompatible, and b) the downstream dependencies that we work with also do this type of build.
Thus the build expects you to either checkout the dependency sources into third_party/ or point to where they are located in a larger project.
To my knowledge, we had no involvement in the Fedora patches that you referenced for supporting pre-built dependencies and they were never upstreamed, so I would recommend contacting whoever maintains them for support.
Adding support for pre-built dependencies would require someone to take ownership of it and champion it, i.e. implement a PR and have it reviewed, and possibly maintain it.
SPIRV-Tools is built if CMake doesn't have the SPIRV-Tools target available. You can always create your own findSpirvTools cmake script which exports the SPIRV-Tools target and sets the needed SPIRV CMake variables. That way the third_party cmake file will see the target and skip the entire block.
Any progress on detaching shaderc source tree fro using local copy of the SPIRV-Tools in third_party/ ?
Patch from Fedora
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,20 +112,10 @@ endif(MSVC)
# Configure subdirectories.
# We depend on these for later projects, so they should come first.
-add_subdirectory(third_party)
add_subdirectory(libshaderc_util)
add_subdirectory(libshaderc)
add_subdirectory(glslc)
-if(${SHADERC_ENABLE_EXAMPLES})
- add_subdirectory(examples)
-endif()
-
-add_custom_target(build-version
- ${PYTHON_EXECUTABLE}
- ${CMAKE_CURRENT_SOURCE_DIR}/utils/update_build_version.py
- ${shaderc_SOURCE_DIR} ${spirv-tools_SOURCE_DIR} ${glslang_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/build-version.inc
- COMMENT "Update build-version.inc in the Shaderc build directory (if necessary).")
function(define_pkg_config_file NAME LIBS)
add_custom_target(${NAME}-pkg-config ALL
gentle ping .. 🤔
Closing. Looks like 2023.7 is OK. Thank you 👍