Project

General

Profile

Actions

Bug #19892

closed

Build fails when release archive is prepared with `-keep_temp` option

Added by vo.x (Vit Ondruch) 7 months ago. Updated 7 months ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-09-19 master 8f1b688177) [x86_64-linux]
[ruby-core:114817]

Description

I observe following build failure:

$ configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-rubylibprefix=/usr/share/ruby --with-archlibdir=/usr/lib64 --with-rubyarchprefix=/usr/lib64/ruby --with-sitedir=/usr/local/share/ruby/site_ruby --with-sitearchdir=/usr/local/lib64/ruby/site_ruby --with-vendordir=/usr/share/ruby/vendor_ruby --with-vendorarchdir=/usr/lib64/ruby/vendor_ruby --with-rubyhdrdir=/usr/include --with-rubyarchhdrdir=/usr/include '--with-sitearchhdrdir=$(sitehdrdir)/$(arch)' '--with-vendorarchhdrdir=$(vendorhdrdir)/$(arch)' --with-rubygemsdir=/usr/share/rubygems --with-ruby-pc=ruby.pc --with-compress-debug-sections=no --disable-rpath --enable-mkmf-verbose --enable-shared --with-ruby-version= --enable-multiarch --enable-yjit

... snip ...

---
Configuration summary for ruby version 3.3.0

   * Installation prefix: /usr
   * exec prefix:         /usr
   * arch:                x86_64-linux
   * site arch:           ${arch}
   * RUBY_BASE_NAME:      ruby
   * enable shared:       yes
   * ruby lib prefix:     ${exec_prefix}/share/ruby
   * site libraries path: ${sitearchlibdir}/${RUBY_BASE_NAME}
   * vendor path:         /usr/share/ruby/vendor_ruby
   * target OS:           linux
   * compiler:            gcc
   * with thread:         pthread
   * with coroutine:      amd64
   * enable shared libs:  yes
   * dynamic library ext: so
   * CFLAGS:              ${optflags} ${debugflags} ${warnflags}
   * LDFLAGS:             -L. -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now \
                          -specs=/usr/lib/rpm/redhat/redhat-hardened-ld \
                          -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  \
                          -Wl,--build-id=sha1 -fstack-protector-strong \
                          -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
   * DLDFLAGS:            -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now \
                          -specs=/usr/lib/rpm/redhat/redhat-hardened-ld \
                          -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  \
                          -Wl,--build-id=sha1  
   * optflags:            -O3 -fno-fast-math
   * debugflags:          -ggdb3
   * warnflags:           -Wall -Wextra -Wdeprecated-declarations \
                          -Wdiv-by-zero -Wduplicated-cond \
                          -Wimplicit-function-declaration -Wimplicit-int \
                          -Wpointer-arith -Wwrite-strings \
                          -Wold-style-definition -Wimplicit-fallthrough=0 \
                          -Wmissing-noreturn -Wno-cast-function-type \
                          -Wno-constant-logical-operand -Wno-long-long \
                          -Wno-missing-field-initializers \
                          -Wno-overlength-strings \
                          -Wno-packed-bitfield-compat \
                          -Wno-parentheses-equality -Wno-self-assign \
                          -Wno-tautological-compare -Wno-unused-parameter \
                          -Wno-unused-value -Wsuggest-attribute=format \
                          -Wsuggest-attribute=noreturn -Wunused-variable \
                          -Wmisleading-indentation -Wundef
   * strip command:       strip -S -x
   * install doc:         rdoc
   * YJIT support:        yes
   * RJIT support:        yes
   * man page type:       doc

---
+ popd
~/build/BUILD/ruby-3.3.0-8f1b688177
+ /usr/bin/make -O -j1 V=1 VERBOSE=1 'COPY=cp -p' -C redhat-linux-build
make: Entering directory '/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build'
	BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
	CC = gcc
	LD = ld
	LDSHARED = gcc -shared
	CFLAGS = -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -m64
	XCFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/include -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177 -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/yarp -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0  
	CPPFLAGS =   
	DLDFLAGS = -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1   -Wl,-soname,libruby.so.3.3 -fstack-protector-strong  -m64
	SOLIBS = -lz -lrt -lrt -lgmp -ldl -lcrypt -lm -lpthread 
	LANG = C.UTF-8
	LC_ALL = 
	LC_CTYPE = 
	MFLAGS = -j1 -Otarget
	RUSTC = rustc
	YJIT_RUSTC_ARGS = --crate-name=yjit --crate-type=staticlib --edition=2021 -g -C lto=thin -C opt-level=3 -C overflow-checks=on '--out-dir=/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build/yjit/target/release/' /builddir/build/BUILD/ruby-3.3.0-8f1b688177/yjit/src/lib.rs

... snip ...

gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -m64 -L. -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -fstack-protector-strong  main.o dmydln.o miniinit.o dmyext.o abrt.o array.o ast.o bignum.o class.o compar.o compile.o complex.o cont.o debug.o debug_counter.o dir.o dln_find.o encoding.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o io_buffer.o iseq.o load.o marshal.o math.o memory_view.o rjit.o rjit_c.o node.o node_dump.o numeric.o object.o pack.o parse.o parser_st.o proc.o process.o ractor.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o ruby_parser.o scheduler.o shape.o signal.o sprintf.o st.o strftime.o string.o struct.o symbol.o thread.o time.o transcode.o util.o variable.o version.o vm.o vm_backtrace.o vm_dump.o vm_sync.o vm_trace.o weakmap.o yarp/api_node.o yarp/api_pack.o yarp/diagnostic.o yarp/enc/yp_big5.o yarp/enc/yp_euc_jp.o yarp/enc/yp_gbk.o yarp/enc/yp_shift_jis.o yarp/enc/yp_tables.o yarp/enc/yp_unicode.o yarp/enc/yp_windows_31j.o yarp/extension.o yarp/node.o yarp/pack.o yarp/prettyprint.o yarp/regexp.o yarp/serialize.o yarp/token_type.o yarp/unescape.o yarp/util/yp_buffer.o yarp/util/yp_char.o yarp/util/yp_constant_pool.o yarp/util/yp_list.o yarp/util/yp_memchr.o yarp/util/yp_newline_list.o yarp/util/yp_state_stack.o yarp/util/yp_string.o yarp/util/yp_string_list.o yarp/util/yp_strncasecmp.o yarp/util/yp_strpbrk.o yarp/yarp.o yarp/yarp_init.o yjit.o yjit/target/release/libyjit.o coroutine/amd64/Context.o probes.o enc/ascii.o enc/us_ascii.o enc/unicode.o enc/utf_8.o enc/trans/newline.o setproctitle.o addr2line.o  -lz -lrt -lrt -lgmp -ldl -lcrypt -lm -lpthread  -o miniruby
:
exit > .revision.time
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  -n \
-e 'BEGIN{version=ARGV.shift;mis=ARGV.dup}' \
-e 'END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?}' \
-e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
15.0.0 /builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0/casefold.h /builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0/name2ctype.h 
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/mkconfig.rb \
	-arch=x86_64-linux -version=3.3.0 \
	-install_name=ruby \
	-so_name=ruby \
	-unicode_version=15.0.0 \
	-unicode_emoji_version=15.0 \
> rbconfig.tmp
/bin/sh /builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb updated
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/generic_erb.rb -c -o encdb.h /builddir/build/BUILD/ruby-3.3.0-8f1b688177/template/encdb.h.tmpl /builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc enc
encdb.h updated
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common   /builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/make_encmake.rb \
  --builtin-encs="enc/ascii.o enc/us_ascii.o enc/unicode.o enc/utf_8.o" --builtin-transes="enc/trans/newline.o" --module  enc.mk
/usr/bin/make -f enc.mk V="1" UNICODE_HDR_DIR="/builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0" RUBY=" ./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common " MINIRUBY=" ./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common " -Otarget srcs
make[1]: Entering directory '/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build'
make[1]: Nothing to be done for 'srcs'.
make[1]: Leaving directory '/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build'
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/generic_erb.rb -c -o transdb.h /builddir/build/BUILD/ruby-3.3.0-8f1b688177/template/transdb.h.tmpl /builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/trans enc/trans
transdb.h updated
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -m64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/include -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177 -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/yarp -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0      -o dln.o -c /builddir/build/BUILD/ruby-3.3.0-8f1b688177/dln.c
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -m64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/include -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177 -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/yarp -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0      -o localeinit.o -c /builddir/build/BUILD/ruby-3.3.0-8f1b688177/localeinit.c
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  "/builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/generic_erb.rb" -o verconf.h /builddir/build/BUILD/ruby-3.3.0-8f1b688177/template/verconf.h.tmpl
verconf.h updated
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -m64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/include -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177 -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/yarp -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0      -o loadpath.o -c /builddir/build/BUILD/ruby-3.3.0-8f1b688177/loadpath.c
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/generic_erb.rb -o builtin_binary.inc \
	/builddir/build/BUILD/ruby-3.3.0-8f1b688177/template/builtin_binary.inc.tmpl -- --cross=no
