From 862ac87d192696b725b0addc65efd0f33d8ff44a Mon Sep 17 00:00:00 2001 From: dondavan Date: Tue, 4 Apr 2023 00:02:13 +0200 Subject: [PATCH 1/6] Added FreeBSD sed debug note --- content/en/docs/getting-started/_index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/getting-started/_index.md b/content/en/docs/getting-started/_index.md index 9b7e1d5d..51faf979 100644 --- a/content/en/docs/getting-started/_index.md +++ b/content/en/docs/getting-started/_index.md @@ -225,6 +225,10 @@ You can then build the unikernel with: ```console $ make ``` +**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** + + + Consider adding `-jX` with `X` being the number of CPUs in your machine to speed up the build process. From 634cbf1057cb3a0639f46336b2de0274416ac749 Mon Sep 17 00:00:00 2001 From: dondavan Date: Tue, 4 Apr 2023 00:17:47 +0200 Subject: [PATCH 2/6] docs/getting-started: Added FreeBSD sed debug note. --- content/en/docs/getting-started/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/getting-started/_index.md b/content/en/docs/getting-started/_index.md index 51faf979..e44e4aef 100644 --- a/content/en/docs/getting-started/_index.md +++ b/content/en/docs/getting-started/_index.md @@ -225,7 +225,7 @@ You can then build the unikernel with: ```console $ make ``` -**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** +**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure when executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** From a16e46e19211f626aac2321cd6795c0377c33769 Mon Sep 17 00:00:00 2001 From: dondavan Date: Tue, 4 Apr 2023 00:17:47 +0200 Subject: [PATCH 3/6] docs/getting-started: Added FreeBSD sed debug note. A bug occurs when I'm following intrutions from getting-started page to build Unikraft through Makefile, when executing make menuconfig: thhugh@sp-eduroam-192-119 app-helloworld % make menuconfig make[1]: Entering directory '/Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft' sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE Makefile:516: *** Target architecture () is currently not supported (could not find /Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft/arch///Makefile.uk).. Stop. make[1]: Leaving directory '/Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft' make: *** [Makefile:9: menuconfig] Error 2 This happened when unikraft/Makefile use sed to match host device architecture. My device: OS X Monterey, Version 12.5.1. And I got no problem into config menu in my VM, problem was located in different version of sed. Where OS X default uses OpenBSD sed caused problem, and GNU sed have no issues. So brew installed GNU sed and export to PATH, replaced OpenBSD sed, bug solved, no problem entering config menu. Suggested solution tested. Consider this problem is platfrom specific, so no change made in Makefile but add note at original page. Signed-off-by: Hugh Xu --- content/en/docs/getting-started/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/getting-started/_index.md b/content/en/docs/getting-started/_index.md index 51faf979..e44e4aef 100644 --- a/content/en/docs/getting-started/_index.md +++ b/content/en/docs/getting-started/_index.md @@ -225,7 +225,7 @@ You can then build the unikernel with: ```console $ make ``` -**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** +**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure when executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** From 66bc6e98d69f09896d69e06dcca56da6d44bdd76 Mon Sep 17 00:00:00 2001 From: dondavan Date: Tue, 4 Apr 2023 00:40:23 +0200 Subject: [PATCH 4/6] docs/getting-started: Added FreeBSD sed debug note. A bug occurs when I'm following intrutions from getting-started page to build Unikraft through Makefile, when executing make menuconfig: thhugh@sp-eduroam-192-119 app-helloworld % make menuconfig make[1]: Entering directory '/Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft' sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE Makefile:516: *** Target architecture () is currently not supported (could not find /Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft/arch///Makefile.uk).. Stop. make[1]: Leaving directory '/Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft' make: *** [Makefile:9: menuconfig] Error 2 This happened when unikraft/Makefile use sed to match host device architecture. My device: OS X Monterey, Version 12.5.1. And I got no problem into config menu in my VM, problem was located in different version of sed. Where OS X default uses OpenBSD sed caused problem, and GNU sed have no issues. So brew installed GNU sed and export to PATH, replaced OpenBSD sed, bug solved, no problem entering config menu. Suggested solution tested. Consider this problem is platfrom specific, so no change made in Makefile but add note at original page. Signed-off-by: Hugh Xu --- content/en/docs/getting-started/_index.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/en/docs/getting-started/_index.md b/content/en/docs/getting-started/_index.md index e44e4aef..4a02b2cd 100644 --- a/content/en/docs/getting-started/_index.md +++ b/content/en/docs/getting-started/_index.md @@ -216,6 +216,8 @@ This will allow us to select the target architecture (e.g., aarch64 or x86-64) a $ make menuconfig ``` +**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure when executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** + By default the build system selects x86-64 as target architecture, so we only have to choose a target platform. We will decide for KVM by navigating to the `Platform Configuration | KVM guest` option and selecting it. Afterwards, we save and exit the configuration menu. @@ -225,10 +227,6 @@ You can then build the unikernel with: ```console $ make ``` -**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure when executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** - - - Consider adding `-jX` with `X` being the number of CPUs in your machine to speed up the build process. From e77d9e06c8d212126631e4f064b2f9f6d36d5b5d Mon Sep 17 00:00:00 2001 From: dondavan Date: Tue, 4 Apr 2023 01:15:47 +0200 Subject: [PATCH 5/6] docs/getting-started: Added FreeBSD sed debug note. --- .DS_Store | Bin 0 -> 6148 bytes .hugo_build.lock | 0 content/en/docs/getting-started/_index.md | 3 ++- 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .DS_Store create mode 100644 .hugo_build.lock diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..04357647cc4b0788e4d5056c475ae3a1589d5fed GIT binary patch literal 6148 zcmeHK!D<^Z5PeD)+i?m>OAoyS_MC$uw;VT)mtsg;Xxe+6wd1&Tyv24Xx$V6_(nFx% z*HimuB*ID?(_08ZW2DhaZ={*Gqm>1~^l!$8z#f1Oi|C}w>H(2)DGk|jJ#VOu&N0Cn zxA=|;Rt@d2Ol2}AVpg{>i<-=T+Vj05XG zfpvm0qgZ3)Yl`hBQJSeM;U=kdwPJnb(*1>zuEo{ge zZF0f*Jp4ZfG9yiL(SVkTGwDZRSNz z{|EFq-;@)9#ZuT+-egZSm=^9li#E{(^I}GCn|ndH`&HwvMKm*xWro7{Uh=}jzE-3# z{DbHPv-STB2#59cm=+s_XSPUZ$Ld%|1|kEIfqMqz`;fAT&YZ5S)=vj3y#i1t>{el0 z{w|13>U8FGWi>}A#+p)FQ{%1}#+tJ~b-2vw%4%y4<1Qb@t!&&4#pvpsKUFwPW_7G1 z1Carrffx31PtN~*^Znm9icgV&$iTB=z$AmSL7ySHv$YYNoV6*-Ig5zkDy!9ml{=2L gAxH6B78Q=A(xA?quB>JcCH@gm8e$b0cvJ@d0fxOA5C8xG literal 0 HcmV?d00001 diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 00000000..e69de29b diff --git a/content/en/docs/getting-started/_index.md b/content/en/docs/getting-started/_index.md index 4a02b2cd..66fab612 100644 --- a/content/en/docs/getting-started/_index.md +++ b/content/en/docs/getting-started/_index.md @@ -216,7 +216,8 @@ This will allow us to select the target architecture (e.g., aarch64 or x86-64) a $ make menuconfig ``` -**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)), not [`GNU sed`](https://www.gnu.org/software/sed/), may cause failure when executing above command, you need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** +**Note: `OS X` is default shipped with [`FreeBSD sed`](https://man.freebsd.org/cgi/man.cgi?sed(1)) not [`GNU sed`](https://www.gnu.org/software/sed/), this may cause failure when executing above command.** +**You need to manually install `GNU sed` through `$ brew install gnu-sed` and export environment varibale `$ PATH="~/gnu-sed/libexec/gnubin:$PATH"`.** By default the build system selects x86-64 as target architecture, so we only have to choose a target platform. We will decide for KVM by navigating to the `Platform Configuration | KVM guest` option and selecting it. From 027455c3ad0179653403b90b5aa40a900b3b7df5 Mon Sep 17 00:00:00 2001 From: dondavan Date: Tue, 4 Apr 2023 01:16:14 +0200 Subject: [PATCH 6/6] docs/getting-started: Added FreeBSD sed debug note. A bug occurs when I'm following intrutions from getting-started page to build Unikraft through Makefile, when executing make menuconfig: thhugh@sp-eduroam-192-119 app-helloworld % make menuconfig make[1]: Entering directory '/Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft' sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE sed: 1: stdin: \1 not defined in the RE Makefile:516: *** Target architecture () is currently not supported (could not find /Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft/arch///Makefile.uk).. Stop. make[1]: Leaving directory '/Users/thhugh/Desktop/Unikraft/my-unikernel/unikraft' make: *** [Makefile:9: menuconfig] Error 2 This happened when unikraft/Makefile use sed to match host device architecture. My device: OS X Monterey, Version 12.5.1. And I got no problem into config menu in my VM, problem was located in different version of sed. Where OS X default uses OpenBSD sed caused problem, and GNU sed have no issues. So brew installed GNU sed and export to PATH, replaced OpenBSD sed, bug solved, no problem entering config menu. Suggested solution tested. Consider this problem is platfrom specific, so no change made in Makefile but add note at original page. Signed-off-by: Hugh Xu --- .DS_Store | Bin 6148 -> 0 bytes .hugo_build.lock | 0 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store delete mode 100644 .hugo_build.lock diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 04357647cc4b0788e4d5056c475ae3a1589d5fed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK!D<^Z5PeD)+i?m>OAoyS_MC$uw;VT)mtsg;Xxe+6wd1&Tyv24Xx$V6_(nFx% z*HimuB*ID?(_08ZW2DhaZ={*Gqm>1~^l!$8z#f1Oi|C}w>H(2)DGk|jJ#VOu&N0Cn zxA=|;Rt@d2Ol2}AVpg{>i<-=T+Vj05XG zfpvm0qgZ3)Yl`hBQJSeM;U=kdwPJnb(*1>zuEo{ge zZF0f*Jp4ZfG9yiL(SVkTGwDZRSNz z{|EFq-;@)9#ZuT+-egZSm=^9li#E{(^I}GCn|ndH`&HwvMKm*xWro7{Uh=}jzE-3# z{DbHPv-STB2#59cm=+s_XSPUZ$Ld%|1|kEIfqMqz`;fAT&YZ5S)=vj3y#i1t>{el0 z{w|13>U8FGWi>}A#+p)FQ{%1}#+tJ~b-2vw%4%y4<1Qb@t!&&4#pvpsKUFwPW_7G1 z1Carrffx31PtN~*^Znm9icgV&$iTB=z$AmSL7ySHv$YYNoV6*-Ig5zkDy!9ml{=2L gAxH6B78Q=A(xA?quB>JcCH@gm8e$b0cvJ@d0fxOA5C8xG diff --git a/.hugo_build.lock b/.hugo_build.lock deleted file mode 100644 index e69de29b..00000000