I’m struggling to build the unikernel on OSX. I’m following the instructions to 
build the toolchain for OSX as outlined in the ‘Building Manually’ section: 
https://github.com/rumpkernel/wiki/wiki/Howto:-Set-up-a-Rumprun-toolchain-in-Mac-OS-X

However I end up with this compile error when doing 'CC=x86_64-netbsd-gcc 
./build-rr.sh hw’ (though Xen is my target of choice for now, hw is a starting 
point):

--- compat_strtonum.lo ---
#   compile  mandoc/compat_strtonum.lo
cc -O -DOSNAME=\"NetBSD\ 7.99\" -DHAVE_CONFIG_H -I. -no-cpp-precomp 
-I/Users/rickp/src/rumpkernels/rumprun/obj-amd64-xen/rumptools/include/compat 
-I/Users/rickp/src/rumpkernels/rumprun/src-netbsd/tools/compat 
-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c -o compat_strtonum.lo.o    
/Users/rickp/src/rumpkernels/rumprun/src-netbsd/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/compat_strtonum.c
In file included from 
/Users/rickp/src/rumpkernels/rumprun/src-netbsd/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/compat_strtonum.c:1:
./config.h:59:17: error: expected parameter declarator
--- chars.lo ---
In file included from 
/Users/rickp/src/rumpkernels/rumprun/src-netbsd/tools/mandoc/../../external/bsd/mdocml/bin/mandoc/../../dist/chars.c:18:
./config.h:59:17: error: expected parameter declarator
--- compat_strtonum.lo ---
extern  size_t    strlcat(char *, const char *, size_t);
                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/secure/_string.h:111:44:
 note: expanded from macro ‘strlcat'

What have I missed?

Cheers,
Rick

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to