[omniORB] [PATCH] "No rule to make target `__init__.py'" error when running 'make clean && make'

Robert Day Robert.Day at metaswitch.com
Tue Mar 19 15:51:32 GMT 2013


I've found that, after running "make clean" or "make veryclean" on the omniORBpy source code, further attempts to run "make" fail with this error:

-I/usr/local/share/idl/omniORB/COS  -I/usr/local/share/idl/omniORB  -I/usr/local/idl/omniORB  -I/usr/local/idl/omniORB/COS  -I../../idl  -I../../idl/COS  -I/usr/local/share/idl/omniORB  -I/usr/local/share/idl/omniORB/COS -bpython /usr/local/share/idl/omniORB/COS/TimeBase.idl
make[2]: *** No rule to make target `__init__.py', needed by `all'.  Stop.
make[2]: Leaving directory `/usr/local/src/omniORBpy/python/COS'
dir.mk:9: recipe for target `all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/src/omniORBpy/python'
dir.mk:4: recipe for target `all' failed
make: *** [all] Error 1

Steps to reproduce:
tar xvzf omniORBpy-3-latest.tar.gz
cd omniORBpy
./configure && make clean && make

It looks as though the source code includes a python/COS/__init__.py file, which "make clean" removes, but for which there's no target in the makefile (so it can't be recreated). I've verified this on both omniORBpy3.6 and on the latest nightly snapshot.

I've fixed this by adding a rule to make __init__.py by echoing "#Empty file" to it (recreating the checked-in __init__.py), which works, but may not be the best approach (I'm not very familiar with all the details of Makefiles).

I've attached a full log (the output of "./configure && make veryclean && make", compressed) and my proposed patch. Let me know if you'd like any more information.

Best,
Rob Day

-------------- next part --------------
A non-text attachment was scrubbed...
Name: python_COS_dir.mk.patch
Type: application/octet-stream
Size: 438 bytes
Desc: python_COS_dir.mk.patch
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130319/5babb287/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniorbpy_make.log.gz
Type: application/x-gzip
Size: 4024 bytes
Desc: omniorbpy_make.log.gz
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130319/5babb287/attachment.gz>


More information about the omniORB-list mailing list