I am getting an error while building 2.7.6 on macOS 13.
The error is this :
In file included from vm.c:344:
./vm_insnhelper.c:5045:43: error: use of undeclared identifier
'RUBY_FUNCTION_NAME_STRING'
fprintf(stderr, "%s %s(%d):%p\n", RUBY_FUNCTION_NAME_STRING,
bf->name, bf->argc, bf->func_ptr);
I tried a bunch of recommendations that people have posted on the internet
(like delete and reinstall command line tools, install llvm, update brew
etc). But nothing seems to help.
The system was indeed recently updated to macOS 13 (Ventura). I already
have various Ruby versions installed and running on the same machine (the
latest being 2.7.1 installed before the system update).
Can someone please help me with this build error? Let me know if any more
information is needed.
The compiler I am using is this :
$ gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
···
--
Regards,
Srirang G Doddihal
Brahmana.
The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.
Build failure with Xcode 14 and macOS 13 (Ventura) Beta
Backport... for Ruby 2.7
···
On November 9, 2022 11:05:23 AM UTC, Srirang Doddihal <om.brahmana@gmail.com> wrote:
I am getting an error while building 2.7.6 on macOS 13.
$ gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0
but I did not get that email for some reason. Hence replying to my own
email.
Thank you Frank. I wasn't aware of that bug report. After reading that
and some more internet searching, I was able to install 2.7.6 with
ruby-install using the flag --enable-shared. I will now wait for
2.7.7.
I will also keep in mind to check for possible issues before updating
build tools in the future.
I was however not able to figure out how to specify the same file when
I build it directly by running configure and `make`. I will live with
it now as I have one working version of 2.7.6.
···
On Wed, Nov 9, 2022 at 4:35 PM Srirang Doddihal <om.brahmana@gmail.com> wrote:
Hi all,
I am getting an error while building 2.7.6 on macOS 13.
The error is this :
In file included from vm.c:344:
./vm_insnhelper.c:5045:43: error: use of undeclared identifier 'RUBY_FUNCTION_NAME_STRING'
fprintf(stderr, "%s %s(%d):%p\n", RUBY_FUNCTION_NAME_STRING, bf->name, bf->argc, bf->func_ptr);
I tried a bunch of recommendations that people have posted on the internet (like delete and reinstall command line tools, install llvm, update brew etc). But nothing seems to help.
The system was indeed recently updated to macOS 13 (Ventura). I already have various Ruby versions installed and running on the same machine (the latest being 2.7.1 installed before the system update).
Can someone please help me with this build error? Let me know if any more information is needed.
The compiler I am using is this :
$ gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
--
Regards,
Srirang G Doddihal
Brahmana.
The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.
I want to do it all ALONE.
--
Regards,
Srirang G Doddihal
Brahmana.
The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.
I was however not able to figure out how to specify the same file when
I build it directly by running configure and `make`. I will live with
it now as I have one working version of 2.7.6.
You pass --enable-shared as an option to configure:
./configure --enable-shared
Carlo
···
Subject: [ruby-talk:443109] Re: Error while building Ruby 2.7.6 on macOS 13 (Ventura)
Date: Wed 09 Nov 22 07:02:18PM +0530
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)