Closed ghost closed 1 year ago
Did you use the create-build-nilrt.sh
script to generate the docker container that pyrex uses?
If so, did you do anything different from what is requested in the README?
I'm going to close this issue, since there hasn't been any activity in a couple weeks. Let me know if you object.
Did you use the
create-build-nilrt.sh
script to generate the docker container that pyrex uses?If so, did you do anything different from what is requested in the README?
Hi @amstewart , I got this error too. I did use create-build-nilrt.sh script but still get this error. Do you have any other ideas about this issue? Thank you
@GccNoSharp or @SallyTYT:
Could you provide more information on the environment in which you are encountering this issue?
Let us know:
@mike-petersen-ni thank you for your reply. For your listed questions,
I will try with Ubuntu, thank you.
@SallyTYT I've tried a VM running a Minimal installation of CentOS 7.9.2009 (Core) and was able to successfully enter the environment and run a bitbake build. At a high level, the steps I took were:
sudo yum install git python3
docker
groupLet us know if you have suggestions to improve clarity in our instructions, or if you continue to encounter the issue.
@mike-petersen-ni It turns out that I was using the root user to execute all the commands, which led to the issue. I switched to a normal privileged user and added the user to the docker group, then it worked. Thank you very much!
I've been able to reproduce this issue by sourcing the ni-oe-init-build-env
script as root
. We'll look into improving the error reporting (AB#2350311). For now, it sounds like normal usage isn't causing problems; closing this item as resolved.
I run the env file as root, and got the error like:
INFO: Using /home/lab/Downloads/nilrt/nilrt/build as the OE build workspace. BB_NUMBER_THREADS=40 INFO: Using pyrex image: build-nilrt:hardknott useradd: user 'root' already exists Traceback (most recent call last): File "/usr/libexec/pyrex/entry.py", line 201, in <module> sys.exit(main()) File "/usr/libexec/pyrex/entry.py", line 105, in main subprocess.check_call( File "/usr/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['useradd', '--non-unique', '--uid', '0', '--gid', '0', '--groups', '0', '--home', '/root', '--no-create-home', '--shell', '/bin/sh', 'root']' returned non-zero exit status 9.