https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-process/criu-3.14-r2 fails to compile. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Created attachment 662056 [details] build.log build log and emerge --info
Possible context of error(s): x86_64-pc-linux-gnu-ld: cannot find -lgcov
builds fine on glibc-2.32/gcc-9 here. there's a condition in Makefile FLAGS-GCOV := --coverage -fno-exceptions -fno-inline -fprofile-update=atomic export CFLAGS-GCOV ifneq ($(GCOV),) LDFLAGS += -lgcov CFLAGS += $(CFLAGS-GCOV) endif and those flags are in your build log. do you define envvar GCOV to something non-empty on tinderbox? easy reproducer: GCOV=1 ebuild criu-3.14-r2.ebuild clean compile
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=904c2e8deaacb84fd58d152cf18e0f6ab2c5d0c5 commit 904c2e8deaacb84fd58d152cf18e0f6ab2c5d0c5 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-09-24 01:52:26 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-09-24 01:52:26 +0000 sys-process/criu: don't fail with non-empty GCOV envvar Bug: https://bugs.gentoo.org/744244 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-process/criu/criu-3.14-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
still reproducible for me
can you please attach your environment file?
Created attachment 662254 [details] env Note that I test also the package with GCOV=x86_64-pc-linux-gnu-gcov
cat /etc/portage/env/qa CC="x86_64-pc-linux-gnu-gcc" CXX="x86_64-pc-linux-gnu-g++" AR="x86_64-pc-linux-gnu-ar" CPP="x86_64-pc-linux-gnu-gcc -E" LD="x86_64-pc-linux-gnu-ld" NM="x86_64-pc-linux-gnu-nm" RANLIB="x86_64-pc-linux-gnu-ranlib" GCOV="x86_64-pc-linux-gnu-gcov" AS="x86_64-pc-linux-gnu-as" STRIP="x86_64-pc-linux-gnu-strip" OBJCOPY="x86_64-pc-linux-gnu-objcopy" OBJDUMP="x86_64-pc-linux-gnu-objdump" READELF="x86_64-pc-linux-gnu-readelf"
where do you set GCOV variable exactly? I tried exporting, setting in /etc/portage/make.conf and /etc/portage/bashrc, nothing breaks build for me now. I meant for example /var/tmp/portage/sys-process/criu-3.14-r2/temp/environment And another build log, with updated ebuild which includes 904c2e8deaacb84fd58d152cf18e0f6ab2c5d0c5 I can't figure out how you get -lgcov and --coverage -fno-exceptions -fno-inline -fprofile-update=atomic in your flags. unless your tree is not up to date
ah sorry I see now, env file.
tried env file, just to make sure. still can't reproduce =) please make sure tree is up to date. if it is, I'll need both fresh build log and /var/tmp/portage/sys-process/criu-3.14-r2/temp/environment file
(In reply to Georgy Yakovlev from comment #11) > tried env file, just to make sure. still can't reproduce =) > > please make sure tree is up to date. It got into the CI because of the fix you pushed, so it is up-to-date. I'll attach environment. Note that I can reproduce on two systems
Created attachment 662257 [details] environment environment
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae76b6469821f5685dd91b767f962c0ac06ef4b6 commit ae76b6469821f5685dd91b767f962c0ac06ef4b6 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-09-24 08:28:32 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-09-24 08:29:07 +0000 sys-process/criu: unset GCOV completely Bug: https://bugs.gentoo.org/744244 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-process/criu/criu-3.14-r2.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
^ this should help. I was able to reproduce by running 'ebuild' as user without emerge/sudo/anything. Please close if you can't reproduce.