request of help


novello
 

I try to compile samples/hello_word
following the instruction on the web.
I'm using an ubuntu 16.04  64bit.
I find a mistake ...
It never find this tools ==> elftools.elf.elffile import ELFFile
I made pip install  pip install pyelftools  but i have the same mistake.
May You help me?
I want to compile forn stm32f4 have you got some suggestion?
May I use the lava tools for the test of my board? in with way ?
Best Regards end Thanks
Novello G.


Se the error...

cd  zephyr/zephyr-git/samples/hello_world
cd make BOARD=arduino_101
And I have this error in a ubuntu 16.04 64 bit
2]: Entering directory
'/home/novello/stm32/zephyr/zephyr-git/samples/hello_world/outdir/arduino_101'
   GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
   DTC     dts/x86/arduino_101.dts_compiled
   CHK     include/generated/generated_dts_board.conf
   UPD     include/generated/generated_dts_board.conf
   CHK     include/generated/generated_dts_board.conf
   Using /home/novello/stm32/zephyr/zephyr as source for kernel
   GEN     ./Makefile
   CHK     include/generated/version.h
   UPD     include/generated/version.h
   CHK     include/generated/generated_dts_board.h
   UPD     include/generated/generated_dts_board.h
   CHK     misc/generated/configs.c
   UPD     misc/generated/configs.c
   CHK     include/generated/offsets.h
Traceback (most recent call last):
   File "/home/novello/stm32/zephyr/zephyr/scripts/gen_offset_header.py",line
8, in
     from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'
/home/novello/stm32/zephyr/zephyr/./Kbuild:54: recipe for target
'include/generated/offsets.h' failed
make[3]: *** [include/generated/offsets.h] Error 1
/home/novello/stm32/zephyr/zephyr/Makefile:1085: recipe for target 'prepare'
failed
make[2]: *** [prepare] Error 2
make[2]: Leaving directory
'/home/novello/stm32/zephyr/zephyr-git/samples/hello_world/outdir/arduino_101'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/novello/stm32/zephyr/zephyr'
/home/novello/stm32/zephyr/zephyr/Makefile.inc:82: recipe for target 'all'
failed
make: *** [all] Error 2


Maciej Dębski <maciej.debski@...>
 

Hello Novello,

there was this informative e-mail on zephyr-devel group on 24th of July, which might help you:

Some changes are coming in to convert host build tools like gen_idt and gen_offset_header to Python, as well as some new tools to support memory protection which involve parsing DWARF information in the built ELF binaries.

 

To support this change, we will additionally require the Python 3 build of the pyelftools package, version 0.24 or later. You will need to install this on your development workstation. Please note that some Linux distristributions are out-of-date on this package, including the current version of Fedora and Ubuntu 16.04 and earlier. Because of this we recommend installing this via 'pip'. The documentation will be updated when the patches land, but in brief:

 

  pip3 install --user pyelftools

 

You may need to install the Python 3 version of pip, the package name on both Ubuntu and Fedora is 'python3-pip'.

also, be sure you did all the steps correctly from zephyr documentation:

That is it from me, I know it is not much, but I had a similar issue so I am trying to help. You surely have to look into your python packages, maybe someone else will provide you with more in-depth analysis. Good luck!


 

On Wed, Aug 30, 2017 at 2:21 PM, Novello Giampiero <novellogp64@...> wrote:
I try to compile samples/hello_word
following the instruction on the web.
I'm using an ubuntu 16.04  64bit.
I find a mistake ...
It never find this tools ==> elftools.elf.elffile import ELFFile
I made pip install  pip install pyelftools  but i have the same mistake.
May You help me?
I want to compile forn stm32f4 have you got some suggestion?
May I use the lava tools for the test of my board? in with way ?
Best Regards end Thanks
Novello G.


Se the error...

