-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
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
openssf-compiler-options: -Wl,-z,now
causes nvidia-device-plugin to fail to load
#34568
Comments
See: wolfi-dev#34568 Signed-off-by: dann frazier <[email protected]>
could have just change it to i guess that this pkg need to link with |
Related: #34568 Signed-off-by: dann frazier <[email protected]>
Yeah, that did work when I hacked it onto the end of the options in
That's right. |
https://github.com/chainguard-dev/melange/blob/main/pkg/build/pipelines/go/build.yaml |
Thanks @tuananh. That would provide a hook for passing a clean [...]
- uses: go/build
with:
packages: ./cmd/nvidia-device-plugin
ldflags: -extldflags="-Wl,-z,lazy"
output: test
- runs: |
exit 1
The spec-defined options just seem to be super sticky. |
yeah i tried it too and it didnt work. |
@dannf you can quickly escape all hardening by setting To keep all hardening, but use lazy binding do this:
The second step hopefully means "if -z now was not specified, and if -z lazy was not specified, add -z now". Such that if one manually specified either now or lazy on the commandline it wins, and the spec file doesn't add or do anything, creating an opt in. |
yeah i think it's better to keep all hardening but only do lazy binding. |
…ev#34569) Until `abseil-cpp-compiler-options` is available (which is blocked by a melange/apko issue), let's disable openssf-compiler-options to unblock building this package. Related: wolfi-dev#34568 Signed-off-by: dann frazier <[email protected]>
…ev#34569) Until `abseil-cpp-compiler-options` is available (which is blocked by a melange/apko issue), let's disable openssf-compiler-options to unblock building this package. Related: wolfi-dev#34568 Signed-off-by: dann frazier <[email protected]>
i wonder if this is a gcc bug! |
Filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117739 Added test case at https://github.com/wolfi-dev/os/pull/35016/files it appears that it is not possible to keep using |
Until `abseil-cpp-compiler-options` is available (which is blocked by a melange/apko issue), let's disable openssf-compiler-options to unblock building this package. Related: wolfi-dev#34568 Signed-off-by: dann frazier <[email protected]>
Until `abseil-cpp-compiler-options` is available (which is blocked by a melange/apko issue), let's disable openssf-compiler-options to unblock building this package. Related: wolfi-dev#34568 Signed-off-by: dann frazier <[email protected]>
Until `abseil-cpp-compiler-options` is available (which is blocked by a melange/apko issue), let's disable openssf-compiler-options to unblock building this package. Related: #34568 Signed-off-by: dann frazier <[email protected]>
Until `abseil-cpp-compiler-options` is available (which is blocked by a melange/apko issue), let's disable openssf-compiler-options to unblock building this package. Related: #34568 Signed-off-by: dann frazier <[email protected]>
I'm reporting this per https://github.com/orgs/wolfi-dev/discussions/33052.
I found that while a rebuild of
nvidia-device-plugin
w/openssf-compiler-flags
succeeds, the tests will fail:nvidia-device-plugin-build-and-test-fail.txt
nvidia-device-plugin-no-rebuild-test-ok.txt
The text was updated successfully, but these errors were encountered: