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

Ruby 3.3.0-dev build fail make [parse.c] Error 63 (GNU) Bison OOD #1496

Open
leotm opened this issue Feb 9, 2023 · 0 comments
Open

Ruby 3.3.0-dev build fail make [parse.c] Error 63 (GNU) Bison OOD #1496

leotm opened this issue Feb 9, 2023 · 0 comments
Labels
🦬 GNU Bison: parser gen (CFG -> LR/GLR) c C/C++ 💎 Ruby macOS make pre-release Pre-release version priority: low
Milestone

Comments

@leotm
Copy link
Owner

leotm commented Feb 9, 2023

Following-up

rbenv lists 3.3.0-dev but build failed (log)

rbenv install

Screenshot 2023-02-09 at 16 28 59

# bison
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison: missing operand after `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison'
Try `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison --help' for more information.
bison (GNU Bison) 2.3
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2006 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.

Upg local/CI bison (nb: build-bison-ruby)

ubuntu-22.04 apt pkgs also on 2.3
but not on macos-12 (macos-13 eta q2 2023 prob won't either)
so CI requires additional manual install (like latest cmake on ubuntu)

All GNU packages

Distribution of packages using Bison

Free software projects that use Bison may have a choice of whether to distribute the source code which their project feeds into Bison, or the resulting C code made output by Bison. Both are sufficient for a recipient to be able to compile the project source code. However, distributing only the input carries the minor inconvenience that the recipients must have a compatible copy of Bison installed so that they can generate the necessary C code when compiling the project. And distributing only the C code in output, creates the problem of making it very difficult for the recipients to modify the parser since this code was written neither by a human nor for humans - its purpose is to be fed directly into a C compiler.

These problems can be avoided by distributing both the input files and the generated code. Most people will compile using the generated code, no different from any other software package, but anyone who wants to modify the parser component can modify the input files first and re-generate the generated files before compiling. Projects distributing both usually do not have the generated files in their revision control systems. The files are only generated when making a release.

Some licenses, such as the GPL, require that the source code be in "the preferred form of the work for making modifications to it". GPL'd projects using Bison must thus distribute the files which are the input for Bison. Of course, they can also include the generated files.

@leotm leotm added the 💎 Ruby label Feb 9, 2023
@leotm leotm changed the title Ruby 3.3.0-dev listed build fails Ruby 3.3.0-dev listed build fail Feb 9, 2023
@leotm leotm added the make label Feb 9, 2023
@leotm leotm changed the title Ruby 3.3.0-dev listed build fail Ruby 3.3.0-dev build fail make parse.c Error 63 Feb 9, 2023
@leotm leotm added this to the Ruby matrix milestone Feb 9, 2023
@leotm leotm added macOS 🦬 GNU Bison: parser gen (CFG -> LR/GLR) c C/C++ labels Feb 9, 2023
@leotm leotm changed the title Ruby 3.3.0-dev build fail make parse.c Error 63 Ruby 3.3.0-dev build fail make parse.c Error 63 bison (GNU) Bison OOD Feb 12, 2023
@leotm leotm changed the title Ruby 3.3.0-dev build fail make parse.c Error 63 bison (GNU) Bison OOD Ruby 3.3.0-dev build fail make parse.c Error 63 bison (GNU) Bison OOD Feb 12, 2023
@leotm leotm changed the title Ruby 3.3.0-dev build fail make parse.c Error 63 bison (GNU) Bison OOD Ruby 3.3.0-dev build fail make parse.c Error 63 (GNU) Bison OOD Feb 12, 2023
@leotm leotm changed the title Ruby 3.3.0-dev build fail make parse.c Error 63 (GNU) Bison OOD Ruby 3.3.0-dev build fail make [parse.c] Error 63 (GNU) Bison OOD Feb 12, 2023
@leotm leotm modified the milestones: Ruby matrix, Bison v3 Feb 12, 2023
@leotm leotm added pre-release Pre-release version priority: low labels Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦬 GNU Bison: parser gen (CFG -> LR/GLR) c C/C++ 💎 Ruby macOS make pre-release Pre-release version priority: low
Projects
1337 - Template+
  
Awaiting triage
Development

No branches or pull requests

1 participant