builtin_binary.inc updated
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -m64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/include -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177 -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/yarp -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/enc/unicode/15.0.0      -o builtin.o -c /builddir/build/BUILD/ruby-3.3.0-8f1b688177/builtin.c
gcc-ar rcD  libruby-static.a dln.o localeinit.o loadpath.o abrt.o array.o ast.o bignum.o class.o compar.o compile.o complex.o cont.o debug.o debug_counter.o dir.o dln_find.o encoding.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o io_buffer.o iseq.o load.o marshal.o math.o memory_view.o rjit.o rjit_c.o node.o node_dump.o numeric.o object.o pack.o parse.o parser_st.o proc.o process.o ractor.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o ruby_parser.o scheduler.o shape.o signal.o sprintf.o st.o strftime.o string.o struct.o symbol.o thread.o time.o transcode.o util.o variable.o version.o vm.o vm_backtrace.o vm_dump.o vm_sync.o vm_trace.o weakmap.o yarp/api_node.o yarp/api_pack.o yarp/diagnostic.o yarp/enc/yp_big5.o yarp/enc/yp_euc_jp.o yarp/enc/yp_gbk.o yarp/enc/yp_shift_jis.o yarp/enc/yp_tables.o yarp/enc/yp_unicode.o yarp/enc/yp_windows_31j.o yarp/extension.o yarp/node.o yarp/pack.o yarp/prettyprint.o yarp/regexp.o yarp/serialize.o yarp/token_type.o yarp/unescape.o yarp/util/yp_buffer.o yarp/util/yp_char.o yarp/util/yp_constant_pool.o yarp/util/yp_list.o yarp/util/yp_memchr.o yarp/util/yp_newline_list.o yarp/util/yp_state_stack.o yarp/util/yp_string.o yarp/util/yp_string_list.o yarp/util/yp_strncasecmp.o yarp/util/yp_strpbrk.o yarp/yarp.o yarp/yarp_init.o yjit.o yjit/target/release/libyjit.o coroutine/amd64/Context.o probes.o enc/ascii.o enc/us_ascii.o enc/unicode.o enc/utf_8.o enc/trans/newline.o setproctitle.o addr2line.o  builtin.o dmyext.o dmyenc.o
gcc -shared -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1   -Wl,-soname,libruby.so.3.3 -fstack-protector-strong  -m64 dln.o localeinit.o loadpath.o abrt.o array.o ast.o bignum.o class.o compar.o compile.o complex.o cont.o debug.o debug_counter.o dir.o dln_find.o encoding.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o io_buffer.o iseq.o load.o marshal.o math.o memory_view.o rjit.o rjit_c.o node.o node_dump.o numeric.o object.o pack.o parse.o parser_st.o proc.o process.o ractor.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o ruby_parser.o scheduler.o shape.o signal.o sprintf.o st.o strftime.o string.o struct.o symbol.o thread.o time.o transcode.o util.o variable.o version.o vm.o vm_backtrace.o vm_dump.o vm_sync.o vm_trace.o weakmap.o yarp/api_node.o yarp/api_pack.o yarp/diagnostic.o yarp/enc/yp_big5.o yarp/enc/yp_euc_jp.o yarp/enc/yp_gbk.o yarp/enc/yp_shift_jis.o yarp/enc/yp_tables.o yarp/enc/yp_unicode.o yarp/enc/yp_windows_31j.o yarp/extension.o yarp/node.o yarp/pack.o yarp/prettyprint.o yarp/regexp.o yarp/serialize.o yarp/token_type.o yarp/unescape.o yarp/util/yp_buffer.o yarp/util/yp_char.o yarp/util/yp_constant_pool.o yarp/util/yp_list.o yarp/util/yp_memchr.o yarp/util/yp_newline_list.o yarp/util/yp_state_stack.o yarp/util/yp_string.o yarp/util/yp_string_list.o yarp/util/yp_strncasecmp.o yarp/util/yp_strpbrk.o yarp/yarp.o yarp/yarp_init.o yjit.o yjit/target/release/libyjit.o coroutine/amd64/Context.o probes.o enc/ascii.o enc/us_ascii.o enc/unicode.o enc/utf_8.o enc/trans/newline.o setproctitle.o addr2line.o  builtin.o dmyext.o dmyenc.o -lz -lrt -lrt -lgmp -ldl -lcrypt -lm -lpthread   -o libruby.so.3.3.0
objcopy -w -L 'Init_*' -L 'ruby_static_id_*' \
		-L '*_threadptr_*' -L '*_ec_*' libruby.so.3.3.0
:
/usr/bin/mkdir -p ext
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.0-8f1b688177/tool/generic_erb.rb -o ext/configure-ext.mk -c \
    /builddir/build/BUILD/ruby-3.3.0-8f1b688177/template/configure-ext.mk.tmpl --srcdir="/builddir/build/BUILD/ruby-3.3.0-8f1b688177" \
    --miniruby="./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common " --script-args='--dest-dir="" --extout=".ext" --ext-build-dir="./ext" --mflags="-j1 -Otarget" --make-flags=" -j1 -Otarget -- COPY=cp\ -p VERBOSE=1 V=1"'
