← 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

Bare Go rocks on ubuntu@24.04 need base-files_lib for the usrmerged ELF-loader paths. The reporter confirmed that adding the slice fixes the fork/exec failure.

Suggested action: close not a bug

Reason: The reporter confirmed that adding base-files_lib resolves the failure, and the maintainer explained that Ubuntu 24.10 removed a dependency Chisel had effectively supplied while Chisel intentionally makes no package assumptions. Because a bare rock requires explicit runtime packages, this is an incomplete package list rather than a Go-plugin execution bug; automatically adding defaults would be a separate, risky feature.

Evaluated by: mr-cal-bot

Impact: 38 Quick Win: 16 Complexity: 52 Confidence: 91 Actionability: 86

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
stealth/space-bunny-alpha
Impact: 38
Quick Win: 16
Complexity: 52
Confidence: 91
Actionability: 86
close not a bug Bare Go rocks on ubuntu@24.04 need base-files_lib for the usrmerged ELF-loader paths. The reporter confirmed that adding the slice fixes the fork/exec failure.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 12
Complexity: 50
Confidence: 70
Actionability: 60
keep open User reports fork/exec error building Go rocks with ubuntu@24.04 build-base; workaround is adding base-files_lib. Maintainer acknowledged the discoverability gap and said it would be discussed internally.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 21
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.

Update history

No update history recorded yet.

Related work

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

    The later usrmerge documentation explains Ubuntu 24.04's base-files and symlink behavior, though it does not directly add the missing slice.

Related issues

No related issues found above the similarity threshold.