cd  zephyr/zephyr-git/samples/hello_world
cd make BOARD=arduino_101
And I have this error in a ubuntu 16.04 64 bit
2]: Entering directory
'/home/novello/stm32/zephyr/zephyr-git/samples/hello_world/outdir/arduino_101'
   GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
   DTC     dts/x86/arduino_101.dts_compiled
   CHK     include/generated/generated_dts_board.conf
   UPD     include/generated/generated_dts_board.conf
   CHK     include/generated/generated_dts_board.conf
   Using /home/novello/stm32/zephyr/zephyr as source for kernel
   GEN     ./Makefile
   CHK     include/generated/version.h
   UPD     include/generated/version.h
   CHK     include/generated/generated_dts_board.h
   UPD     include/generated/generated_dts_board.h
   CHK     misc/generated/configs.c
   UPD     misc/generated/configs.c
   CHK     include/generated/offsets.h
Traceback (most recent call last):
   File "/home/novello/stm32/zephyr/zephyr/scripts/gen_offset_header.py",line
8, in
     from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'
/home/novello/stm32/zephyr/zephyr/./Kbuild:54: recipe for target
'include/generated/offsets.h' failed
make[3]: *** [include/generated/offsets.h] Error 1
/home/novello/stm32/zephyr/zephyr/Makefile:1085: recipe for target 'prepare'
failed
make[2]: *** [prepare] Error 2
make[2]: Leaving directory
'/home/novello/stm32/zephyr/zephyr-git/samples/hello_world/outdir/arduino_101'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/novello/stm32/zephyr/zephyr'
/home/novello/stm32/zephyr/zephyr/Makefile.inc:82: recipe for target 'all'
failed
make: *** [all] Error 2


_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@lists.zephyrproject.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel



Boie, Andrew P
 

Per https://www.zephyrproject.org/doc/getting_started/installation_linux.html

You need to install python 3 dependencies with pip:

 

$ pip3 install --user -r scripts/requirements.txt

 

I wonder if there is a way to make this clearer, a few people have tripped over this.

 

Andrew

 

From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of Novello Giampiero
Sent: Wednesday, August 30, 2017 5:21 AM
To: devel@...
Subject: [Zephyr-devel] request of help

 

I try to compile samples/hello_word
following the instruction on the web.
I'm using an ubuntu 16.04  64bit.

I find a mistake ...

It never find this tools ==> elftools.elf.elffile import ELFFile

I made pip install  pip install pyelftools  but i have the same mistake.

May You help me?

I want to compile forn stm32f4 have you got some suggestion?

May I use the lava tools for the test of my board? in with way ?

Best Regards end Thanks

Novello G.

 

 

Se the error...

 

cd  zephyr/zephyr-git/samples/hello_world
cd make BOARD=arduino_101
And I have this error in a ubuntu 16.04 64 bit
2]: Entering directory
'/home/novello/stm32/zephyr/zephyr-git/samples/hello_world/outdir/arduino_101'
   GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
   DTC     dts/x86/arduino_101.dts_compiled
   CHK     include/generated/generated_dts_board.conf
   UPD     include/generated/generated_dts_board.conf
   CHK     include/generated/generated_dts_board.conf
   Using /home/novello/stm32/zephyr/zephyr as source for kernel
   GEN     ./Makefile
   CHK     include/generated/version.h
   UPD     include/generated/version.h
   CHK     include/generated/generated_dts_board.h
   UPD     include/generated/generated_dts_board.h
   CHK     misc/generated/configs.c
   UPD     misc/generated/configs.c
   CHK     include/generated/offsets.h
Traceback (most recent call last):
   File "/home/novello/stm32/zephyr/zephyr/scripts/gen_offset_header.py",line
8, in
     from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'
/home/novello/stm32/zephyr/zephyr/./Kbuild:54: recipe for target
'include/generated/offsets.h' failed
make[3]: *** [include/generated/offsets.h] Error 1
/home/novello/stm32/zephyr/zephyr/Makefile:1085: recipe for target 'prepare'
failed
make[2]: *** [prepare] Error 2
make[2]: Leaving directory
'/home/novello/stm32/zephyr/zephyr-git/samples/hello_world/outdir/arduino_101'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/novello/stm32/zephyr/zephyr'
/home/novello/stm32/zephyr/zephyr/Makefile.inc:82: recipe for target 'all'
failed
make: *** [all] Error 2