Project

General

Profile

Bug #16800

[riscv64-linux] miniruby: thread_pthread.c:1935: rb_sigwait_fd_put: Assertion `old == th' failed.

Added by davidlt (David Abdurachmanov) 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:97964]

Description

The last version of Ruby in Fedora/RISCV is v2.5.7. It seems that anything above v2.5 series fails to build (tried multiple times with different releases over a long time).

All the builds fail the same:

[..]
./miniruby -I./lib -I. -I.ext/common  ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc
building .ext/include/riscv64-linux/rb_mjit_min_header-2.7.1.h
./miniruby -I./lib -I. -I.ext/common  ./tool/transform_mjit_header.rb "gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC " rb_mjit_header.h .ext/include/riscv64-linux/rb_mjit_min_header-2.7.1.h
compiling builtin.c
gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC  -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -DCANONICALIZATION_FOR_MATHN -I. -I.ext/include/riscv64-linux -I./include -I. -I./enc/unicode/12.1.0    -o builtin.o -c builtin.c
encdb.h updated
miniruby: thread_pthread.c:1935: rb_sigwait_fd_put: Assertion `old == th' failed.
./miniruby -I./lib -I. -I.ext/common  ./tool/mkconfig.rb \
    -arch=riscv64-linux -version=2.7.1 \
    -install_name=ruby \
    -so_name=ruby \
    -unicode_version=12.1.0 \
    -unicode_emoji_version=12.1 \
> rbconfig.tmp
./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb updated
generating enc.mk
./miniruby -I./lib -I. -I.ext/common  ./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
creating verconf.h
./miniruby -I./lib -I. -I.ext/common  "./tool/generic_erb.rb" -o verconf.h ./template/verconf.h.tmpl
make: *** [uncommon.mk:241: .ext/include/riscv64-linux/rb_mjit_min_header-2.7.1.h] Aborted (core dumped)
make: *** Waiting for unfinished jobs....
[..]

Over time different kernels, glibc version, QEMU VM vs. HW, firmware, etc were tried with the same result.

Full log is available here: http://fedora.riscv.rocks/kojifiles/work/tasks/8608/448608/build.log

All packages installed in buildroot ("rootfs") for this build are listed here: http://fedora.riscv.rocks/kojifiles/work/tasks/8608/448608/root.log


Related issues

Is duplicate of Ruby master - Bug #16774: Don't require sub-word atomicsOpenActions

Updated by nobu (Nobuyoshi Nakada) 4 months ago

According to that log, seems CAS is not available.

#2

Updated by mame (Yusuke Endoh) 4 months ago

  • Is duplicate of Bug #16774: Don't require sub-word atomics added

Updated by mame (Yusuke Endoh) 4 months ago

I believe that it is already fixed on master by the patch of #16774.

Updated by mame (Yusuke Endoh) 4 months ago

  • Status changed from Open to Closed

Closing. Let me know if you can still reproduce the issue on mastar.

Also available in: Atom PDF