NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.46k stars 12.96k forks source link

pulumi package error glibc 2.38 when used with dotnet #323279

Open relcodedev opened 4 days ago

relcodedev commented 4 days ago

Describe the bug

I created a pulumi c# project and ran pulumi import

Diagnostics: pulumi:pulumi:Stack (kv-pulumi-test-dev): /home/username/.dotnet/dotnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.38' not found (required by /nix/store/bn7pnigb0f8874m6riiw6dngsmdyic1g-gcc-13.3.0-lib/lib/libstdc++.so.6) /home/username/.dotnet/dotnet: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.36' not found (required by /nix/store/bn7pnigb0f8874m6riiw6dngsmdyic1g-gcc-13.3.0-lib/lib/libstdc++.so.6)

linux mint 21.3 latest nix used nix-env --install pulumi pulumi-3.120.0 dotnet 8.302 install using script from Microsoft- not using nix version of dotnet because I need the latest version.

ldd --version
ldd (GNU libc) 2.39

strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC latest is GLIBC_2.35

Expected behavior

A clear and concise description of what you expected to happen.

when I run pulumi import it works correctly. When I download pulumi binaries directly, they work correctly.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.


 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.0-113-generic, Linux Mint, 21.3 (Virginia), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.23.0`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

I assume the issue is that dotnet was not install from nix and therefore uses the operating system libc and not the one installed from nix. I am trying to switch from brew to nix and this was the only issue I ran into. I have read many of the other articles but I thought this was a different scenario.

eclairevoyant commented 4 days ago

Doesn't seem like a nixpkgs issue if you didn't use the package from nixpkgs. BTW, getting-started questions are best asked on Discourse, for future reference.

RAVENz46 commented 13 hours ago

@relcodedev Is the environment.memoryAllocator.provider option set to something other than libc? I had a similar issue when I use jupyter.

Edit: I realized that host os is mint. Sorry.