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

honggfuzz fails to build with binutils ≥ 2.39 #233

Open
jtojnar opened this issue Jun 11, 2024 · 2 comments
Open

honggfuzz fails to build with binutils ≥ 2.39 #233

jtojnar opened this issue Jun 11, 2024 · 2 comments

Comments

@jtojnar
Copy link

jtojnar commented Jun 11, 2024

Trying to work around #79, I tried building cargo-bolero with honggfuzz feature but that fails:

  linux/bfd.c: In function 'arch_bfdDisasm':
  linux/bfd.c:231:5: error: too few arguments to function 'init_disassemble_info'
    231 |     init_disassemble_info(&info, instr, arch_bfdFPrintF);
        |     ^~~~~~~~~~~~~~~~~~~~~
  In file included from linux/bfd.c:29:
  /nix/store/ydgpn6fvm1wlhxdk4x8a4hs29nzm1shg-binutils-2.41-dev/include/dis-asm.h:480:13: note: declared here
    480 | extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream,
        |             ^~~~~~~~~~~~~~~~~~~~~
  make: *** [Makefile:263: linux/bfd.o] Error 1

Apparently, there was a breaking change in binutils 2.39, that added another argument to the function.

  • cargo-bolero: 0.11.1
@jtojnar
Copy link
Author

jtojnar commented Jun 11, 2024

Looks like this is fixed in honggfuzz master: google/honggfuzz@37e8e81

@camshaft
Copy link
Owner

Sounds good. I'll pull the latest from honggfuzz.

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

No branches or pull requests

2 participants