tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.85k stars 320 forks source link

compiler-rt build fails with several warnings and syntax errors #308

Closed ancwrd1 closed 2 years ago

ancwrd1 commented 2 years ago

Trying to build compiler-rt under openSUSE Tumbleweed with clang13 (it's the default version now). The osxcross toolchain builds fine, however compiler-rt throws several warnings and syntax errors like this:

osxcross: warning: possibly dangerous include path specified: '-I /usr/include'
...
In file included from /home/dmitry/devel/osxcross/build/compiler-rt/compiler-rt/lib/orc/macho_platform.cpp:13:
In file included from /home/dmitry/devel/osxcross/build/compiler-rt/compiler-rt/lib/orc/macho_platform.h:16:
In file included from /home/dmitry/devel/osxcross/build/compiler-rt/compiler-rt/lib/orc/common.h:16:
In file included from /home/dmitry/devel/osxcross/build/compiler-rt/compiler-rt/lib/orc/c_api.h:22:
/usr/include/stdlib.h:102:32: error: expected ';' after top level declarator
     __THROW __attribute_pure__ __nonnull ((1)) __wur;
                               ^
                               ;