<div dir="ltr">Hi<div><br></div><div>I took a shot at compiling libbsd for x86_64. First issue is that freebsd calls this amd64 so the reebsd/sys/@ARCH@/include is looking for the wrong architecture name. Somehow the waf needs to map x86_64 to amd64.</div><div><br></div><div>I manually copied in_cksum.h into place and that left it failing to compile with this:</div><div><br></div><div>[ 257/2034] Compiling freebsd/crypto/openssl/crypto/aes/aes_core.c<br>../../freebsd/sbin/sysctl/sysctl.c:67:10: fatal error: sys/efi.h: No such file or directory<br>   67 | #include <sys/efi.h><br>      |          ^~~~~~~~~~~<br>compilation terminated.<br></div><div><br></div><div>Which points to this code:<br><br>#ifdef __amd64__<br>#include <sys/efi.h><br>#include <machine/metadata.h><br>#endif<br></div><div><br></div><div>There are other __amd64__ ifdefs in this file. Should I just disable these with ifdef rtems? Or should we pull the thread? I'm prone to try to disable the offending code fragments.</div><div><br></div><div>Comments and suggestions?</div><div><br></div><div>Thanks.</div><div><br></div><div>--joel</div></div>