Bug 15788

Summary: AB-INT: ruby: file2lastrev.rb: does not seem to be under a vcs
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mathieu Dubois-Briand <mathieu.dubois-briand>
Component: devtools / tool chainAssignee: Unassigned <unassigned>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, paul, Qi.Chen, randy.macleod, richard.purdie
Version: 5.99   
Target Milestone: 6.1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mathieu Dubois-Briand 2025-03-06 13:53:13 UTC
New AB-INT?

Ruby build has failed, but I don't seen any error in the log. Is it the "file2lastrev.rb: does not seem to be under a vcs" line?

>     122 2025-03-05 14:01:41,852 - oe-selftest - INFO -       ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/temp/log.do_compile.3836925
>     123 2025-03-05 14:01:41,852 - oe-selftest - INFO -       Log data follows:
>     124 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | DEBUG: Executing shell function do_compile
>     125 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | NOTE: make -j 16 -l 75
>     126 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | file2lastrev.rb: does not seem to be under a vcs: .
>     127 2025-03-05 14:01:41,852 - oe-selftest - INFO -       |  BASERUBY = /srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot-native/usr/bin/ruby --disable=gems
>     128 2025-03-05 14:01:41,852 - oe-selftest - INFO -       |  CC = x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot
>     129 2025-03-05 14:01:41,852 - oe-selftest - INFO -       |  LD = x86_64-poky-linux-ld --sysroot=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot
>     130 2025-03-05 14:01:41,852 - oe-selftest - INFO -       |  LDSHARED = x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot -shared
>     131 2025-03-05 14:01:41,852 - oe-selftest - INFO -       |  CFLAGS = -O2 -g -fcanon-prefix-map  -fmacro-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/ruby-3.4.2=/usr/src/debug/ruby/3.4.2  -fdebug-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/ruby-3.4.2=/usr/src/debug/ruby/3.4.2  -fmacro-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/build=/usr/src/debug/ruby/3.4.2  -fdebug-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2 /build=/usr/src/debug/ruby/3.4.2  -fdebug-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot=  -fmacro-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot=  -fdebug-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot-native=  -fmacro-prefix-map=/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/recipe-sysroot-native=  -pipe -fPIC
>     132 2025-03-05 14:01:41,852 - oe-selftest - INFO - Found ERROR (line 36787):
>     133 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | make[2]: Leaving directory '/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/build/.bundle/gems/nkf-0.2.0/ext/nkf'
>     134 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | linking static-library openssl.a
>     135 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | make[2]: Leaving directory '/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/build/ext/openssl'
>     136 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | linking static-library ripper.a
>     137 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | make[2]: Leaving directory '/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/build/ext/ripper'
>     138 2025-03-05 14:01:41,852 - oe-selftest - INFO -       | make[1]: Leaving directory '/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/core2-64-poky-linux/ruby/3.4.2/build'
>     139 2025-03-05 14:01:41,853 - oe-selftest - INFO -       | make: *** [uncommon.mk:415: build-ext] Error 2
>     140 2025-03-05 14:01:41,853 - oe-selftest - INFO -       | ERROR: oe_runmake failed
>     141 2025-03-05 14:01:41,853 - oe-selftest - INFO -       | WARNING: exit code 1 from a shell command.
>     142 2025-03-05 14:01:41,853 - oe-selftest - INFO -       NOTE: recipe ruby-3.4.2-r0: task do_compile: Failed
Comment 1 Mathieu Dubois-Briand 2025-03-06 13:54:16 UTC
reproducible debian12-vk-8 master-next completed at 2025-03-05T14:01:57Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/1154/steps/12/logs/stdio
Comment 2 Richard Purdie 2025-03-06 15:53:12 UTC
https://valkyrie.yocto.io/pub/shared-failure-data/log.do_compile.3836925

I reran the compile function and the build passed which makes me suspect this could be some kind of build race.
Comment 3 Randy MacLeod 2025-03-06 15:54:23 UTC
May be a build race. Check the build scripts/makefile/...  (Qi?)
Comment 4 Randy MacLeod 2026-03-05 16:05:51 UTC
Re-open if it happens again.
Comment 5 Mathieu Dubois-Briand 2026-04-01 13:35:04 UTC
(In reply to Randy MacLeod from comment #4)
> Re-open if it happens again.

Looks like the best way to reproduce an issue is to close the bug entry. Some failure coming in my next message.
Comment 7 Randy MacLeod 2026-04-02 14:44:26 UTC
*** Bug 16225 has been marked as a duplicate of this bug. ***
Comment 8 Randy MacLeod 2026-04-08 21:32:43 UTC
The most recent occurrence happened on master/master-next so move to 6.1.
Comment 11 Paul Barker 2026-07-31 08:48:58 UTC
We need to capture the ruby do_compile.log file next time this fails, the oe-reproducible logs don't have enough detail.
Comment 12 Randy MacLeod 2026-08-27 14:57:02 UTC
Essentially not a bug - just output from a script.
See YP #16283