Open hfingler opened 5 years ago
I was able to make it compile by adding a CPPFLAG (based on the openjdk Makefile):
diff --git a/python3/Makefile b/python3/Makefile
index 7d8f8ab..0d4cef4 100644
--- a/python3/Makefile
+++ b/python3/Makefile
@@ -16,7 +16,7 @@ build/python: build/Makefile
PYTHON_CONF_ENV += \
LDFLAGS="-static -static-libgcc -L${RUMPRUN_PKGS_DIR}/lib" \
- CPPFLAGS="$(CPPFLAGS) -static -I${RUMPRUN_PKGS_DIR}/include" \
+ CPPFLAGS="$(CPPFLAGS) -static -I${RUMPRUN_PKGS_DIR}/include -I${RUMPRUN_SYSROOT}/include" \
CFLAGS="$(CFLAGS) -static" \
CC=$(RUMPRUN_CC) \
PYTHON_FOR_BUILD=$(shell pwd)/build/hostdist/bin/python3 \
Don't know if this is the final solution to this issue, so I'm not creating a PR for now. I'll create it if a dev says it's fine.
I'm running into the same issues as #109
I compiled rumprun (
CC=cc ./build-rr.sh xen
), exportedRUMPRUN_TOOLCHAIN_TUPLE=x86_64-rumprun-netbsd
(output below), cloned this repo and was following the python README. When I run make I get the following error:Here's the output for the build:
Following one of the comments on the previous issues, I ran:
x86_64-rumprun-netbsd-gcc -print-sysroot
, which gave me/home/hfingler/rumprun/./rumprun/rumprun-x86_64
. I then opened/home/hfingler/rumprun/./rumprun/rumprun-x86_64/include/sys/sysctl.h
and searched forKERN_ARND
and it is defined there.The offending file is including
<sys/sysctl.h>
.Someone in that issue solved it by changing the libressl version, but that didn't work for me. I changed the version in
UPSTREAM=http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.4.2.tar.gz
to2.8.2
and2.6.0
; neither worked.Can anyone help me fix this?
Thanks.