* Package: app-crypt/yubihsm-shell-2.4.0:0 * Repository: gentoo * Maintainer: zx2c4@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking yubihsm-shell-2.4.0.tar.gz to /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work >>> Source unpacked in /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work >>> Preparing source in /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0" * Build directory (BUILD_DIR): "/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build" * Applying yubihsm-shell-2.4.0-remove-hardcoded-compiler-opts.patch ... [ ok ] * Hardcoded definition(s) removed in CMakeLists.txt: * set (CMAKE_BUILD_TYPE Release) * set (CMAKE_BUILD_TYPE Debug) >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0" * Build directory (BUILD_DIR): "/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build" cmake -C /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build/gentoo_toolchain.cmake /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0 loading initial cache file /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build/gentoo_common_config.cmake -- The C compiler identification is GNU 12.2.1 -- The CXX compiler identification is GNU 12.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-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/x86_64-pc-linux-gnu-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_STACK_PROTECTOR_ALL -- Performing Test HAVE_STACK_PROTECTOR_ALL - Success -- -fstack-protector-all support detected -- Performing Test HAVE_NO_IMPLICIT_FALLTHROUGH -- Performing Test HAVE_NO_IMPLICIT_FALLTHROUGH - Success -- not win32 -- Looking for memset_s -- Looking for memset_s - not found -- Looking for explicit_bzero -- Looking for explicit_bzero - found -- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "1.8.1") -- Checking for one of the modules 'libcrypto' -- Checking for one of the modules 'libedit' -- Checking for one of the modules 'libcurl' -- Checking for one of the modules 'libusb-1.0' LIBCRYPTO_VERSION: 3.0.8 CMake Warning at pkcs11/tests/CMakeLists.txt:203 (message): PKCS11TEST_PATH not defined, assuming that pkcs11test is in PATH -- Using PKCS11_TESTER: /pkcs11test -- Checking for one of the modules 'libpcsclite' /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/yubihsm-auth/cmdline.c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/yhwrap/cmdline.c Build summary: Project name: yubihsm-shell Version: 2.4.0 Host type: Linux Path prefix: Compiler: /usr/bin/x86_64-pc-linux-gnu-gcc Compiler ID: GNU Compiler version: 12.2.1 CMake version: 3.26.3 CFLAGS: -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers CPPFLAGS: -O2 -pipe -march=native -fno-diagnostics-color Warnings: Build type: RelWithDebInfo Install prefix: /usr Install targets Libraries /usr/lib64 Includes /usr/include Binaries /usr/bin Manuals /usr/share/man Pkg-config /usr/share/pkgconfig -- <<< Gentoo configuration >>> Build type RelWithDebInfo Install path /usr Compiler flags: C -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers C++ -O2 -pipe -march=native -fno-diagnostics-color Linker flags: Executable -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pie -Wl,-z,noexecstack -Wl,-z,relro,-z,now Module -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 Shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -pie -Wl,-z,noexecstack -Wl,-z,relro,-z,now -- Configuring done (0.8s) -- Generating done (0.0s) -- Build files have been written to: /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build >>> Source configured. >>> Compiling source in /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0" * Build directory (BUILD_DIR): "/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build" ninja -v -j4 -l0 [1/159] /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o -MF lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/aes_cmac/aes.c FAILED: lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o -MF lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/aes_cmac/aes.c : error: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition [2/159] /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o -MF lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/aes_cmac/aes_cmac.c FAILED: lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o -MF lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/aes_cmac/aes_cmac.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/aes_cmac/aes_cmac.c : error: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition [3/159] /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o -MF lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/common/hash.c FAILED: lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o -MF lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/common/hash.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/common/hash.c : error: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition [4/159] /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o -MF lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/common/pkcs5.c FAILED: lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o /usr/bin/x86_64-pc-linux-gnu-gcc -DDEFAULT_CONNECTOR_URL=\"http://localhost:12345\" -DHAVE_EXPLICIT_BZERO -DOPENSSL_API_COMPAT=0x10000000L -DSOVERSION=\"2\" -DVERSION=\"2.4.0\" -DYKHSMAUTH_ENABLED=\"1\" -D_FORTIFY_SOURCE=2 -Dyubihsm_EXPORTS -I/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/lib -O2 -pipe -march=native -fno-diagnostics-color -flto -Wno-missing-braces -Wno-missing-field-initializers -std=gnu11 -fPIC -fno-diagnostics-color -Wall -Wextra -Wformat -Wformat-nonliteral -Wformat-security -Wshadow -Wcast-qual -Wmissing-prototypes -Wbad-function-cast -pedantic -pedantic-errors -fpie -fpic -fstack-protector-all -Wno-implicit-fallthrough -MD -MT lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o -MF lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o.d -o lib/CMakeFiles/yubihsm.dir/__/common/pkcs5.c.o -c /var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0/common/pkcs5.c : error: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition ninja: build stopped: subcommand failed. * ERROR: app-crypt/yubihsm-shell-2.4.0::gentoo failed (compile phase): * ninja -v -j4 -l0 failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 2204: Called cmake_src_compile * environment, line 930: Called cmake_build * environment, line 899: Called eninja * environment, line 1354: Called die * The specific snippet of code: * "$@" || die -n "${*} failed" * * If you need support, post the output of `emerge --info '=app-crypt/yubihsm-shell-2.4.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-crypt/yubihsm-shell-2.4.0::gentoo'`. * The complete build log is located at '/var/log/portage/app-crypt:yubihsm-shell-2.4.0:20230416-195835.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/temp/environment'. * Working directory: '/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0_build' * S: '/var/tmp/portage/app-crypt/yubihsm-shell-2.4.0/work/yubihsm-shell-2.4.0'