← Back to issue list

fork/exec error when building Go rock with the 24.04 build-base

View original Github issue

Metadata

Project
rockcraft
Number
#579
Type
issue
State
open
Author
gruyaume
Labels
Created
Updated
Closed

Current evaluation

Go rock with ubuntu@24.04 build-base fails at runtime (fork/exec: no such file) due to missing base-files slice; reporter confirmed base-files_lib fixes it. Root cause (usrmerge) now documented; per-plugin package docs suggestion deferred to internal discussion.

Suggested action: close stale

Reason: The reporter confirmed the maintainer's fix ('thank you, indeed this does solve the issue'), so the reported bug is resolved via a one-line stage-packages change, and the underlying usrmerge/base-files requirement is now documented in docs/explanation/usrmerge.rst (rockcraft#1003) with a Go plugin example. The only open thread — per-plugin minimal package docs — was explicitly deferred to internal discussion by the maintainer as 'risky', with no follow-up in ~2.3 years of inactivity.

Impact: 30 Quick Win: 21.0 Staleness: 85 Complexity: 30 Confidence: 80 Support Request: 65

Issue body

### Bug Description I am getting errors when trying to build Go rocks with the 24.04 `build-base`. With the rockcraft.yaml file referenced below, the rock works fine with Ubuntu 22.04, but not with 24.04. ### To Reproduce 1. Pack the rock 2. Convert to skopeo 3. Docker run the rock 4. Pebble exec bin/<bin name> ### Environment - rockcraft 1.3.2 ### rockcraft.yaml ```shell name: sdcore-amf base: bare build-base: ubuntu@24.04 version: '1.4.1' summary: SD-Core AMF description: SD-Core AMF license: Apache-2.0 platforms: amd64: arm64: parts: amf: plugin: go source: https://github.com/gruyaume/amf.git source-type: git source-branch: dev-tls build-snaps: - go/1.21/stable stage-packages: - libc6_libs organize: bin/cmd: bin/amf ``` ### Relevant log output ```shell guillaume@thinkpad:~$ docker exec eb04758477aa pebble exec /bin/amf error: cannot perform the following tasks: - Execute command "/bin/amf" (fork/exec /bin/amf: no such file or directory) ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 21.0
Staleness: 85
Complexity: 30
Confidence: 80
Support Request: 65
close stale Go rock with ubuntu@24.04 build-base fails at runtime (fork/exec: no such file) due to missing base-files slice; reporter confirmed base-files_lib fixes it. Root cause (usrmerge) now documented; per-plugin package docs suggestion deferred to internal discussion.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 20
Confidence: 85
Support Request: 30
close stale Go rock build fails on Ubuntu 24.04 due to missing base-files_lib. Resolved via workaround; maintainer noted upstream dependency changes. Inactive for over two years with no further updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 20
close stale Go rock build fails with fork/exec error on Ubuntu 24.04 build-base due to missing base-files_lib dependency. Resolved by maintainer with a workaround, though internal discussion on plugin requirements remains open.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 30
Confidence: 85
Support Request: 60
close stale User reports fork/exec error when running Go binaries in rocks built with Ubuntu 24.04 build-base. Maintainer identified missing base-files_lib dependency as the cause and provided a workaround. Discussion stalled over a year ago.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 30
close stale Building Go rocks with Ubuntu 24.04 build-base fails with fork/exec errors. Resolved via base-files_lib slice workaround. Maintainer cites upstream dependency changes and will internally discuss improving plugin requirement documentation.

Update history

No update history recorded yet.

Related work

  • Related To: rockcraft#1003 (confidence 75%)

    docs: add usrmerge explanation — documents exactly this failure mode (go plugin + base-files on ubuntu@24.04) and the required base-files stage package.

Related issues

No related issues found above the similarity threshold.