[Zephyr Main] WEST File Initialization Problem
Sorry - forwarding from the main mail list to devel@... On Thu, Mar 28, 2019 at 8:37 PM M Rizwan Ghori <rizwanghori@...> wrote:
--
|
|
Marti Bolivar <marti@...>
Hi, Happy to try to help, but could you please provide details? The below email is a bit vague: "commands given on the website cannot recognize the West file" doesn't provide much context on what went wrong. - what is your host operating system? - what commands did you type? - what was the output? - what output did you expect? Feel free to just copy and paste rather than taking screenshots of the terminal window. Thanks, Marti On Thu, Mar 28, 2019, 9:39 PM Brett Preston <bpreston@...> wrote:
|
|
M Rizwan Ghori <rizwanghori@...>
Hi,
Thank you for your kind response. I am using Ubuntu OS for the project. I have followed all the installation steps given on webpage (Linux)
https://docs.zephyrproject.org/latest/getting_started/installation_linux.html
Moreover, after following all the steps of aforementioned link, i started the next step given on the following link.
https://docs.zephyrproject.org/latest/getting_started/index.html#get-the-source-code
west --versionError Received on Execution of the aforementioned commands: No command 'west' found, did you mean: Command 'test' from package 'coreutils' (main) west: command not found
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
Universiti Sains Malaysia (USM),
From: Marti Bolivar <marti@...>
Sent: Friday, March 29, 2019 8:44:47 AM To: Brett Preston Cc: M Rizwan Ghori; devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi,
Happy to try to help, but could you please provide details? The below email is a bit vague: "commands given on the website cannot recognize the West file" doesn't provide much context on what went wrong.
- what is your host operating system?
- what commands did you type?
- what was the output?
- what output did you expect?
Feel free to just copy and paste rather than taking screenshots of the terminal window.
Thanks,
Marti
On Thu, Mar 28, 2019, 9:39 PM Brett Preston <bpreston@...> wrote:
|
|
Marti Bolivar <marti@...>
What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
M Rizwan Ghori <rizwanghori@...>
Dear,
I am using Ubuntu 18.04.
Moreover, the path of West file is after running the command
"pip3 show -f west"
is
home/rizwan/.local/python 3.6/packages
Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path
/home/rizwan/zaphyr
Kindly advise.
Rizwan
From: Marti Bolivar
Sent: Friday, 29 March, 12:43 pm
Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
To: M Rizwan Ghori
Cc: Brett Preston, devel@...
What version of Ubuntu are you using?
If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones.
Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again.
If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows.
Marti
On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Marti Bolivar <marti@...>
On Thu, Mar 28, 2019, 11:07 PM M Rizwan Ghori <rizwanghori@...> wrote:
Is this correct? The lack of / before "home" and the space between "python" and "3.6" makes me suspect this was retyped by hand instead of copy/pasted. Please copy/paste whenever possible; it avoids typos. If it is correct, please make sure this directory is on your PATH and try again as suggested. Again, it is better if you copy paste the actual commands you typed and their output. Please do not try to summarize the results or refer to online documents. It leaves me guessing about what is actually happening on your computer instead of showing me directly. Thanks, Marti
|
|
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Sent: Friday, March 29, 2019 6:08 AM To: Marti Bolivar <marti@...> Cc: Brett Preston <bpreston@...>; devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston,
devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
This is most likely what Marti said, you need to add ~/.local/bin to your PATH:
$ export PATH=$PATH:~/.local/bin
And try again.
If that works, you can make this change permanent via ~/.bashrc
Geoffroy
|
|
M Rizwan Ghori <rizwanghori@...>
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Kindly advise
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
School of Computer Sciences,
Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Sent: Friday, March 29, 2019 2:15 PM To: M Rizwan Ghori; Marti Bolivar Cc: Brett Preston; devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori
Cc: Brett Preston,
devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Carles Cufi
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From: devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Sent: 31 March 2019 08:13 To: VanCutsem, Geoffroy <geoffroy.vancutsem@...>; Marti Bolivar <marti@...> Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message):
Source directory equals build directory. In-source builds are not
supported. Please specify a build directory, e.g. cmake -Bbuild -H.
Call Stack (most recent call first):
CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Sent: Sunday, March 31, 2019 6:07 PM To: rizwanghori@...; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From: devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences,
Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Carles Cufi
Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Sent: 31 March 2019 19:58 To: Cufi, Carles <Carles.Cufi@...>; VanCutsem, Geoffroy <geoffroy.vancutsem@...>; Marti Bolivar <marti@...> Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
Did you set up a toolchain as per https://docs.zephyrproject.org/latest/getting_started/index.html#set-up-a-toolchain?
If so, make sure you source zephyr-env.sh before attempting to build any sample code.
Note: you can also use west directly to build the sample code (since you invested some time to set it up correctly) – short version: $ source ./zephyr-env.sh $ west build –b qemu_x86 samples/hello_world And that’s it.
Geoffroy
From: M Rizwan Ghori [mailto:rizwanghori@...]
Sent: Monday, April 1, 2019 1:14 PM To: Cufi, Carles <Carles.Cufi@...>; VanCutsem, Geoffroy <geoffroy.vancutsem@...>; Marti Bolivar <marti@...> Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear,
I am able to install the latest DTC version. Now i am stuck up with the following error while doing the HelloWorld.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 .. Zephyr version: 1.14.0 -- Selected BOARD qemu_x86 -- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6") CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message): Assertion failed: Zephyr toolchain variant invalid: please set the ZEPHYR_TOOLCHAIN_VARIANT-variable Call Stack (most recent call first): /home/mrg/zephyrproject/zephyr/cmake/generic_toolchain.cmake:47 (assert) /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:395 (include) CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
Best Regards
From: M Rizwan Ghori
Dear,
Thank you for your reply. I have run the command for hello world example advised by you. Now i am getting the error as follows while executing the command.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 .. Zephyr version: 1.14.0 -- Selected BOARD qemu_x86 -- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6") CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message): Assertion failed: The detected dtc version is unsupported.
The version was found to be 1.4.5 But the minimum supported version is 1.4.6 for how to use the SDK's dtc alongside a custom toolchain. Call Stack (most recent call first): /home/mrg/zephyrproject/zephyr/cmake/host-tools.cmake:67 (assert) /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:379 (include) CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
After this Error i tried to update the device tree compiler (dtc) and i am getting these errors after trying dtc x64 and i386 .
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ sudo apt install ./device-tree-compiler_1.4.7-1_i386.deb Reading package lists... Done E: Unsupported file ./device-tree-compiler_1.4.7-1_i386.deb given on commandline
KIndly advise. Best Regards RIzwan
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM), Private Email: rizwanghori@...
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
M Rizwan Ghori <rizwanghori@...>
Dear,
Thank you for your reply. I have run the command for hello world example advised by you.
Now i am getting the error as follows while executing the command.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
-- Selected BOARD qemu_x86
-- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message):
Assertion failed: The detected dtc version is unsupported.
The version was found to be 1.4.5
But the minimum supported version is 1.4.6
See https://docs.zephyrproject.org/latest/getting_started/
for how to use the SDK's dtc alongside a custom toolchain.
Call Stack (most recent call first):
/home/mrg/zephyrproject/zephyr/cmake/host-tools.cmake:67 (assert)
/home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:379 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
After this Error i tried to update the device tree compiler (dtc) and i am getting these errors after trying dtc x64 and i386 .
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ sudo apt install ./device-tree-compiler_1.4.7-1_i386.deb
Reading package lists... Done
E: Unsupported file ./device-tree-compiler_1.4.7-1_i386.deb given on commandline
KIndly advise.
Best Regards
RIzwan
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
School of Computer Sciences,
Universiti Sains Malaysia (USM),
HP: +60-189147161 USM Email: mrizwanghori@...
Private Email: rizwanghori@...
From: Cufi, Carles <Carles.Cufi@...>
Sent: Monday, April 1, 2019 3:37 PM To: M Rizwan Ghori; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
M Rizwan Ghori <rizwanghori@...>
Dear,
I am able to install the latest DTC version. Now i am stuck up with the following error while doing the HelloWorld.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
-- Selected BOARD qemu_x86
-- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message):
Assertion failed: Zephyr toolchain variant invalid: please set the
ZEPHYR_TOOLCHAIN_VARIANT-variable
Call Stack (most recent call first):
/home/mrg/zephyrproject/zephyr/cmake/generic_toolchain.cmake:47 (assert)
/home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:395 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
Best Regards
From: M Rizwan Ghori
Sent: Monday, April 1, 2019 4:02 PM To: Cufi, Carles; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem
Dear,
Thank you for your reply. I have run the command for hello world example advised by you.
Now i am getting the error as follows while executing the command.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0
-- Selected BOARD qemu_x86
-- Found west: /home/mrg/.local/bin/west (found suitable version "0.5.7", minimum required is "0.5.6")
CMake Error at /home/mrg/zephyrproject/zephyr/cmake/extensions.cmake:1104 (message):
Assertion failed: The detected dtc version is unsupported.
The version was found to be 1.4.5
But the minimum supported version is 1.4.6
See https://docs.zephyrproject.org/latest/getting_started/
for how to use the SDK's dtc alongside a custom toolchain.
Call Stack (most recent call first):
/home/mrg/zephyrproject/zephyr/cmake/host-tools.cmake:67 (assert)
/home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:379 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
After this Error i tried to update the device tree compiler (dtc) and i am getting these errors after trying dtc x64 and i386 .
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ sudo apt install ./device-tree-compiler_1.4.7-1_i386.deb
Reading package lists... Done
E: Unsupported file ./device-tree-compiler_1.4.7-1_i386.deb given on commandline
KIndly advise.
Best Regards
RIzwan
Best Regards
Muhammad Rizwan Ghori
USM Fellow,
School of Computer Sciences,
Universiti Sains Malaysia (USM),
HP: +60-189147161 USM Email: mrizwanghori@...
Private Email: rizwanghori@...
From: Cufi, Carles <Carles.Cufi@...>
Sent: Monday, April 1, 2019 3:37 PM To: M Rizwan Ghori; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This looks like there might be stale build files somewhere in your tree. Can you clean the tree and try again? You can use the following command, but please be careful since it will remove all files that are not tracked by Git:
$ cd $ZEPHYR_BASE $ git clean -fdx
Carles
From: M Rizwan Ghori <rizwanghori@...>
Dear All,
Thank you very much for your response. That problem is resolved by following your advised step. Moreover, now i was moving towards the HelloWorld example i received the following error.
mrg@mrg-Lenovo-ideapad-110-15ISK:~/zephyrproject/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=qemu_x86 ..
Zephyr version: 1.14.0 CMake Error at /home/mrg/zephyrproject/zephyr/cmake/app/boilerplate.cmake:104 (message): Source directory equals build directory. In-source builds are not supported. Please specify a build directory, e.g. cmake -Bbuild -H. Call Stack (most recent call first): CMakeLists.txt:3 (include)
Kindly advise.....
Best Regards Muhammad Rizwan Ghori USM Fellow, Universiti Sains Malaysia (USM),
From: Cufi, Carles <Carles.Cufi@...>
Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From:
devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences, Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From:
devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|
M Rizwan Ghori <rizwanghori@...>
Thank you for your help. I have successfully installed Zephyr.
Now basically i want to do project in Zephyr and will use ReNode for simulation purposes. As i am quite new in this area. I have already installed Zephyr and in my view renode as well. While going through the Re Node tutorial for Running Your First Demo i am
facing problem. I am using Ubuntu for my project. I have written following line in my Ubuntu Terminal and getting errors and unable to run the first demo.
rizwan@rizwan-virtual-machine:~/renode1/opt/renode/scripts/single-node$ include stm32f4_discovery.resc
include: command not found
rizwan@rizwan-virtual-machine:~/renode1/opt/renode/scripts/single-node$ renode
Command 'renode' not found, did you mean:
command 'recode' from deb recode
Try: sudo apt install <deb name>
rizwan@rizwan-virtual-machine:~/renode1/opt/renode/scripts/single-node$ cd /home/rizwan
rizwan@rizwan-virtual-machine:~$ renode
Command 'renode' not found, did you mean:
command 'recode' from deb recode
Try: sudo apt install <deb name>
rizwan@rizwan-virtual-machine:~$
Kindly advise.
Best Regards
Best Regards
From: Cufi, Carles <Carles.Cufi@...>
Sent: Sunday, March 31, 2019 6:07 PM To: rizwanghori@...; VanCutsem, Geoffroy; Marti Bolivar Cc: devel@... Subject: RE: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem Hi there,
This has been a bug that has popped up several times in the past with Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562
As mentioned by others, please add the following line you your ~/.bashrc:
export PATH=$PATH:~/.local/bin
Regards,
Carles
From: devel@... <devel@...>
On Behalf Of via Lists.Zephyrproject.Org
Dear,
Thank you all for the quick response. Here is the copy paste code.
runs fine, after this i have run the following command and it echos the error shown below.
Command 'west' not found, did you mean:
command 'test' from deb coreutils
Try: sudo apt install <deb name>
Name: west Version: 0.5.7 Summary: Zephyr RTOS Project meta-tool (wrapper and bootstrap) Home-page: https://github.com/zephyrproject-rtos/west Author: Zephyr Project Author-email: devel@... License: UNKNOWN Location: /home/mrg/.local/lib/python3.6/site-packages Requires: configobj, PyYAML, colorama, pykwalify Files: ../../../bin/west west-0.5.7.dist-info/DESCRIPTION.rst west-0.5.7.dist-info/INSTALLER west-0.5.7.dist-info/METADATA west-0.5.7.dist-info/RECORD west-0.5.7.dist-info/WHEEL west-0.5.7.dist-info/entry_points.txt west-0.5.7.dist-info/metadata.json west-0.5.7.dist-info/top_level.txt west/_bootstrap/__init__.py west/_bootstrap/__pycache__/__init__.cpython-36.pyc west/_bootstrap/__pycache__/main.cpython-36.pyc west/_bootstrap/__pycache__/version.cpython-36.pyc west/_bootstrap/main.py west/_bootstrap/version.py west/_bootstrap/west-schema.yml
Kindly advise
Best Regards Muhammad Rizwan Ghori USM Fellow, School of Computer Sciences,
Universiti Sains Malaysia (USM),
From: VanCutsem, Geoffroy <geoffroy.vancutsem@...>
Can you paste on this thread what the output of “pip3 show –f west” and “echo $PATH” return?
From: devel@... [mailto:devel@...]
On Behalf Of M Rizwan Ghori
Dear, I am using Ubuntu 18.04. Moreover, the path of West file is after running the command "pip3 show -f west" is home/rizwan/.local/python 3.6/packages Subsequently, i have installed all the stuff related to Zephyr including Cmake and Zephyr sdk in a path /home/rizwan/zaphyr Kindly advise.
Rizwan
From: Marti Bolivar Sent: Friday, 29 March, 12:43 pm Subject: Re: [Zephyr-devel] [Zephyr Main] WEST File Initialization Problem To: M Rizwan Ghori Cc: Brett Preston, devel@... What version of Ubuntu are you using? If you ran "pip3 install --user west" and west cannot be run afterwards, it sounds like the directory that the west binary was installed into is not on your $PATH. Older versions of Ubuntu sometimes have this issue; I forget which ones. Usually this directory is ~/.local/bin. Please ensure this directory is on your PATH environment variable and try again. If that doesn't work, you can confirm where west was installed by running "pip3 show -f west"; check both the Location: value and the [...]/bin/west relative path in the Files: list that follows. Marti On Thu, Mar 28, 2019, 10:22 PM M Rizwan Ghori <rizwanghori@...> wrote:
|
|