musl-cross-make
musl-cross-make copied to clipboard
GCC 11.4.0 fails to build
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 *’
does this patch fix the issue ? https://gcc.gnu.org/git/?p=gcc.git;a=blobdiff;f=libiberty/simple-object-mach-o.c;h=a8869e7c63957d86d91d9987bbed40c8284fd253;hp=72b69d19c21627aa29347bc3798aa8f407965fc7;hb=38757aa88735ab2e511bc428e2407a5a5e9fa0be;hpb=6a64964212c8e5e10e474803d06a07514c1069b7
It does indeed, thank you! I've pushed a PR - #190