darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.55k stars 446 forks source link

conflicting types for '_Block_object_assign' #1415

Closed mimoccc closed 1 year ago

mimoccc commented 1 year ago

Build Log

[ 19%] Building C object src/external/dyld/CMakeFiles/system_loader.dir/src/glue.c.o
/home/mimo/Plocha/Mudita/darling/src/external/dyld/src/glue.c:1130:6: error: conflicting types for '_Block_object_assign'
void _Block_object_assign()
     ^
/home/mimo/Plocha/Mudita/darling/src/external/dyld/src/glue.c:1130:6: note: '_Block_object_assign' is a builtin with type 'void (void *, const void *, const int)'
1 error generated.
make[2]: *** [src/external/dyld/CMakeFiles/system_loader.dir/build.make:257: src/external/dyld/CMakeFiles/system_loader.dir/src/glue.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:17788: src/external/dyld/CMakeFiles/system_loader.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

System Information

| Software | Version | | Ubuntu | 23.04 | | Clang | 13.0.0 | | CMake | 3.25.1 | | Linux Kernel | 6.2.0-1010-lowlatency | | Darling | Git Commit Hash |

mimoccc commented 1 year ago

Can You please prepare package for Ubuntu 23.04? I am not into c, c++ and can not compile your project :) Thank You.

facekapow commented 1 year ago

This should be fixed on the master branch now, but it's strange you ran into this at all; no other systems have had this problem and I was unable to reproduce this myself.

Feel free to reopen this if it turns out it's still broken.

jevinskie commented 1 year ago

Weird, the builtin definition in LLVM has been non-void for 14/12+ years. Must have been some changes in diagnostics to detect and error on a mismatch.