* Package: dev-libs/roct-thunk-interface-3.1.0 * Repository: gentoo * Maintainer: candrews@gentoo.org gentoo@holzke.net,proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.5.13-gentoo * Checking for suitable kernel configuration options... * CONFIG_HSA_AMD: is not set when it should be. * CONFIG_HMM_MIRROR: is not set when it should be. * CONFIG_ZONE_DEVICE: is not set when it should be. * CONFIG_DRM_AMDGPU: is not set when it should be. * CONFIG_DRM_AMDGPU_USERPTR: is not set when it should be. * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems. >>> Unpacking source... >>> Unpacking roct-thunk-interface-3.1.0.tar.gz to /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work >>> Source unpacked in /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work >>> Preparing source in /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0 ... * Working in BUILD_DIR: "/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build" * Hardcoded definition(s) removed in CMakeLists.txt: * set ( CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation di >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0 ... * Working in BUILD_DIR: "/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build" cmake -C /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCPACK_PACKAGING_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build/gentoo_toolchain.cmake /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0 loading initial cache file /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build/gentoo_common_config.cmake -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/x86_64-gentoo-linux-musl-gcc -- Check for working C compiler: /usr/bin/x86_64-gentoo-linux-musl-gcc - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/x86_64-gentoo-linux-musl-g++ -- Check for working CXX compiler: /usr/bin/x86_64-gentoo-linux-musl-g++ - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done fatal: not a git repository (or any parent up to mount point /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). -- Found PkgConfig: x86_64-gentoo-linux-musl-pkg-config (found version "1.6.3") -- Checking for module 'libpci' -- Found libpci, version 3.6.4 -- Detected distribution: gentoo: -- <<< Gentoo configuration >>> Build type Gentoo Install path /usr Compiler flags: C -O2 -pipe -march=native C++ -O2 -pipe -march=native Linker flags: Executable -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 Module -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 Shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -- Configuring done -- Generating done -- Build files have been written to: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0 ... * Working in BUILD_DIR: "/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build" ninja -v -j1 -l0 build-dev [1/1] cd /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build/hsakmt-roct-dev && /usr/bin/cmake -DSOURCE_DIR="/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0" -DCMAKE_INSTALL_PREFIX="/usr" -DCPACK_RPM_PACKAGE_REQUIRES="hsakmt-roct" -DCPACK_PACKAGING_INSTALL_PREFIX="/usr" -DVERSION="3.1.0" -DHSAKMT_BIN_NAME="hsakmt" CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases. -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build/hsakmt-roct-dev >>> Source compiled. >>> Test phase [not enabled]: dev-libs/roct-thunk-interface-3.1.0 >>> Install dev-libs/roct-thunk-interface-3.1.0 into /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/image * Working in BUILD_DIR: "/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build" [0/19] Building C object CMakeFiles/hsakmt.dir/src/debug.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/events.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/fmm.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/globals.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/libhsakmt.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/memory.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/openclose.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/perfctr.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/pmc_table.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/queues.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/time.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/topology.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/rbtree.c.o [0/19] Building C object CMakeFiles/hsakmt.dir/src/version.c.o [1/19] Building C object CMakeFiles/hsakmt.dir/src/debug.c.o FAILED: CMakeFiles/hsakmt.dir/src/debug.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/debug.c.o -MF CMakeFiles/hsakmt.dir/src/debug.c.o.d -o CMakeFiles/hsakmt.dir/src/debug.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/debug.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/debug.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [2/19] Building C object CMakeFiles/hsakmt.dir/src/events.c.o FAILED: CMakeFiles/hsakmt.dir/src/events.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/events.c.o -MF CMakeFiles/hsakmt.dir/src/events.c.o.d -o CMakeFiles/hsakmt.dir/src/events.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/events.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/events.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [3/19] Building C object CMakeFiles/hsakmt.dir/src/libhsakmt.c.o FAILED: CMakeFiles/hsakmt.dir/src/libhsakmt.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/libhsakmt.c.o -MF CMakeFiles/hsakmt.dir/src/libhsakmt.c.o.d -o CMakeFiles/hsakmt.dir/src/libhsakmt.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.c:5: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [4/19] Building C object CMakeFiles/hsakmt.dir/src/memory.c.o FAILED: CMakeFiles/hsakmt.dir/src/memory.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/memory.c.o -MF CMakeFiles/hsakmt.dir/src/memory.c.o.d -o CMakeFiles/hsakmt.dir/src/memory.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/memory.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/memory.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [5/19] Building C object CMakeFiles/hsakmt.dir/src/globals.c.o FAILED: CMakeFiles/hsakmt.dir/src/globals.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/globals.c.o -MF CMakeFiles/hsakmt.dir/src/globals.c.o.d -o CMakeFiles/hsakmt.dir/src/globals.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/globals.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/globals.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/globals.c:35:5: error: expected identifier or ‘(’ before numeric constant 35 | int PAGE_SIZE; | ^~~~~~~~~ [6/19] Building C object CMakeFiles/hsakmt.dir/src/time.c.o FAILED: CMakeFiles/hsakmt.dir/src/time.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/time.c.o -MF CMakeFiles/hsakmt.dir/src/time.c.o.d -o CMakeFiles/hsakmt.dir/src/time.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/time.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/time.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [7/19] Building C object CMakeFiles/hsakmt.dir/src/openclose.c.o FAILED: CMakeFiles/hsakmt.dir/src/openclose.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/openclose.c.o -MF CMakeFiles/hsakmt.dir/src/openclose.c.o.d -o CMakeFiles/hsakmt.dir/src/openclose.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/openclose.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/openclose.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/openclose.c: In function ‘init_page_size’: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/openclose.c:111:12: error: lvalue required as left operand of assignment 111 | PAGE_SIZE = sysconf(_SC_PAGESIZE); | ^ [8/19] Building C object CMakeFiles/hsakmt.dir/src/version.c.o FAILED: CMakeFiles/hsakmt.dir/src/version.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/version.c.o -MF CMakeFiles/hsakmt.dir/src/version.c.o.d -o CMakeFiles/hsakmt.dir/src/version.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/version.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/version.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [9/19] Building C object CMakeFiles/hsakmt.dir/src/pmc_table.c.o FAILED: CMakeFiles/hsakmt.dir/src/pmc_table.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/pmc_table.c.o -MF CMakeFiles/hsakmt.dir/src/pmc_table.c.o.d -o CMakeFiles/hsakmt.dir/src/pmc_table.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/pmc_table.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/pmc_table.c:31: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [10/19] Building C object CMakeFiles/hsakmt.dir/src/fmm.c.o FAILED: CMakeFiles/hsakmt.dir/src/fmm.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/fmm.c.o -MF CMakeFiles/hsakmt.dir/src/fmm.c.o.d -o CMakeFiles/hsakmt.dir/src/fmm.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/fmm.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/fmm.c:28: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [11/19] Building C object CMakeFiles/hsakmt.dir/src/queues.c.o FAILED: CMakeFiles/hsakmt.dir/src/queues.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/queues.c.o -MF CMakeFiles/hsakmt.dir/src/queues.c.o.d -o CMakeFiles/hsakmt.dir/src/queues.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/queues.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/queues.c:26: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [12/19] Building C object CMakeFiles/hsakmt.dir/src/topology.c.o FAILED: CMakeFiles/hsakmt.dir/src/topology.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/topology.c.o -MF CMakeFiles/hsakmt.dir/src/topology.c.o.d -o CMakeFiles/hsakmt.dir/src/topology.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/topology.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/topology.c:38: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/topology.c: In function ‘topology_create_temp_cpu_cache_list’: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/topology.c:1189:36: error: ‘MAXNAMLEN’ undeclared (first use in this function) 1189 | const uint32_t MAXPATHSIZE = 29 + MAXNAMLEN + (MAXNAMLEN + 6); | ^~~~~~~~~ /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/topology.c:1189:36: note: each undeclared identifier is reported only once for each function it appears in [13/19] Building C object CMakeFiles/hsakmt.dir/src/perfctr.c.o FAILED: CMakeFiles/hsakmt.dir/src/perfctr.c.o /usr/bin/x86_64-gentoo-linux-musl-gcc -Dhsakmt_EXPORTS -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/include -I/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src -DNDEBUG -O2 -pipe -march=native -fPIC -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden -Wlogical-op -g -MD -MT CMakeFiles/hsakmt.dir/src/perfctr.c.o -MF CMakeFiles/hsakmt.dir/src/perfctr.c.o.d -o CMakeFiles/hsakmt.dir/src/perfctr.c.o -c /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/perfctr.c In file included from /usr/include/limits.h:40, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:32, from /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/perfctr.c:31: /var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0/src/libhsakmt.h:57:12: error: expected identifier or ‘(’ before numeric constant 57 | extern int PAGE_SIZE; | ^~~~~~~~~ [14/19] Building C object CMakeFiles/hsakmt.dir/src/rbtree.c.o ninja: build stopped: subcommand failed. * ERROR: dev-libs/roct-thunk-interface-3.1.0::gentoo failed (install phase): * died running ninja install * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 2528: Called cmake_src_install 'install-dev' * environment, line 1042: Called die * The specific snippet of code: * DESTDIR="${D}" ${CMAKE_MAKEFILE_GENERATOR} install "$@" || die "died running ${CMAKE_MAKEFILE_GENERATOR} install"; * * If you need support, post the output of `emerge --info '=dev-libs/roct-thunk-interface-3.1.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/roct-thunk-interface-3.1.0::gentoo'`. * The complete build log is located at '/var/log/portage/dev-libs:roct-thunk-interface-3.1.0:20200330-111638.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/roct-thunk-interface-3.1.0_build' * S: '/var/tmp/portage/dev-libs/roct-thunk-interface-3.1.0/work/ROCT-Thunk-Interface-roc-3.1.0'