Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953025 - */*: go ebuilds fail if bcachefs is used for PORTAGE_TMPDIR because "go mod verify" fails, e.g., github.com/docker/distribution v2.8.3+incompatible: dir has been modified
Summary: */*: go ebuilds fail if bcachefs is used for PORTAGE_TMPDIR because "go mod v...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 18:44 UTC by lekto
Modified: 2025-04-08 07:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,2.13 KB, text/x-log)
2025-04-01 18:44 UTC, lekto
Details
emerge --info (emerge.info,6.01 KB, text/plain)
2025-04-01 18:44 UTC, lekto
Details
dmesg (dmesg,76.77 KB, text/plain)
2025-04-03 13:01 UTC, lekto
Details
build.log (dev-lang/go) (build.log,7.06 KB, text/x-log)
2025-04-08 07:25 UTC, Florian Schmaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2025-04-01 18:44:30 UTC
Created attachment 923473 [details]
build.log

> >>> Unpacking docker-compose-2.32.3-deps.tar.xz to /var/tmp/portage/app-containers/docker-compose-2.32.3/work
> go mod verify
> github.com/docker/distribution v2.8.3+incompatible: dir has been modified (/var/tmp/portage/app-containers/docker-compose-2.32.3/work/go-mod/github.com/docker/distribution@v2.8.3+incompatible)
> google.golang.org/protobuf v1.35.1: dir has been modified (/var/tmp/portage/app-containers/docker-compose-2.32.3/work/go-mod/google.golang.org/protobuf@v1.35.1)
Comment 1 lekto 2025-04-01 18:44:50 UTC
Created attachment 923474 [details]
emerge --info
Comment 2 Florian Schmaus gentoo-dev 2025-04-02 05:44:03 UTC
Which kind of filesystem is holding /var/tmp/portage (cause I am seeing similar failures when using bcachefs)?
Comment 3 lekto 2025-04-02 13:40:13 UTC
Yes, I have bcachefs, I tried to build it on tmpfs and it worked.
Comment 4 Florian Schmaus gentoo-dev 2025-04-03 09:26:53 UTC
Which kernel version do you use?
Comment 5 lekto 2025-04-03 13:00:59 UTC
>6.12.16-gentoo-dist #1 SMP PREEMPT_DYNAMIC Fri Feb 21 16:00:51 -00 2025

Also, there is a WARNING every boot in dmesg related to bcachefs.
Comment 6 lekto 2025-04-03 13:01:14 UTC
Created attachment 923543 [details]
dmesg
Comment 7 Florian Schmaus gentoo-dev 2025-04-08 07:21:13 UTC
I am making this a tracker bug for "go mod verify" failing on bcachefs volumes. I am seeing this for various other go ebuilds as well (e.g., dev-lang/go or dev-util/gitlab-runner).

This is very likely an upstream (bcachefs) issue regarding filesystem operation consistency and visibility.
Comment 8 Florian Schmaus gentoo-dev 2025-04-08 07:25:22 UTC
Created attachment 923915 [details]
build.log (dev-lang/go)

Attaching a build.log from dev-lang/go failing. Here, it does not seem to be "go mod verify" that is failing, but "go tool dist".