Ruby3RC1 build from source erros in check

I can successfully build ruby3RC1 from source on Ubuntu 20.04. However when I run make check I get a few function not implemented errors

The issue: Check2.log is output from make check 2>&1 | tee Check2.log
grep -i NotImplementedError Check2.log
NotImplementedError: basic_quote_characters() function is unimplemented on this machine

NotImplementedError: emacs_editing_mode() function is unimplemented on this machine

NotImplementedError: filename_quote_characters() function is unimplemented on this machine

NotImplementedError: vi_editing_mode() function is unimplemented on this machine
A google and check on this list turned up no useful hints. Are these critical errors or are they warnings that do not matter?

If they matter where are these functions implemented?

Debugging information using ubuntu apt-file search

eg for one of them I see they should be in readline:
apt-file search basic_quote_characters
ruby2.7-doc: /usr/share/ri/2.7.0/system/Readline/basic_quote_characters%3d-c.ri
ruby2.7-doc: /usr/share/ri/2.7.0/system/Readline/basic_quote_characters-c.ri
ruby2.7-doc: /usr/share/ri/2.7.0/system/Reline/Core/basic_quote_characters%3d-i.ri

Verify no errors in readline using Make2.log output from make 2>&1 | tee Make2.log

so i checked readline in the make log file and see no hint it looks error free
grep -i readline Make2.log
configuring readline
make[2]: Entering directory '/sw/ruby/ruby-3.0.0-rc1/ext/readline'
compiling readline.c
readline.c: In function ‘Init_readline’:
readline.c:2121:23: warning: assignment to ‘int (*)(const char *, int)’ from incompatible pointer type ‘int (*)(void)’ [-Wincompatible-pointer-types]
2121 | rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
readline.c: At top level:
linking shared-object readline.so
make[2]: Leaving directory '/sw/ruby/ruby-3.0.0-rc1/ext/readline'
34% [297/854] ext/readline/readline.c
65% [557/854] lib/readline.rb

Any ideas? Thanks for any help you can give.

I don’t have an Ubuntu 20.04 server handy to check, but you may want to
check for whether you have libreadline, libreadline-dev, or one of the
version-specific variants installed:

If you continue to have issues with this, it might be worth posting to the
ruby-core mailing list instead of ruby-talk.

-a

···

On Wed, Dec 23, 2020 at 4:38 PM len zaifman <leonardz@sympatico.ca> wrote:

I can successfully build ruby3RC1 from source on Ubuntu 20.04. However
when I run make check I get a few function not implemented errors

The issue: Check2.log is output from make check 2>&1 | tee Check2.log
grep -i NotImplementedError Check2.log
NotImplementedError: basic_quote_characters() function is unimplemented
on this machine

NotImplementedError: emacs_editing_mode() function is unimplemented on
this machine

NotImplementedError: filename_quote_characters() function is
unimplemented on this machine

NotImplementedError: vi_editing_mode() function is unimplemented on this
machine
A google and check on this list turned up no useful hints. Are these
critical errors or are they warnings that do not matter?

If they matter where are these functions implemented?

Debugging information using ubuntu apt-file search

eg for one of them I see they should be in readline:
apt-file search basic_quote_characters
ruby2.7-doc:
/usr/share/ri/2.7.0/system/Readline/basic_quote_characters%3d-c.ri
ruby2.7-doc:
/usr/share/ri/2.7.0/system/Readline/basic_quote_characters-c.ri
ruby2.7-doc:
/usr/share/ri/2.7.0/system/Reline/Core/basic_quote_characters%3d-i.ri

Verify no errors in readline using Make2.log output from make 2>&1 | tee
Make2.log

so i checked readline in the make log file and see no hint it looks
error free
grep -i readline Make2.log
configuring readline
make[2]: Entering directory '/sw/ruby/ruby-3.0.0-rc1/ext/readline'
compiling readline.c
readline.c: In function ‘Init_readline’:
readline.c:2121:23: warning: assignment to ‘int (*)(const char *, int)’
from incompatible pointer type ‘int (*)(void)’
[-Wincompatible-pointer-types]
  2121 | rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
