nix develop
, but not nix-shell
, breaks cc-wrapper's handling of spaces in file paths #311
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#311
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Yes really.
In Meson's log, looking for ld's invocation we get:
fuck me.
The g++ invocation has something similar, of course:
But in
nix-shell
, everything works just fine.And contrary to what we::Qyriad thought, this isn't a generic bug in Nixpkgs' cc-wrapper that
nix-shell
is unbreaking:works just fine.
See also: https://github.com/NixOS/nixpkgs/issues/177952
Fixing this is (imo) likely to be impossible, without rethinking massively how
nix develop
works.The bug here is: Each output of the derivation used as baseline for
develop
is replaced, from/nix/store/eeeeeeeeee[..]eeee-xil
to/tmp/Xil Project/outputs/out
, etc. However, it's not possible for Nix itself to know whether the output was already quoted, if it should be quoted, or if something else is going on with it.