richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCC 11.4.0 fails to build

krant opened this issue · comments

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 *’

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