Build of example fails with waf

Gene Smith gds at chartertn.net
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=/home/gene/rtems/install/4.12/bsps 
--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):
   File 
"/home/gene/bin/.waf-1.9.3-bf020ddd7d8b8682bd602ed140c8d064/waflib/Scripting.py", 
line 104, in waf_entry_point
 
set_main_module(os.path.normpath(os.path.join(Context.run_dir,Context.WSCRIPT_FILE)))
   File 
"/home/gene/bin/.waf-1.9.3-bf020ddd7d8b8682bd602ed140c8d064/waflib/Scripting.py", 
line 135, in set_main_module
     Context.g_module=Context.load_module(file_path)
   File 
"/home/gene/bin/.waf-1.9.3-bf020ddd7d8b8682bd602ed140c8d064/waflib/Context.py", 
line 349, in load_module
     exec(compile(code,path,'exec'),module.__dict__)
   File "/home/gene/rtems/examples-v2/led/timer/wscript", line 7, in 
<module>
     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
~/bin/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" 
position.

The Makefile build method for the app still works OK.

-gene





More information about the users mailing list