GithubHelp home page GithubHelp logo

Comments (3)

gcurtis avatar gcurtis commented on September 28, 2024

@jamesgecko I can't seem to reproduce this issue from a clean ARM64 Linux VM. Couple of followup questions:

  1. Were you ever using a different version of Ruby in this project before switching to [email protected]?
  2. Were there any other packages that had been in the devbox.json that you've since removed?
  3. Did you already try deleting .devbox/virtenv/ruby_2_7/ and then re-running bundle install && bundle exec rails?

I'm wondering if there was a package that put a newer version of gcc/glibc in $DEVBOX_PACKAGES_DIR/lib at one point. This would've caused bundler to compile/link the gems with GLIBC 2.38. But if that package got removed later, then the newer GLIBC would no longer be available.

from devbox.

jamesgecko avatar jamesgecko commented on September 28, 2024

To create the reproduction, I started a brand new devbox project and copy/pasted the devbox.json file from my original project into it. There was no preexisting .devbox for this project.

In the original project directory, I tried all sorts of different stuff in devbox.json. In this stack trace it's a date gem crashing. In the original project it was a postgresql gem crashing.

Is it possible there's something in my host NixOS setup that is problematic with the devbox environment? I thought that programs.nix-ld.enable = true; (used for remotely connecting with VSCode) might be problematic, but I disabled it. ran sudo nixos-rebuild switch, rebooted the vm, deleted .devbox, and things are still broken.

I'm wondering if there's something getting cached in my home directory that could be causing this? But another Rails devbox project I have that uses Ruby 3.1.3 is fine.

from devbox.

gcurtis avatar gcurtis commented on September 28, 2024

I upgraded my NixOS and now I'm able to reproduce it. I think I know why this is happening. When bundler installs the gems, it's using the stdenv's gcc which is linking against glibc 2.38. However, the ruby interpreter itself is linked against glibc 2.37.

I'm going to try out a couple potential fixes and see if something works.

from devbox.

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.