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

GCC 11.4.0 fails to build #189

Open
krant opened this issue May 11, 2024 · 3 comments · May be fixed by #190
Open

GCC 11.4.0 fails to build #189

krant opened this issue May 11, 2024 · 3 comments · May be fixed by #190

Comments

@krant
Copy link

krant commented May 11, 2024

TARGET is aarch64-linux-musl, 11.2.0 builds all right.
Host is Arch Linux with GCC 14.

../../src_gcc/libiberty/simple-object-mach-o.c: In function ‘simple_object_mach_o_write_segment’:
../../src_gcc/libiberty/simple-object-mach-o.c:1231:17: error: passing argument 1 of ‘set_32’ from incompatible pointer type [-Wincompatible-pointer-types]
 1231 |         set_32 (&index[i], index[i]);
      |                 ^~~~~~~~~
      |                 |
      |                 unsigned int *
../../src_gcc/libiberty/simple-object-mach-o.c:1231:17: note: expected ‘unsigned char *’ but argument is of type ‘unsigned int *’
@krant krant linked a pull request May 11, 2024 that will close this issue
@krant
Copy link
Author

krant commented May 11, 2024

It does indeed, thank you!
I've pushed a PR - #190

@mwetterw
Copy link

The issue not only happens on aarch64, but also on arm.

I tested both:

  • aarch64-linux-musl
  • arm-linux-musleabihf

The PR is fixing both issues at once!
I would really like to see this patch merged.

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 a pull request may close this issue.

3 participants