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

FIX: ONIE Build Error | Multilib | Locale-gen #1012

Open
tchandramohan opened this issue Oct 7, 2022 · 0 comments
Open

FIX: ONIE Build Error | Multilib | Locale-gen #1012

tchandramohan opened this issue Oct 7, 2022 · 0 comments

Comments

@tchandramohan
Copy link

tchandramohan commented Oct 7, 2022

Hi,

I created this ticket to serve as a fix to people encountering the same issue.
This issue was previously posted here: #972

When I was building ONIE for a KVM_x86_64 target, the build kept failing.
The commands I used are:
build@f1063a996da6:~/src/onie/build-config$: make MACHINE=kvm_x86_64 all
When this did not work, naturally, I tried to run -> make distclean

The reason why it failed can be seen in the below trace:
In particular, the build fails at the multilib package. After diving into the error, it can be seen that the type for the locale variables inside the container are of the type -> POSIX
You can verify this by running the command -> locale

image
image

The fix to this issue lies in editing the Dockerfile before launching the container.

Below, I am attaching two screenshots: One screenshot shows the original dockerfile & the other shows the changes made to it.
The modified dockerfile forcefully sets all environment variables to the format en_US.UTF-8
Use the modified dockerfile to launch the container and log in
(steps described here: https://github.com/opencomputeproject/onie/blob/master/contrib/build-env/README.md)

Original Dockerfile:
image

Modified Dockerfile (changes to be made indicated with a red rectangle bounding box):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant