You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compilepkg: open bazel-out/k8-fastbuild/bin/project_/_cgo_install.h: file exists
with context
ERROR: /home/user/cgo_test/BUILD.bazel:40:10: GoCompilePkg project.a failed: (Exit 1): builder failed: error executing command bazel-out/path/to/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src main.go -src add.c -src add.h -embedroot '' -embedroot ... (remaining 49 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
compilepkg: open bazel-out/k8-fastbuild/bin/project_/_cgo_install.h: file exists
Target //:project failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 7.345s, Critical Path: 1.49s
INFO: 41 processes: 6 internal, 35 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
Note
However after disabling nogo, build can pass
The text was updated successfully, but these errors were encountered:
xytan0056
changed the title
compilepkg for cgo targets fails with nogo enabled
compilepkg for cgo targets fails with nogo and --collect_code_coverage enabled
Jan 29, 2024
What version of rules_go are you using?
0.45.1
What version of gazelle are you using?
0.35.0
What version of Bazel are you using?
6.4.0
Does this issue reproduce with the latest releases of all the above?
yes
What operating system and processor architecture are you using?
Any other potentially useful information about your toolchain?
issue is reproducible, with or without hermetic C toolchain
What did you do?
minimal repro: https://github.com/xytan0056/cgo_test
force enable nogo here
What did you expect to see?
build pass
What did you see instead?
with context
Note
However after disabling
nogo
, build can passThe text was updated successfully, but these errors were encountered: