Hi

I'm running into problems with rumprun toolchain on Mac. Hints would be welcome.

I have followed instructions for a manual build from:
https://github.com/rumpkernel/wiki/wiki/Howto:-Set-up-a-Rumprun-toolchain-in-Mac-OS-X
and everything builds fine.

However, then, running
CC=x86_64-netbsd-gcc ./build-rr.sh hw
fails. The first problem is a reported missing header errno.h (and later others) when dependencies for libc / GCDAProfiling.c are being created. The toolchain does not seem play very well with the '--sysroot=/..../dest' option and then appending the default header file suffix '/usr/include' to it. To get experimentally over this problem I have added option -I=/usr/include and then this particular problem was gone (ie headers from ..../dest/usr/include were used).

Next crash comes when one of the headers depends on compiler default macros/defines __INT64_TYPE__ and alike. I have dumped all the defines from the toolchain and this one (and similar) is not there. Bad ...
A check at https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
tells that these macros are occasionally not defined when GCC does not support stdint.h on a given system. However, config.log from building the toolchain claims that stdint.h is fine.

Anyone has run into similar problems on Mac?

Thanks for help!
Miroslav

Reply via email to