readline.c: At top level:
linking shared-object readline.so
make[2]: Leaving directory '/sw/ruby/ruby-3.0.0-rc1/ext/readline'
  34% [297/854] ext/readline/readline.c
  65% [557/854] lib/readline.rb

Any ideas? Thanks for any help you can give.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Austin Ziegler • halostatue@gmail.com • austin@halostatue.ca
http://www.halostatue.ca/http://twitter.com/halostatue

D'oh. That is exactly correct - i had libreadline but not libreadline-dev. Now check completes

3769 files, 30833 examples, 182594 expectations, 0 failures, 0 errors, 0 tagged
check succeededThank you Austin.

···

On 2020-12-23 8:43 p.m., Austin Ziegler wrote:

I don’t have an Ubuntu 20.04 server handy to check, but you may want to check for whether you have libreadline, libreadline-dev, or one of the version-specific variants installed:

https://packages.ubuntu.com/search?keywords=libreadline&searchon=names&suite=focal&section=all

If you continue to have issues with this, it might be worth posting to the ruby-core mailing list instead of ruby-talk.

-a

On Wed, Dec 23, 2020 at 4:38 PM len zaifman <leonardz@sympatico.ca > <mailto:leonardz@sympatico.ca>> wrote:

    I can successfully build ruby3RC1 from source on Ubuntu 20.04.
    However
    when I run make check I get a few function not implemented errors

    The issue: Check2.log is output from make check 2>&1 | tee Check2.log
    grep -i NotImplementedError Check2.log
    NotImplementedError: basic_quote_characters() function is
    unimplemented
    on this machine

    NotImplementedError: emacs_editing_mode() function is
    unimplemented on
    this machine

    NotImplementedError: filename_quote_characters() function is
    unimplemented on this machine

    NotImplementedError: vi_editing_mode() function is unimplemented
    on this
    machine
    A google and check on this list turned up no useful hints. Are these
    critical errors or are they warnings that do not matter?

    If they matter where are these functions implemented?

    Debugging information using ubuntu apt-file search

    eg for one of them I see they should be in readline:
    apt-file search basic_quote_characters
    ruby2.7-doc:
    /usr/share/ri/2.7.0/system/Readline/basic_quote_characters%3d-c.ri
    ruby2.7-doc:
    /usr/share/ri/2.7.0/system/Readline/basic_quote_characters-c.ri
    ruby2.7-doc:
    /usr/share/ri/2.7.0/system/Reline/Core/basic_quote_characters%3d-i.ri

    Verify no errors in readline using Make2.log output from make 2>&1
    > tee
    Make2.log

    so i checked readline in the make log file and see no hint it looks
    error free
    grep -i readline Make2.log
    configuring readline
    make[2]: Entering directory '/sw/ruby/ruby-3.0.0-rc1/ext/readline'
    compiling readline.c
    readline.c: In function ‘Init_readline’:
    readline.c:2121:23: warning: assignment to ‘int (*)(const char *,
    int)’
    from incompatible pointer type ‘int (*)(void)’
    [-Wincompatible-pointer-types]
     2121 | rl_pre_input_hook = (rl_hook_func_t
    *)readline_pre_input_hook;
    readline.c: At top level:
    linking shared-object readline.so
    make[2]: Leaving directory '/sw/ruby/ruby-3.0.0-rc1/ext/readline'
     34% [297/854] ext/readline/readline.c
     65% [557/854] lib/readline.rb

    Any ideas? Thanks for any help you can give.

    Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
    <mailto:ruby-talk-request@ruby-lang.org>?subject=unsubscribe>
    <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Austin Ziegler • halostatue@gmail.com <mailto:halostatue@gmail.com> • austin@halostatue.ca <mailto:austin@halostatue.ca>
http://www.halostatue.ca/http://twitter.com/halostatue

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>