Package: arachne-pnr Version: 0.1+20180513git5d830dd-1 arachne-pnr fails to build on kfreebsd-amd64 because it cannot figure out how to find the path of the current executable:
src/util.cc:190:10: error: #error Dont know how to determine process executable base path! #error Dont know how to determine process executable base path! ^~~~~ <builtin>: recipe for target 'src/util.o' failed make[2]: *** [src/util.o] Error 1 Try this patch: diff --git a/src/util.cc b/src/util.cc index 15f9efd..e8d81c6 100644 --- a/src/util.cc +++ b/src/util.cc @@ -133,7 +133,7 @@ std::string proc_self_dirname() buflen--; return std::string(path, buflen); } -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) std::string proc_self_dirname() { char path[PATH_MAX]; Not tested. See "How do I detect kfreebsd with preprocessor directives in a C program?" in https://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ for more info Cheers Ruben