Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: implicit declaration of function 'rb_sys_fail_str' is invalid in C99 [-Werror,-Wimplicit-function-declaration] #3838

Open
4 of 12 tasks
CAMOBAP opened this issue Jul 31, 2021 · 0 comments

Comments

@CAMOBAP
Copy link

CAMOBAP commented Jul 31, 2021

1. What command did you run?

I ran:

  • rbenv install rbx-5.0
  • rbenv install rbx-4.20

2. What behavior did you expect?

I expected ...

3. What behavior did you get instead?

I observed

  • rbenv install rbx-5.0

    ...
    compiling gdbm.c
    gdbm.c:267:13: error: implicit declaration of function 'rb_sys_fail_str' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                rb_sys_fail_str(file);
                ^
    gdbm.c:267:13: note: did you mean 'rb_sys_fail'?
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/build/rubinius/machine/include/capi/ruby/   ruby.h:2061:17: note: 'rb_sys_fail' declared here
      NORETURN(void rb_sys_fail(const char* mesg));
                    ^
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/build/rubinius/machine/include/capi/ruby/   config.h:6:48: note: expanded from macro 'NORETURN'
    #define NORETURN(x) __attribute__ ((noreturn)) x
                                                   ^
    gdbm.c:752:11: error: implicit declaration of function 'RARRAY_CONST_PTR' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        ptr = RARRAY_CONST_PTR(pair);
              ^
    gdbm.c:752:9: warning: incompatible integer to pointer conversion assigning to 'const intptr_t *' (aka 'const long *') from 'int' [-Wint-conversion]
        ptr = RARRAY_CONST_PTR(pair);
            ^ ~~~~~~~~~~~~~~~~~~~~~~
    1 warning and 2 errors generated.
    make: *** [gdbm.o] Error 1
    rake aborted!
    Command failed with status (2): [make...]
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/rakelib/core.rake:167:in `block in    build_extension'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/rakelib/core.rake:139:in `chdir'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/rakelib/core.rake:139:in `build_extension'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/rakelib/core.rake:229:in `block (3 levels) in <   top (required)>'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731110816.23145.DiKqjg/rubinius-5.0/rakelib/core.rake:228:in `block (2 levels) in <   top (required)>'
    Tasks: TOP => install => build:build => core:build => codedb:extensions
    (See full trace by running task with --trace)
    

  • rbenv install rbx-4.20

    ...
    creating Makefile
    compiling gdbm.c
    gdbm.c:267:13: error: implicit declaration of function 'rb_sys_fail_str' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                rb_sys_fail_str(file);
                ^
    gdbm.c:267:13: note: did you mean 'rb_sys_fail'?
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/build/rubinius/machine/include/capi/ruby/ ruby.h:2061:17: note: 'rb_sys_fail' declared here
      NORETURN(void rb_sys_fail(const char* mesg));
                    ^
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/build/rubinius/machine/include/capi/ruby/ config.h:6:48: note: expanded from macro 'NORETURN'
    #define NORETURN(x) __attribute__ ((noreturn)) x
                                                   ^
    gdbm.c:752:11: error: implicit declaration of function 'RARRAY_CONST_PTR' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        ptr = RARRAY_CONST_PTR(pair);
              ^
    gdbm.c:752:9: warning: incompatible integer to pointer conversion assigning to 'const intptr_t *' (aka 'const long *') from 'int' [-Wint-conversion]
        ptr = RARRAY_CONST_PTR(pair);
            ^ ~~~~~~~~~~~~~~~~~~~~~~
    1 warning and 2 errors generated.
    make: *** [gdbm.o] Error 1
    rake aborted!
    Command failed with status (2): [make...]
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/rakelib/core.rake:167:in `block in  build_extension'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/rakelib/core.rake:139:in `chdir'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/rakelib/core.rake:139:in `build_extension'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/rakelib/core.rake:229:in `block (3 levels)  in <top (required)>'
    /private/var/folders/9_/plmb2sws0k1_8s29w7d6hqfh0000gn/T/ruby-build.20210731122444.98084.9E4eDA/rubinius-4.20/rakelib/core.rake:228:in `block (2 levels)  in <top (required)>'
    Tasks: TOP => install => build:build => core:build => codedb:extensions
    (See full trace by running task with --trace)
    

4. What version of Rubinius?

  • rbx-5.0
  • 4.20

5. What version of operating system?

Darwin MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64

6. What is your operating system distribution, if your operating system has more than one?

macOS Intel

> sw_vers
ProductName:	macOS
ProductVersion:	11.5
BuildVersion:	20G71

7. How did you build your version of Rubinius?

  • I used RVM.
  • I used ruby-build.
  • I used ruby-install.
  • I used rbenv.
  • I built manually from a tarball.
  • I built manually from a git clone.
  • I installed a binary.
  1. Does this issue involve proprietary code?
  • Yes, this issue involves proprietary code that I cannot share.
  • Yes, this issue involves proprietary code, but I am able to share it under certain conditions.
  • No, this issue doesn't involve proprietary code.
  1. Are you able to help us debug the issue?
  • Yes, I'm able to help debug, including running commands under lldb.
  • No, I'm not able help debug or I don't have time to help.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant