Build of example fails with waf

Gene Smith gds at
Thu Aug 25 03:06:41 UTC 2016

I tried to use the waf tools on linux to build one of the examples. It 
has been over a year since I worked with rtems and was originally using 
waf that I installed back in June/July 2015. When I do the configure 
step I see this error (waf version is current since I have now updated waf):

gene at hplt timer]$ /home/gene/bin/waf configure 
--rtems-tools=/home/gene/rtems/install/4.12/tools/ --rtems-bsps=arm/stm32f4

Waf: The wscript in '/home/gene/rtems/examples-v2/led/timer' is unreadable

Traceback (most recent call last):
line 104, in waf_entry_point
line 135, in set_main_module
line 349, in load_module
   File "/home/gene/rtems/examples-v2/led/timer/wscript", line 7, in 
     import rtems_waf.rtems as rtems
ImportError: No module named rtems_waf.rtems

I then obtained waf from github and rebuilt and installed it and see the 
same thing with the latest version, 1.9.3.

Other tests:
[gene at hplt timer]$ which waf
[gene at hplt timer]$ waf --version
waf 1.9.3 (d31398c4a3e8b8f055821d3db6cf6d2ef1b09a40)

waf with no options produces the same error about wscript being unreadable.

I saw something in the waf issue list about this error having something 
to do with a directory at or above /home being unreadable by "others". 
All directories from /home up to the wscript show r-x in the "other" 

The Makefile build method for the app still works OK.


More information about the users mailing list