ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: duerst <noreply@ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Subject: [ruby-core:111202] [Ruby master Bug#18623] `make runnable` does not work
Date: Sun, 04 Dec 2022 23:32:51 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-100494.20221204233250.50@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-18623.20220311083021.50@ruby-lang.org

Issue #18623 has been updated by duerst (Martin Dürst).





@nakada: I again hit this. I found out that the solution is easy, just do `make goruby` before using `make runnable`. I propose to add `goruby` to the targets necessary when creating `runnable`, to avoid additional steps and unnecessary confusion.



----------------------------------------

Bug #18623: `make runnable` does not work

https://bugs.ruby-lang.org/issues/18623#change-100494



* Author: duerst (Martin Dürst)

* Status: Open

* Priority: Normal

* Assignee: nobu (Nobuyoshi Nakada)

* ruby -v: ruby 3.1.0dev (2021-06-03T06:59:33Z master 7e14762159) [x86_64-linux]

* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN

----------------------------------------

When I try `make runnable` to be able to run individual tests with `.\ruby test/runner.rb ...`, I get the error below. It is important to solve this so I can make progress on Feature #18037. Except for the problem reported at Bug #18614, comprehensive tests such as `make check` work fine.





```

duerst@Kloentalersee:~/14ruby$ make runnable

        BASERUBY = /usr/local/bin/ruby --disable=gems

        CC = gcc

        LD = ld

        LDSHARED = gcc -shared

        CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Werror=deprecated-declarations -Werror=div-by-zero -Werror=duplicated-cond -Werror=implicit-function-declaration -Werror=implicit-int -Werror=misleading-indentation -Werror=pointer-arith -Werror=write-strings -Werror=old-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 -Werror=undef -std=gnu99

        XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -DRUBY_DEVEL=1 -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -fPIE -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/unicode/14.0.0

        CPPFLAGS =

        DLDFLAGS = -Wl,--compress-debug-sections=zlib -fstack-protector-strong -pie

        SOLIBS = -lz -lpthread -lrt -lrt -lgmp -ldl -lcrypt -lm

        LANG = C.UTF-8

        LC_ALL =

        LC_CTYPE =

        MFLAGS =

gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0

Copyright (C) 2019 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



ln -f goruby ./bin/goruby

/home/duerst/14ruby/lib/fileutils.rb:301:in `link': No such file or directory @ rb_file_s_link - (goruby, ./bin/goruby) (Errno::ENOENT)

        from /home/duerst/14ruby/lib/fileutils.rb:301:in `block in ln'

        from /home/duerst/14ruby/lib/fileutils.rb:1593:in `fu_each_src_dest0'

        from /home/duerst/14ruby/lib/fileutils.rb:299:in `ln'

        from /home/duerst/14ruby/lib/fileutils.rb:1695:in `ln'

        from ./tool/mkrunnable.rb:59:in `ln_exe'

        from ./tool/mkrunnable.rb:96:in `ln_relative'

        from ./tool/mkrunnable.rb:131:in `block in <main>'

        from ./tool/mkrunnable.rb:128:in `map'

        from ./tool/mkrunnable.rb:128:in `<main>'

make: *** [uncommon.mk:872: runnable] Error 1

duerst@Kloentalersee:~/14ruby$

```









-- 

https://bugs.ruby-lang.org/

 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

      parent reply	other threads:[~2022-12-04 23:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-11  8:30 [ruby-core:107844] [Ruby master Bug#18623] `make runnable` does not work duerst
2022-03-16  1:28 ` [ruby-core:107917] " duerst
2022-12-04 23:32 ` duerst [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-100494.20221204233250.50@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    --cc=ruby-core@ml.ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).