We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I’m able to successfully build Nixpkgs’s go package from source on ext4, but it always fails to build when I use bcachefs.
go
Make sure that you have the Nix package manager installed.
If you don’t already have one, create a clone of the Nixpkgs repo by running this command:
git clone https://github.com/NixOS/nixpkgs
Change directory into the Nixpkgs repo by running this command:
cd <path-to-nixpkgs>
(Optional) Check out the exact commit that I used to reproduce this issue by running this command:
git switch --detach 0e2d2f87f0f61065ee6ccb979a1213691e74dbac
Try to build the go package by running this command:
nix --extra-experimental-features 'nix-command flakes' build --rebuild .#go
Running phase: unpackPhase @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking source archive /nix/store/g505pdc3npn66q6zv4bm8qf0m7v3fk53-go1.23.4.src.tar.gz source root is go setting SOURCE_DATE_EPOCH to timestamp 1732739240 of file go/test/zerosize.go Running phase: patchPhase @nix { "action": "setPhase", "phase": "patchPhase" } applying patch /nix/store/jg85m60rkl8cc0ambjfdbnz1ji05imaj-iana-etc-1.17.patch patching file src/net/lookup_unix.go Hunk #1 succeeded at 17 (offset -4 lines). patching file src/net/port_unix.go Hunk #1 succeeded at 16 (offset -1 lines). applying patch /nix/store/lpny9090x9zqalnn1m20lx0qvnxlsi04-mailcap-1.17.patch patching file src/mime/type_unix.go Hunk #1 succeeded at 25 (offset -1 lines). applying patch /nix/store/sa0jl7m895b8jkgvi8lzl10s2i8js2x2-tzdata-1.19.patch patching file src/time/zoneinfo_unix.go Hunk #1 succeeded at 19 with fuzz 2 (offset 1 line). applying patch /nix/store/x48d0s4gns4jrck6qkwrpqn7nh9ygpx6-remove-tools-1.11.patch patching file src/go/build/build.go Hunk #1 succeeded at 2053 (offset 345 lines). patching file src/runtime/extern.go Hunk #1 succeeded at 354 with fuzz 2 (offset 125 lines). applying patch /nix/store/80kb5cbl593pqsw6fcshljl4i02bbww6-go_no_vendor_checks-1.22.patch patching file src/cmd/go/internal/modload/vendor.go patching script interpreter paths in . ./misc/wasm/go_wasip1_wasm_exec: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./misc/wasm/go_js_wasm_exec: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./misc/ios/clangwrap.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/sh" ./lib/time/update.bash: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/syscall/mksysnum_plan9.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/sh" ./src/syscall/mkall.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/syscall/mkerrors.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/runtime/race/mkcgo.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/make.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/buildall.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmp.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/bootstrap.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/run.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/all.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/go/doc/comment/mkstd.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/compile/internal/ssa/_gen/cover.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/sh" ./src/cmd/vendor/golang.org/x/sys/plan9/mkerrors.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/vendor/golang.org/x/sys/plan9/mkall.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/vendor/golang.org/x/sys/windows/mkerrors.bash: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/cmd/vendor/golang.org/x/sys/windows/mkknownfolderids.bash: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/race.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/clean.bash: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/crypto/internal/boring/build.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/crypto/internal/boring/build-goboring.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" ./src/crypto/internal/boring/build-boring.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/5mh7kaj2fyv8mk4sfq1brwxgc02884wi-bash-5.2p37/bin/bash" Running phase: updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } Running phase: configurePhase @nix { "action": "setPhase", "phase": "configurePhase" } no configure script, doing nothing Running phase: buildPhase @nix { "action": "setPhase", "phase": "buildPhase" } real-time non-blocking time (microseconds, -R) unlimited core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 63246 max locked memory (kbytes, -l) 8192 max memory size (kbytes, -m) unlimited open files (-n) 1048576 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 63246 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited /build/go/src /build/go Building Go cmd/dist using /nix/store/nmv48ld5z5f4wiijcsnbdr0ah6zjcivz-go-1.21.0-linux-amd64-bootstrap/share/go. (go1.21.0 linux/amd64) Building Go toolchain1 using /nix/store/nmv48ld5z5f4wiijcsnbdr0ah6zjcivz-go-1.21.0-linux-amd64-bootstrap/share/go. Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. Building Go toolchain2 using go_bootstrap and Go toolchain1. go: unlinkat /build/go-build3469699815/b147: directory not empty go tool dist: FAILED: /build/go/pkg/tool/linux_amd64/go_bootstrap install -pgo=off cmd/asm cmd/cgo cmd/compile cmd/link cmd/preprofile: exit status 1
The text was updated successfully, but these errors were encountered:
I have same experience on go bootstarp with bcachefs
Sorry, something went wrong.
No branches or pull requests
I’m able to successfully build Nixpkgs’s
go
package from source on ext4, but it always fails to build when I use bcachefs.Steps to Reproduce
Make sure that you have the Nix package manager installed.
If you don’t already have one, create a clone of the Nixpkgs repo by running this command:
Change directory into the Nixpkgs repo by running this command:
(Optional) Check out the exact commit that I used to reproduce this issue by running this command:
Try to build the
go
package by running this command:Log
The text was updated successfully, but these errors were encountered: