Project

General

Profile

Actions

Bug #21023

open

Unintentional ruby/spec capi extension build twice

Added by hsbt (Hiroshi SHIBATA) 6 days ago. Updated 6 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:120594]

Description

I faced building spec/ruby/optional/capi/ext/ build twice sometimes like:

❯ make -j
revision.h updated
generating arm64-darwin24-fake.rb
arm64-darwin24-fake.rb updated
rbconfig.rb unchanged
generating encdb.h
generating enc.mk
creating verconf.h
verconf.h updated
compiling loadpath.c
encdb.h unchanged
making srcs under enc
generating transdb.h
linking static-library libruby.3.5-static.a
transdb.h unchanged
linking shared-library libruby.3.5.dylib
generating makefiles ext/configure-ext.mk
building spec/ruby/optional/capi/ext/array_spec.bundle
building spec/ruby/optional/capi/ext/bignum_spec.bundle
building spec/ruby/optional/capi/ext/basic_object_spec.bundle
building spec/ruby/optional/capi/ext/binding_spec.bundle
building spec/ruby/optional/capi/ext/boolean_spec.bundle
building spec/ruby/optional/capi/ext/class_id_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/class_spec.bundle
building spec/ruby/optional/capi/ext/class_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/data_spec.bundle
building spec/ruby/optional/capi/ext/complex_spec.bundle
building spec/ruby/optional/capi/ext/constants_spec.bundle
building spec/ruby/optional/capi/ext/debug_spec.bundle
building spec/ruby/optional/capi/ext/encoding_spec.bundle
building spec/ruby/optional/capi/ext/enumerator_spec.bundle
building spec/ruby/optional/capi/ext/fiber_spec.bundle
building spec/ruby/optional/capi/ext/file_spec.bundle
building spec/ruby/optional/capi/ext/exception_spec.bundle
building spec/ruby/optional/capi/ext/fixnum_spec.bundle
building spec/ruby/optional/capi/ext/float_spec.bundle
building spec/ruby/optional/capi/ext/gc_spec.bundle
building spec/ruby/optional/capi/ext/globals_spec.bundle
building spec/ruby/optional/capi/ext/hash_spec.bundle
building spec/ruby/optional/capi/ext/io_spec.bundle
building spec/ruby/optional/capi/ext/numeric_spec.bundle
building spec/ruby/optional/capi/ext/integer_spec.bundle
building spec/ruby/optional/capi/ext/kernel_spec.bundle
building spec/ruby/optional/capi/ext/module_spec.bundle
building spec/ruby/optional/capi/ext/marshal_spec.bundle
building spec/ruby/optional/capi/ext/module_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/language_spec.bundle
building spec/ruby/optional/capi/ext/mutex_spec.bundle
building spec/ruby/optional/capi/ext/symbol_spec.bundle
building spec/ruby/optional/capi/ext/time_spec.bundle
building spec/ruby/optional/capi/ext/string_spec.bundle
building spec/ruby/optional/capi/ext/proc_spec.bundle
building spec/ruby/optional/capi/ext/thread_spec.bundle
building spec/ruby/optional/capi/ext/object_spec.bundle
building spec/ruby/optional/capi/ext/rbasic_spec.bundle
building spec/ruby/optional/capi/ext/range_spec.bundle
building spec/ruby/optional/capi/ext/rational_spec.bundle
building spec/ruby/optional/capi/ext/util_spec.bundle
building spec/ruby/optional/capi/ext/st_spec.bundle
building spec/ruby/optional/capi/ext/tracepoint_spec.bundle
building spec/ruby/optional/capi/ext/regexp_spec.bundle
building spec/ruby/optional/capi/ext/struct_spec.bundle
building spec/ruby/optional/capi/ext/typed_data_spec.bundle
making enc
making trans
ext/configure-ext.mk updated
making encs
generating makefile exts.mk
exts.mk unchanged
compiling version.c
linking miniruby
ln -sf ../../rbconfig.rb .ext/arm64-darwin24/rbconfig.rb
builtin_binary.inc updated
ae4db3fa410991261f4203ac62ff7aa8eb3959967203d43e69af30c1ea1423fe  builtin_binary.inc
compiling builtin.c
linking static-library libruby.3.5-static.a
linking shared-library libruby.3.5.dylib
building spec/ruby/optional/capi/ext/array_spec.bundle
building spec/ruby/optional/capi/ext/basic_object_spec.bundle
building spec/ruby/optional/capi/ext/bignum_spec.bundle
building spec/ruby/optional/capi/ext/binding_spec.bundle
building spec/ruby/optional/capi/ext/boolean_spec.bundle
building spec/ruby/optional/capi/ext/class_spec.bundle
building spec/ruby/optional/capi/ext/class_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/class_id_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/complex_spec.bundle
building spec/ruby/optional/capi/ext/constants_spec.bundle
building spec/ruby/optional/capi/ext/debug_spec.bundle
building spec/ruby/optional/capi/ext/data_spec.bundle
building spec/ruby/optional/capi/ext/encoding_spec.bundle
building spec/ruby/optional/capi/ext/enumerator_spec.bundle
building spec/ruby/optional/capi/ext/exception_spec.bundle
building spec/ruby/optional/capi/ext/fiber_spec.bundle
building spec/ruby/optional/capi/ext/fixnum_spec.bundle
building spec/ruby/optional/capi/ext/file_spec.bundle
building spec/ruby/optional/capi/ext/gc_spec.bundle
building spec/ruby/optional/capi/ext/float_spec.bundle
building spec/ruby/optional/capi/ext/hash_spec.bundle
building spec/ruby/optional/capi/ext/integer_spec.bundle
building spec/ruby/optional/capi/ext/globals_spec.bundle
building spec/ruby/optional/capi/ext/language_spec.bundle
building spec/ruby/optional/capi/ext/io_spec.bundle
building spec/ruby/optional/capi/ext/kernel_spec.bundle
building spec/ruby/optional/capi/ext/marshal_spec.bundle
building spec/ruby/optional/capi/ext/module_spec.bundle
building spec/ruby/optional/capi/ext/module_under_autoload_spec.bundle
building spec/ruby/optional/capi/ext/mutex_spec.bundle
building spec/ruby/optional/capi/ext/numeric_spec.bundle
building spec/ruby/optional/capi/ext/object_spec.bundle
building spec/ruby/optional/capi/ext/proc_spec.bundle
building spec/ruby/optional/capi/ext/range_spec.bundle
building spec/ruby/optional/capi/ext/regexp_spec.bundle
building spec/ruby/optional/capi/ext/rational_spec.bundle
building spec/ruby/optional/capi/ext/string_spec.bundle
building spec/ruby/optional/capi/ext/rbasic_spec.bundle
building spec/ruby/optional/capi/ext/struct_spec.bundle
building spec/ruby/optional/capi/ext/tracepoint_spec.bundle
building spec/ruby/optional/capi/ext/st_spec.bundle
building spec/ruby/optional/capi/ext/symbol_spec.bundle
building spec/ruby/optional/capi/ext/thread_spec.bundle
building spec/ruby/optional/capi/ext/time_spec.bundle
building spec/ruby/optional/capi/ext/util_spec.bundle
building spec/ruby/optional/capi/ext/typed_data_spec.bundle
linking ruby

@nobu (Nobuyoshi Nakada) said "It's triggered with linking shared-library libruby.3.5.dylib".

It seems unintentional behavior. we should avoid that.

Updated by hsbt (Hiroshi SHIBATA) 6 days ago

❯ make -v
GNU Make 4.4.1
Built for aarch64-apple-darwin23.0.0

I used gnu-make provided by homebrew.

Actions

Also available in: Atom PDF

Like0
Like0