* Package: app-containers/apptainer-1.0.2 * Repository: gentoo * Maintainer: marecki@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux network suid 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.17.11-gentoo-dist * Checking for suitable kernel configuration options ... [ ok ] >>> Unpacking source... >>> Unpacking apptainer-1.0.2.tar.gz to /var/tmp/portage/app-containers/apptainer-1.0.2/work >>> Source unpacked in /var/tmp/portage/app-containers/apptainer-1.0.2/work >>> Preparing source in /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2 ... Configuring for project `apptainer' with languages: C, Golang => running pre-basechecks project specific checks ... => running base system checks ... checking: host C compiler... x86_64-pc-linux-gnu-gcc checking: host C++ compiler... x86_64-pc-linux-gnu-g++ checking: host Go compiler (at least version 1.16.12)... /usr/bin/go checking: host C compiler option -Wall... no checking: host C compiler option -Werror... no checking: host C compiler option -Wfatal-errors... no checking: host C compiler option -Wno-unknown-warning-option... no checking: host C compiler option -Wstrict-prototypes... no checking: host C compiler option -Wpointer-arith... no checking: host C compiler option -Wbad-function-cast... no checking: host C compiler option -Woverlength-strings... no checking: host C compiler option -Wframe-larger-than=2047... no checking: host C compiler option -Wno-sign-compare... no checking: host C compiler option -Wclobbered... no checking: host C compiler option -Wempty-body... no checking: host C compiler option -Wmissing-parameter-type... no checking: host C compiler option -Wtype-limits... no checking: host C compiler option -Wunused-parameter... no checking: host C compiler option -Wunused-but-set-parameter... no checking: host C compiler option -Wno-discarded-qualifiers... no checking: host C compiler option -Wno-incompatible-pointer-types... no checking: host C compiler option -pipe... no checking: host C compiler option -fmessage-length=0... no checking: host C compiler option -fPIC... no checking: host `ar' path... /usr/x86_64-pc-linux-gnu/bin/ar checking: host `ld' path... /usr/x86_64-pc-linux-gnu/bin/ld checking: host `ranlib' path... /usr/x86_64-pc-linux-gnu/bin/ranlib checking: host `objcopy' path... /usr/x86_64-pc-linux-gnu/bin/objcopy checking: target C compiler... x86_64-pc-linux-gnu-gcc checking: target C++ compiler... x86_64-pc-linux-gnu-g++ checking: target `ar' path... /usr/x86_64-pc-linux-gnu/bin/ar checking: target `ld' path... /usr/x86_64-pc-linux-gnu/bin/ld checking: target `ranlib' path... /usr/x86_64-pc-linux-gnu/bin/ranlib checking: target `objcopy' path... /usr/x86_64-pc-linux-gnu/bin/objcopy checking: host compiles static binaries... yes checking: target compiles static binaries... yes checking: host os type... unix checking: host architecture... x86_64 checking: target architecture... x86_64 checking: host architecture word size... 64 checking: target architecture word size... 64 checking: project version... 1.0.2 checking: project short version... 1.0.2 => running post-basechecks project specific checks ... checking: namespace: CLONE_NEWPID... yes checking: namespace: CLONE_FS... yes checking: namespace: CLONE_NEWNS... yes checking: namespace: CLONE_NEWUSER... yes checking: namespace: CLONE_NEWIPC... yes checking: namespace: CLONE_NEWNET... yes checking: namespace: CLONE_NEWUTS... yes checking: namespace: CLONE_NEWCGROUP... yes checking: feature: NO_NEW_PRIVS... yes checking: feature: MS_SLAVE... yes checking: feature: MS_REC... yes checking: feature: MS_PRIVATE... yes checking: user capabilities... yes checking: header linux/securebits.h... yes checking: header linux/capability.h... yes checking: libseccomp+headers... yes Finding paths to external executables. These paths are written into apptainer.conf and can be overridden there. checking: cryptsetup... yes (/sbin/cryptsetup) checking: go... yes (/usr/bin/go) checking: ldconfig... yes (/sbin/ldconfig) checking: mksquashfs... yes (/usr/bin/mksquashfs) checking: nvidia-container-cli... no checking: unsquashfs... yes (/usr/bin/unsquashfs) => generating fragments ... => building Makefile ... => generating apptainer.spec ... => project apptainer setup with : - host arch: x86_64 - host wordsize: 64-bit - host C compiler: x86_64-pc-linux-gnu-gcc - host Go compiler: /usr/bin/go - host system: unix --- - target arch: x86_64 - target wordsize: 64-bit - target C compiler: x86_64-pc-linux-gnu-gcc --- - config profile: release --- - SUID install: yes - Network plugins: yes --- - verbose: yes --- - cryptsetup: /sbin/cryptsetup --- - version: 1.0.2 => /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir/Makefile ready, try: $ cd /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir $ make >>> Source configured. >>> Compiling source in /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2 ... make -j4 -C builddir make: Entering directory '/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir' GEN GO DEP /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir/starter.d /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/makeit/gengodep -v3 "/usr/bin/go" "starter_SOURCE" "containers_image_openpgp sylog oci_engine apptainer_engine fakeroot_engine apparmor selinux seccomp" "/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir/starter.d" "/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/cmd/starter" GEN GO DEP /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir/singularity.d /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/makeit/gengodep -v3 "/usr/bin/go" "apptainer_SOURCE" "containers_image_openpgp sylog oci_engine apptainer_engine fakeroot_engine apparmor selinux seccomp" "/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir/singularity.d" "/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/cmd/apptainer" GEN /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/scripts/go-generate /usr/bin/go run -mod=vendor /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/scripts/expand-env.go < /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/scripts/go-generate.in > /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/scripts/go-generate chmod +x /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/scripts/go-generate rm -f /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/internal/pkg/buildcfg/config.go cd /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/internal/pkg/buildcfg && /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/scripts/go-generate GO apptainer [+] GO_TAGS "containers_image_openpgp sylog oci_engine apptainer_engine fakeroot_engine apparmor selinux seccomp" /usr/bin/go build -mod=vendor -buildmode=pie -tags "containers_image_openpgp sylog oci_engine apptainer_engine fakeroot_engine apparmor selinux seccomp" -ldflags="-B 0x`head -c20 /dev/urandom|od -An -tx1|tr -d ' \n'`" -gcflags=github.com/apptainer/apptainer/...="-trimpath /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2=>github.com/apptainer/apptainer@v0.0.0" -asmflags=github.com/apptainer/apptainer/...="-trimpath /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2=>github.com/apptainer/apptainer@v0.0.0" \ -o ./apptainer /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/cmd/apptainer # runtime/cgo : error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors make: *** [Makefile:183: apptainer] Error 2 make: Leaving directory '/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir' * ERROR: app-containers/apptainer-1.0.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-containers/apptainer-1.0.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-containers/apptainer-1.0.2::gentoo'`. * The complete build log is located at '/var/log/portage/app-containers:apptainer-1.0.2:20220528-083058.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-containers/apptainer-1.0.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-containers/apptainer-1.0.2/temp/environment'. * Working directory: '/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2' * S: '/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2'