autc04 / Retro68

a gcc-based cross-compiler for classic 68K and PPC Macintoshes
GNU General Public License v3.0
537 stars 51 forks source link

Error compiling libelf on latest Arch Linux #212

Closed claunia closed 7 months ago

claunia commented 10 months ago

gcc --version:

gcc (GCC) 13.2.1 20230801
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Output

[  3%] Building C object libelf/CMakeFiles/ELF.dir/src/elf32_getphdr.c.o
In file included from /home/claunia/Retro68/libelf/src/elf32_getphdr.c:31:
/home/claunia/Retro68/libelf/src/config.h:56:1: warning: multi-line comment [-Wcomment]
   56 | //#define strong_alias(name, aliasname) \
      | ^
In file included from /home/claunia/Retro68/libelf/src/elf32_getphdr.c:40:
/home/claunia/Retro68/libelf/src/system.h:54:11: error: expected identifier or ‘(’ before ‘void’
   54 |         ((void *) ((char *) memcpy (dest, src, n) + (size_t) n))
      |           ^~~~
/home/claunia/Retro68/libelf/src/system.h:54:19: error: expected ‘)’ before ‘(’ token
   54 |         ((void *) ((char *) memcpy (dest, src, n) + (size_t) n))
      |                   ^
make[2]: *** [libelf/CMakeFiles/ELF.dir/build.make:146: libelf/CMakeFiles/ELF.dir/src/elf32_getphdr.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:282: libelf/CMakeFiles/ELF.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
autc04 commented 7 months ago

Should be fixed in 9dd5dca. Thanks for the report!