ukontainer / frankenlibc

Tools for running rump unikernels in userspace
Other
4 stars 5 forks source link

Osx1015 fixes #9

Closed thehajime closed 3 years ago

thehajime commented 4 years ago

for track purpose too.

thehajime commented 4 years ago

https://github.com/ukontainer/frankenlibc/issues/5

10.15 の問題は、xcode11 の問題も含んでいそうでした (10.14+xcode11でも再現しました)。 参考までに。

retrage commented 4 years ago

macOS 10.15.4でビルドを試したところ,scripts/kconfig/confのSEGVを回避するために以下のpatchが必要なことがわかりました.

diff --git a/tools/lkl/Makefile.autoconf b/tools/lkl/Makefile.autoconf
index 9ab42b7ce333..2f02a5b96888 100644
--- a/tools/lkl/Makefile.autoconf
+++ b/tools/lkl/Makefile.autoconf
@@ -38,6 +38,7 @@ define macos_host
   KBUILD_CLANG_CFLAGS += -Wno-uninitialized -Wno-sometimes-uninitialized
   KBUILD_CLANG_CFLAGS += -Wno-address-of-packed-member -Wno-unused-value
   KBUILD_CLANG_CFLAGS += -Wno-return-stack-address
+  KBUILD_CLANG_CFLAGS += -fno-stack-check
   export KBUILD_CLANG_CFLAGS

   CFLAGS += $$(KBUILD_CLANG_CFLAGS)
thehajime commented 3 years ago

Fixes around 5e011e37dcceed4921b64e91d3b63bbb8fd990ef commit.