Skip to content

BUILD FAILED (macOS 12.0.1 using ruby-build 20211124) when attempting to install 2.7.5 #1829

@rogerluan

Description

@rogerluan
Downloading ruby-2.7.5.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.5.tar.bz2
Installing ruby-2.7.5...
ruby-build: using readline from homebrew

BUILD FAILED (macOS 12.0.1 using ruby-build 20211124)

Inspect or clean up the working tree at /var/folders/8x/w_jfxbw948jbzc3wx0p_d57h0000gn/T/ruby-build.20211130001953.62995.dK13Q9
Results logged to /var/folders/8x/w_jfxbw948jbzc3wx0p_d57h0000gn/T/ruby-build.20211130001953.62995.log

Last 10 log lines:
In file included from vm.c:350:
./vm_method.c:291:32: warning: cast to smaller integer type 'enum method_optimized_type' from 'void *' [-Wvoid-pointer-to-enum-cast]
            def->body.optimize_type = (enum method_optimized_type)opts;
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 1 error generated.
make: *** [vm.o] Error 1
make: *** Waiting for unfinished jobs....
1 warning generated.
1 warning generated.
1 warning generated.

I'm on macOS 12.0.1 on an M1 machine. I tried installing this in a bunch of different ways and the logs change a bit:

$ rbenv install 2.7.5
Downloading openssl-1.1.1l.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1
Installing openssl-1.1.1l...
Installed openssl-1.1.1l to /Users/rogerluan/.rbenv/versions/2.7.5

Downloading ruby-2.7.5.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.5.tar.bz2
Installing ruby-2.7.5...
ruby-build: using readline from homebrew

BUILD FAILED (macOS 12.0.1 using ruby-build 20211124)

Inspect or clean up the working tree at /var/folders/8x/w_jfxbw948jbzc3wx0p_d57h0000gn/T/ruby-build.20211129235418.6807.MV8nGA
Results logged to /var/folders/8x/w_jfxbw948jbzc3wx0p_d57h0000gn/T/ruby-build.20211129235418.6807.log

Last 10 log lines:
make[1]: *** [ext/readline/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling date_strptime.c
linking shared-object objspace.bundle
installing default date_core libraries
installing default console libraries
linking shared-object io/console.bundle
linking shared-object nkf.bundle
linking shared-object date_core.bundle
make: *** [build-ext] Error 2

When attempting to install 2.7.4:

image

Again, using arch -86_64 on M1 terminal:

image

Again, on Rosetta Terminal:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions