Forum: GNU Radio Make error [svn revision 5708]

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.
Tarun T. (Guest)
on 2007-06-06 11:46
(Received via mailing list)
Hi,

Today I update the gnuradio from svn, and received following error in
make:

make[5]: Entering directory
`/home/tarun/gnuradio/gnuradio-core/src/lib/swig'
make[5]: *** No rule to make target
`../../../../gnuradio-core/src/lib/general/gr_dpll_ff.i', needed by
`gnuradio_swig_py_general.cc'.  Stop.

Then, I edited the Makefile.am in
../../../../gnuradio-core/src/lib/general/
and added gr_dpll_ff.{cc,h,i} but I got following error :

make[6]: Entering directory
`/home/tarun/gnuradio/gnuradio-core/src/lib/general'
make[6]: *** No rule to make target `gr_dpll_ff.cc', needed by
`gr_dpll_ff.lo'.  Stop.

Can somebody check the Makefile as I am not able to identify the
problem?

Thanks in advance.

Regards,
Tarun
UT Dallas
Trond D. (Guest)
on 2007-06-06 13:20
(Received via mailing list)
2007/6/6, Tarun T. <removed_email_address@domain.invalid>:
> Then, I edited the Makefile.am in
> Thanks in advance.
>
> Regards,
> Tarun
> UT Dallas

I just pulled a fresh copy from svn (rev.5708), ran ./bootstrap;
./configure; make. No problems so far. I recommend that you run
./bootstrap and ./configure again after pulling from svn. This ensures
that the generated Makefiles are updated according to the svn changes.

--
Trond D.
Johnathan C. (Guest)
on 2007-06-06 19:47
(Received via mailing list)
Trond D. wrote:

> I just pulled a fresh copy from svn (rev.5708), ran ./bootstrap;
> ./configure; make. No problems so far. I recommend that you run
> ./bootstrap and ./configure again after pulling from svn. This ensures
> that the generated Makefiles are updated according to the svn changes.

The real issue is that there are "stale" .d files in
gnuradio-core/src/lib/swig.  These files have lists of dependencies in
them, and one of the .i files listed has been deleted when updating svn.
You can't just delete the .d files because they themselves are listed as
a dependency in the Makefile.

The most precise way to update your working directory to build again is
to edit these .d files and remove the offending file name.  You can also
delete all the .d files in this directory, and let the build repopulate
them, by re-running ./configure.  One of the last things ./configure
does is to "touch" these files, and if they don't exist, they get
created.

The sledgehammer approach is to do a 'make distclean' followed by a full
rebuild.

The way the swig dependencies are tracked is broken here, but works well
for everything else, falling over only when the repository is updated
and a .i file that was previously there is removed.

Patches welcome :-)

--
Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com
This topic is locked and can not be replied to.