Giter Site home page Giter Site logo

Fails to install gem on Windows 10 about prism HOT 6 CLOSED

Tofpu avatar Tofpu commented on July 29, 2024
Fails to install gem on Windows 10

from prism.

Comments (6)

kddnewton avatar kddnewton commented on July 29, 2024 1

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.

kddnewton avatar kddnewton commented on July 29, 2024

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.

kddnewton avatar kddnewton commented on July 29, 2024

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.

Tofpu avatar Tofpu commented on July 29, 2024

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.

nirvdrum avatar nirvdrum commented on July 29, 2024

@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.

Tofpu avatar Tofpu commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.