Comments (6)
Okay! As long as the issue is resolved. I think there still might be a MSYS GCC-12 -specific issue, but I'm fine closing for now.
from prism.
Interesting — it looks like your C compiler isn't happy with the enum being used as the index of the array. I'm really not sure why. This looks fixable though.
from prism.
I need to know the version of your compiler. I'm not entirely sure how to retrieve it on windows (my windows knowledge is very little...). I can see it's MinGW, but I can't tell the version. Maybe gcc --version
will do it?
from prism.
Alright, after a couple of attempts I found it. Had to launch UCRT64 and type gcc -v
:
$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\msys64\ucrt64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-12.2.0/configure --prefix=/ucrt64 --with-local-prefix=/ucrt64/local --build=
x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header
-dir=/ucrt64/include --libexecdir=/ucrt64/lib --enable-bootstrap --enable-checking=release --with-ar
ch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-sha
red --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynam
ic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-
lto --enable-libgomp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --dis
able-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/ucrt64 --with-mpfr=/ucr
t64 --with-mpc=/ucrt64 --with-isl=/ucrt64 --with-pkgversion='Rev4, Built by MSYS2 project' --with-bu
gurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --disable-libstdcxx-
debug --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (Rev4, Built by MSYS2 project)
from prism.
@Tofpu I've tried to reproduce this and found the gem installed fine for me. I am on Windows 11 rather than 10, but I don't think that's the issue. You're running an older version of msys. Is this required? I can't say for certain that there's a GCC bug that's been addressed in newer releases, but the gem cleanly installed for me with GCC 13.2. That's the version that was installed by RubyInstaller for both Ruby 3.3.0 and 3.3.1 for me.
PS C:\Ruby33-x64\msys64> ridk version
---
ruby:
path: C:/Ruby33-x64
version: 3.3.1
platform: x64-mingw-ucrt
ruby_installer:
package_version: 3.3.1-1
git_commit: 88d8c1f
msys2:
path: C:\Ruby33-x64\msys64
cc: gcc (Rev6, Built by MSYS2 project) 13.2.0
sh: GNU bash, version 5.2.26(1)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.22631.3296]
# gcc -v
Using built-in specs.
COLLECT_GCC=C:\Ruby33-x64\msys64\ucrt64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/Ruby33-x64/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-13.2.0/configure --prefix=/ucrt64 --with-local-prefix=/ucrt64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/ucrt64/include --libexecdir=/ucrt64/lib --enable-bootstrap --enable-checking=release --with-arch=nocona --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts --enable-libstdcxx-time --disable-libstdcxx-pch --enable-lto --enable-libgomp --disable-libssp --disable-multilib --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/ucrt64 --with-mpfr=/ucrt64 --with-mpc=/ucrt64 --with-isl=/ucrt64 --with-pkgversion='Rev6, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --disable-libstdcxx-debug --enable-plugin --with-boot-ldflags=-static-libstdc++ --with-stage1-ldflags=-static-libstdc++
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Rev6, Built by MSYS2 project)
I'd be curious to see if the problem goes away for you with a newer msys installation.
from prism.
Okay, I reinstalled everything with RubyInstaller (which is my first time, the previous installation was from another indirect source I suppose) and tried installing prism and it worked. Thank you guys for the quick assistance!
from prism.
Related Issues (20)
- Lex difference for self assignment HOT 2
- Prism rejects valid (?) syntax that CRuby accepts: `break while false` HOT 2
- Lex difference for heredoc with zero indentation and line continuation
- Heredoc flagged with `Layout/HeredocIndentation` creates infinite loop in rubocop HOT 2
- Warning/error messages mismatching HOT 6
- Installation in devcontainer fails on Apple Silicon HOT 2
- Handle modifications for interpolated string into regexp literal
- Investigate SyntaxError#path changed errors
- ConstantReadNode in ClassNode#constant_path or ModuleNode#constant_path is not just a constant read HOT 1
- Better scope prism's C API
- Gitpull
- Running zeitwerk unit tests raise `NameError: uninitialized constant` HOT 1
- Prism accepts double wildcard with no required fields in pattern match HOT 2
- `Prism::Translation::RubyParser` - Match operator HOT 3
- `Prism::Translation::RubyParser` - Interpolated adjacent strings
- CRuby test failures
- Consideration of PM_INDEX_WRITE_NODE HOT 4
- `eval` handles non-standard shebang differently
- `Parser::Translator` is accepting certain regexp flags where `parser` would raise HOT 1
- Allow generating ctags via prism
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prism.