Skip to content
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

deb: Disable dh_dwz which can cause issues for go #396

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Oct 9, 2024

debbuild will automatically execute this dh_dwz target which, for some go builds, will error out like:

0.69 dwz: debian/msft-golang/usr/lib/msft-golang/bin/go: Found compressed .debug_abbrev section, not attempting dwz compression
40.69 dwz: debian/msft-golang/usr/lib/msft-golang/bin/gofmt: Found compressed .debug_abbrev section, not attempting dwz compression
40.69 dwz: Too few files for multifile optimization

This does what dh_golang does and overrides this so the target doesn't do anything.
We may want to make this opt-in in the future somehow (or scope it down to just go builds?).
Not really sure what a good approach will be here, but for now this is blocking being able to build certain packages.

@cpuguy83 cpuguy83 requested a review from a team as a code owner October 9, 2024 22:39
Copy link
Contributor

@adamperlin adamperlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an ok fix for now as it seems it is blocking, but it would be nice to try and make it configurable/scope to particular package builds in the future.

@djsly
Copy link

djsly commented Nov 7, 2024

@cpuguy83 cpuguy83 force-pushed the disable_dwz branch 4 times, most recently from e212d75 to 41692ce Compare November 7, 2024 19:06
This was not running CI when only template files were modified, which is
undesirable.
Instead of trying to include all the things we do want to run CI for,
use path exclusions to filter out the things we don't want to run CI
for.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
debbuild will automatically execute this `dh_dwz` target which, for some
go builds, will error out like:

  0.69 dwz: debian/msft-golang/usr/lib/msft-golang/bin/go: Found compressed .debug_abbrev section, not attempting dwz compression
  40.69 dwz: debian/msft-golang/usr/lib/msft-golang/bin/gofmt: Found compressed .debug_abbrev section, not attempting dwz compression
  40.69 dwz: Too few files for multifile optimization

This does what dh_golang does and overrides this so the target
doesn't do anything.
We may want to make this opt-in in the future somehow (or scope it down
to just go builds?).
Not really sure what a good approach will be here, but for now this is
blocking being able to build certain packages.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83
Copy link
Member Author

cpuguy83 commented Nov 7, 2024

Noticed that CI was not triggering on this due to filter rules in the github actions yaml.
I pushed a commit to resolve this.

@cpuguy83 cpuguy83 merged commit 01d29a4 into Azure:main Nov 7, 2024
9 checks passed
@cpuguy83 cpuguy83 deleted the disable_dwz branch November 7, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants