Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/getting-started: Added FreeBSD sed debug note. #226

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dondavan
Copy link

@dondavan dondavan commented Apr 3, 2023

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 [email protected]

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @dondavan.
Please squash your commits into one, it should follow the structure presented here.
Do you know if this only happend with OS X? I would say something like Some operating systems (e.g. OS X) are shipped with .....

@razvand
Copy link
Contributor

razvand commented Aug 19, 2024

@dondavan , could you please see @StefanJum 's comments and rebase the PR?

@razvand razvand self-assigned this Aug 19, 2024
@razvand razvand added the enhancement New feature or request label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants