Go to file
2024-05-14 17:50:40 +03:00
cmake first commit 2024-05-14 17:46:35 +03:00
include/nix-gcc-multi-issue first commit 2024-05-14 17:46:35 +03:00
source first commit 2024-05-14 17:46:35 +03:00
test first commit 2024-05-14 17:46:35 +03:00
.gitignore first commit 2024-05-14 17:46:35 +03:00
build.sh first commit 2024-05-14 17:46:35 +03:00
CMakeLists.txt first commit 2024-05-14 17:46:35 +03:00
flake.lock first commit 2024-05-14 17:46:35 +03:00
flake.nix first commit 2024-05-14 17:46:35 +03:00
README.md update readme 2024-05-14 17:50:40 +03:00

nix-gcc-multi-issue

Sample project to show linkage problem in Nix devshell with multiStdenv.

Building

In the repo root:

nix develop
./build.sh

You get:

[2/3] Linking CXX shared library libnix-gcc-multi-issue.so.0.1.0
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/sgznwzgmsn3xxv1jg945d3rsaysjrzqc-gcc-13.2.0-lib/lib64/libstdc++.so when searching for -lstdc++
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/4zcyrsrdz7xmskwa06fprmyvzl3k8pb6-glibc-multi-2.39-31/lib/libm.so when searching for -lm
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/sgznwzgmsn3xxv1jg945d3rsaysjrzqc-gcc-13.2.0-lib/lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/sgznwzgmsn3xxv1jg945d3rsaysjrzqc-gcc-13.2.0-lib/lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/4zcyrsrdz7xmskwa06fprmyvzl3k8pb6-glibc-multi-2.39-31/lib/libc.so when searching for -lc
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/sgznwzgmsn3xxv1jg945d3rsaysjrzqc-gcc-13.2.0-lib/lib64/libgcc_s.so.1 when searching for libgcc_s.so.1
/nix/store/nd7ass1isid4vswpkfm82za4mcdwhzsm-binutils-2.41/bin/ld: skipping incompatible /nix/store/sgznwzgmsn3xxv1jg945d3rsaysjrzqc-gcc-13.2.0-lib/lib64/libgcc_s.so.1 when searching for libgcc_s.so.1