ext/configure-ext.mk updated
/usr/bin/mkdir -p .ext/.timestamp/x86_64-linux .ext/x86_64-linux
/usr/bin/mkdir -p .ext/.timestamp .ext/common
/usr/bin/make -f ext/configure-ext.mk -Otarget V=1 EXTSTATIC= \
	gnumake=yes MINIRUBY="./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common " \
	EXTLDFLAGS="" srcdir="/builddir/build/BUILD/ruby-3.3.0-8f1b688177"
make[1]: Entering directory '/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build'
./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common  /builddir/build/BUILD/ruby-3.3.0-8f1b688177/ext/extmk.rb --make='/usr/bin/make' \
	--command-output=ext/-test-/exts.mk --dest-dir="" --extout=".ext" --ext-build-dir="./ext" --mflags="-j1 -Otarget" --make-flags=" -j1 -Otarget -- COPY=cp\ -p VERBOSE=1 V=1" --gnumake=yes --extflags="" --make-flags="MINIRUBY='./miniruby -I/builddir/build/BUILD/ruby-3.3.0-8f1b688177/lib -I. -I.ext/common '" --extstatic  \
	-- configure ext/-test-
/builddir/build/BUILD/ruby-3.3.0-8f1b688177/ext/extmk.rb:445:in `join': no implicit conversion of nil into String (TypeError)
	from /builddir/build/BUILD/ruby-3.3.0-8f1b688177/ext/extmk.rb:445:in `block in <main>'
	from /builddir/build/BUILD/ruby-3.3.0-8f1b688177/ext/extmk.rb:444:in `each'
	from /builddir/build/BUILD/ruby-3.3.0-8f1b688177/ext/extmk.rb:444:in `<main>'
make[1]: *** [ext/configure-ext.mk:20: ext/-test-/exts.mk] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build'
make: *** [uncommon.mk:364: exts.mk] Error 2
make: Leaving directory '/builddir/build/BUILD/ruby-3.3.0-8f1b688177/redhat-linux-build'

I was previlusly testing -preview2 which worked just fine.

Updated by nobu (Nobuyoshi Nakada) 7 months ago

What are setup lines in config.status and rbconfig.rb?

Updated by vo.x (Vit Ondruch) 7 months ago

nobu (Nobuyoshi Nakada) wrote in #note-1:

What are setup lines in config.status and rbconfig.rb?

Sorry, I don't have the answer ATM and I gotta go for today.

Nevertheless, digging into the issue, the difference is that using official -preview2 archive, the build works just fine. Preparing the archive myself via $ tool/make-snapshot -packages=xz -keep_temp tmp 3.3.0-preview2, the subsequent build fails. Please note that I am using the freshest checkout. Last time I have created the archive was with git|7c8932365f and at that time, the resulting archive worked just fine.

Updated by vo.x (Vit Ondruch) 7 months ago

Digging into this again, I discovered the the archive created myself contains some files the original archive have not contained (and neither the archive I have created a month ago). Deleting this additional content will let me proceed:

rm -rf autom4te.cache
rm -rf enc/unicode/data
rm -rf tmp
rm .rbconfig.time
rm .revision.time
rm Makefile
rm config.status
rm cross.rb
rm enc.mk
rm noarch-fake.rb
rm rbconfig.rb
rm revision.tmp

Updated by vo.x (Vit Ondruch) 7 months ago

It seems that the -keep_temp makes the difference. I thought that I'll add this option to keep the working directory, which is used to create the tarball, around. But this also keeps some temporary object in the created tarball. That does not make any sense to me.

Actions #5

Updated by vo.x (Vit Ondruch) 7 months ago

  • Subject changed from Build failure with 8f1b688177 to Build fails when release archive is prepared with `-keep_temp` option

Updated by nobu (Nobuyoshi Nakada) 7 months ago

  • Status changed from Open to Feedback

-keep_temp was just for debugging.
I'm curious why and for what purpose you are using that option.

Updated by vo.x (Vit Ondruch) 7 months ago

Once I have the archive, I'd like to adjust various information in the .spec file used to create RPM, mainly the versions. Initially, I was using the version information from checked out repository, but that is not always the right thing to do, if I am going to try some older revision. Then I had the idea to keep the temp directory and extract the information from there ...

This is some older version of the script I am using:

https://github.com/fedora-ruby/ferut/blob/main/ruby-devel-srpm.rb

Actions #8

Updated by nobu (Nobuyoshi Nakada) 7 months ago

  • Status changed from Feedback to Closed

Updated by vo.x (Vit Ondruch) 7 months ago

For the reference, this is PR resolving this:

https://github.com/ruby/ruby/pull/8490

Thx a lot!

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0