/bin/mkdir -p . /var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5 /usr/bin/install -c -m 644 ./rb_cairo.h /var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5 /usr/bin/install: cannot create regular file '/var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5': File exists exit > .sitearchdir.time make: *** [Makefile:269: install-headers] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory '/var/tmp/portage/dev-ruby/rcairo-1.17.5/work/ruby26/rcairo-1.17.5/ext/cairo' ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_gnome-j2-20210510-164836 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-9.3.1 [3] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.10 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.52.1 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.3 [2] php7.4 [3] php8.0 * timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Thu May 13 20:50:28 UTC 2021 emerge -qpvO dev-ruby/rcairo [ebuild N ] dev-ruby/rcairo-1.17.5 USE="-doc -test" RUBY_TARGETS="ruby26 -ruby25 -ruby27"
Created attachment 708267 [details] emerge-info.txt
Created attachment 708270 [details] dev-ruby:rcairo-1.17.5:20210513-214314.log
Created attachment 708273 [details] emerge-history.txt
Created attachment 708276 [details] environment
Created attachment 708279 [details] etc.portage.tar.bz2
Created attachment 708282 [details] logs.tar.bz2
I can't reproduce this. I'm wondering if the double slash in this path is perhaps causing issues? /bin/mkdir -p . /var/tmp/portage/dev-ruby/rcairo-1.17.5/image//usr/lib64/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/cairo-1.17.5 I have now fixed that: commit f351e3caf8a30634ee07a5a37e07d5a7e37adc2c Author: Hans de Graaff <graaff@gentoo.org> Date: Sat May 15 08:43:40 2021 +0200 eclass/ruby-fakegem.eclass: remove duplicate / in path Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Created attachment 708756 [details] build.log + emerge --info.txt I think it's a race condition, emerged this with MAKEOPTS=-j2 with some variance in cpu load and it finally failed after a few tries. Attached log was despite the above eclass fix (no more //).
Additional dependency is added to ext/cairo/Makefile by ext/cairo/depend > install-so: install-headers > install-headers: > $(INSTALL_DATA) $(srcdir)/rb_cairo.h $(RUBYARCHDIR) OTOH, RUBYARCHDIR is created with: > install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time ... > $(TIMESTAMP_DIR)/.sitearchdir.time: > $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR) So, install-headers must explicitly depend on $(TIMESTAMP_DIR)/.sitearchdir.time
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=196a315c3da76c2d8201eccd8c95b76a06508b5a commit 196a315c3da76c2d8201eccd8c95b76a06508b5a Author: Naohiro Aota <naota@gentoo.org> AuthorDate: 2021-05-23 07:41:51 +0000 Commit: Naohiro Aota <naota@gentoo.org> CommitDate: 2021-05-23 07:59:08 +0000 dev-ruby/rcairo: fix makefile dependency Add missing additional dependency to solve make's race issue. Closes: https://bugs.gentoo.org/790131 Signed-off-by: Naohiro Aota <naota@gentoo.org> dev-ruby/rcairo/rcairo-1.17.5.ebuild | 4 ++++ 1 file changed, 4 insertions(+)
*** Bug 790485 has been marked as a duplicate of this bug. ***