Forum: GNU Radio SVN Compiling Error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Michael D. (Guest)
on 2007-04-30 19:16
(Received via mailing list)
"Making all in swig
make[3]: *** No rule to make target `../../../../gnuradio-core/src/
lib/runtime/gr_simple_flowgraph.i', needed by
`gnuradio_swig_py_runtime.cc'.  Stop."

There is indeed no "gr_simple_flowgraph.i", and this is referenced in
the file:
gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.d

While I can temporarily work around this by removing that line from
the file, it would be better if someone corrected the issue. - MLD
Eric B. (Guest)
on 2007-04-30 19:41
(Received via mailing list)
On Mon, Apr 30, 2007 at 11:15:41AM -0400, Michael D. wrote:
> the file, it would be better if someone corrected the issue. - MLD
This is a problem with how we compute swig dependencies.  It's got
some bugs; patches are welcome.  The file in question isn't required,
it's just that the dependency file is out of date.


I believe that this will fix it:

 $ cd <top-of-your-gnuradio-build-tree>

 $ find . -name '*.d' -print0 | xargs -0 -L 1 cp /dev/null

 $ (./bootstrap && ./configure; make && make check && make install) 2>&1
| tee make.log


Eric
Johnathan C. (Guest)
on 2007-04-30 20:24
(Received via mailing list)
Eric B. wrote:

>> While I can temporarily work around this by removing that line from
>> the file, it would be better if someone corrected the issue. - MLD

Actually, removing the line in the (5) files that contain that is the
right thing to do.  It's a generated file, created locally on your
machine, not in the repository.  You can also replace it with a zero
length file of the same name (but don't just delete it); it will then
get regenerated.

Unfortunately, this issue crops up from time to time when we make
changes that remove .i files from the repository.  Our swig dependency
handling is broken here.  A fresh check-out into a new directory doesn't
have the problem.

--
Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com
Robert McGwier (Guest)
on 2007-04-30 20:46
(Received via mailing list)
At Jonathan's suggestion,  I did a make distclean.  THAT brick bat
through the window did the trick.  It now compiles and completes and
make check works.

Bob



Eric B. wrote:
>> While I can temporarily work around this by removing that line from
>  $ cd <top-of-your-gnuradio-build-tree>
> Discuss-gnuradio mailing list
> removed_email_address@domain.invalid
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


--
AMSAT Director and VP Engineering. Member: ARRL, AMSAT-DL,
TAPR, Packrats, NJQRP, QRP ARCI, QCWA, FRC. ARRL SDR WG Chair
"If you're going to be crazy, you have to get paid for it or
else you're going to be locked up." Hunter S. Thompson
Michael D. (Guest)
on 2007-04-30 21:58
(Received via mailing list)
On Apr 30, 2007, at 12:45 PM, Robert McGwier wrote:
> At Jonathan's suggestion,  I did a make distclean.  THAT brick bat
> through the window did the trick.  It now compiles and completes
> and make check works.

"make distclean" did indeed do the trick; should have tried that one
up front.  Must be the cold (sniff, achooo) & medications.

Now that it's getting further along (a clean checkout this time),
another issue:

should the file:  gnuradio-core/src/lib/io/io.i
include (as written now, but doesn't compile on OSX):
---
#include <gr_udp_sink.cc>
#include <gr_udp_source.cc>
---
or (as compiles on OSX):
---
#include <gr_udp_sink.h>
#include <gr_udp_source.h>
---

Here's the "svn diff"
---
Index: io.i
===================================================================
--- io.i        (revision 5192)
+++ io.i        (working copy)
@@ -35,8 +35,8 @@
#include <gr_message_source.h>
#include <gr_message_sink.h>
#include <gr_message_vector_source.h>
-#include <gr_udp_sink.cc>
-#include <gr_udp_source.cc>
+#include <gr_udp_sink.h>
+#include <gr_udp_source.h>
%}
Johnathan C. (Guest)
on 2007-04-30 22:04
(Received via mailing list)
Michael D. wrote:

> ---
> #include <gr_udp_sink.h>
> #include <gr_udp_source.h>

Fixed in the trunk, thanks...

--
Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com
Michael D. (Guest)
on 2007-04-30 23:41
(Received via mailing list)
Great!  SVN trunk is working again on OSX 10.4.9 (both PPC and
Intel) ... either clean or with "make distclean" if a bit old. - MLD
This topic is locked and can not be replied to.