Bug #11607 2007-07-22 08:18

szczepan

No rule to make target `*.xrc', needed by `resources.zip'.

For a week or so I am unable to build from SVN (always fresh checkout, bootstrap, configure):

make[4]: Entering directory `/home/rulatir/works/CB/build/src/src/resources'

make[4]: *** No rule to make target `*.xrc', needed by `resources.zip'. Stop.

make[4]: Leaving directory `/home/rulatir/works/CB/build/src/src/resources'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/home/rulatir/works/CB/build/src/src/resources'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/rulatir/works/CB/build/src/src'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/rulatir/works/CB/build/src'

make: *** [all-recursive] Error 1

A related request is to add "build system" category to the bugtracker.

Category
 
Group
 
Status
Closed
Close date
2007-08-06 11:04
Assigned to
 
szczepan 2007-07-22 08:22

$ uname -a

Linux berbelek 2.6.21-ck #1 SMP PREEMPT Thu May 31 17:00:42 CEST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux

$ make --version

GNU Make 3.81

szczepan 2007-07-24 15:13
I found that the problem is introduced by 4267. Here is the SVN update log 4266->4267:


D    trunk/debian/dirs
D    trunk/debian/menu
U    trunk/debian/control
A    trunk/debian/codeblocks.package
A    trunk/debian/libwxsmithlib0-devel.install
A    trunk/debian/libcodeblocks0.install
A    trunk/debian/libwxsmithlib0.install
C    trunk/debian/changelog
U    trunk/debian/copyright
U    trunk/debian/docs
A    trunk/debian/codeblocks-devel.install
U    trunk/debian/rules
A    trunk/debian/codeblocks-contrib.install
A    trunk/debian/codeblocks.menu
A    trunk/debian/codeblocks.install
U    trunk/configure.in
D    trunk/src/sdk/scripting/sqstdlib/Makefile.orig
D    trunk/src/sdk/scripting/squirrel/Makefile.orig
D    trunk/src/sdk/scripting/sqplus/Makefile.orig
U    trunk/src/sdk/resources/lexers/lexer_perl.sample
U    trunk/src/sdk/resources/Makefile.am
U    trunk/src/plugins/contrib/profiler/resources/Makefile.am
U    trunk/src/plugins/contrib/envvars/Makefile.am
U    trunk/src/plugins/contrib/wxSmithContribItems/Makefile.am
U    trunk/src/plugins/contrib/source_exporter/Makefile.am
U    trunk/src/plugins/contrib/cb_koders/Makefile.am
U    trunk/src/plugins/contrib/dragscroll/Makefile.am
U    trunk/src/plugins/contrib/lib_finder/Makefile.am
U    trunk/src/plugins/contrib/symtab/resources/Makefile.am
A    trunk/src/plugins/contrib/codesnippets/codesnippets.1
U    trunk/src/plugins/contrib/codesnippets/Makefile.am
U    trunk/src/plugins/contrib/codesnippets/resources/Makefile.am
U    trunk/src/plugins/contrib/wxSmith/Makefile.am
U    trunk/src/plugins/contrib/help_plugin/Makefile.am
U    trunk/src/plugins/contrib/codestat/resources/Makefile.am
U    trunk/src/plugins/contrib/byogames/Makefile.am
U    trunk/src/plugins/contrib/Makefile.am
U    trunk/src/plugins/contrib/keybinder/Makefile.am
U    trunk/src/plugins/astyle/resources/Makefile.am
U    trunk/src/plugins/codecompletion/resources/Makefile.am
U    trunk/src/plugins/todo/resources/Makefile.am
U    trunk/src/plugins/classwizard/resources/Makefile.am
U    trunk/src/plugins/autosave/Makefile.am
U    trunk/src/plugins/compilergcc/resources/Makefile.am
U    trunk/src/plugins/Makefile.am
U    trunk/src/plugins/defaultmimehandler/resources/Makefile.am
U    trunk/src/plugins/projectsimporter/resources/Makefile.am
U    trunk/src/plugins/scriptedwizard/resources/Makefile.am
U    trunk/src/plugins/xpmanifest/Makefile.am
U    trunk/src/src/resources/Makefile.am
U    trunk/src/tools/cb_share_config/Makefile.am
A    trunk/src/tools/cb_share_config/cb_share_config.1
U    trunk/acinclude.m4
U    trunk/update_revision.sh

Hope this helps.
szczepan 2007-07-24 15:34
$ svn diff -c 4267 trunk/src/src/resources/Makefile.am
Index: trunk/src/src/resources/Makefile.am
===================================================================
--- trunk/src/src/resources/Makefile.am (wersja 4266)
+++ trunk/src/src/resources/Makefile.am (wersja 4267)
@@ -8,8 +8,8 @@
 dist_pkgdata_DATA = resources.zip start_here.zip
 CLEANFILES = $(pkgdata_DATA)

-resources.zip:
+resources.zip: *.xrc images/*.png images/16x16/*.png
        PWD=`pwd` cd $(srcdir) && zip $(PWD)/resources.zip *.xrc images/*.png images/16x16/*.png > /dev/null

-start_here.zip:
+start_here.zip: start_here/*.htm* start_here/*.png
        PWD=`pwd` cd $(srcdir)/start_here && zip $(PWD)/start_here.zip *.htm* *.png > /dev/null



Now why doesn't make find the *.xrc files?
biplab 2007-07-25 17:50

It works well in my PC. I've tested on Fedora 7 and Ubuntu 7.04 with C::B rev 4321 an it compiles well.

szczepan 2007-07-26 12:12

The bug only kicks in *when building out-of-source*. If you configure and build in trunk, you will not get this error.

This *IS* a bug since it disables a feature (out-of-source building) that used to work fine.

mandrav 2007-08-06 11:04

This bug is now fixed in HEAD.

Thank you for reporting it.

szczepan 2007-08-06 22:59

NOT FIXED!!!

There are multiple instances of this bug pattern in the build system. One was fixed, another one stops the show:

make[4]: Entering directory `/home/rulatir/works/CB/build/src/plugins/todo/resources'

make[4]: *** No rule to make target `*.xrc', needed by `todo.zip'. Stop.

make[4]: Leaving directory `/home/rulatir/works/CB/build/src/plugins/todo/resources'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/home/rulatir/works/CB/build/src/plugins/todo'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/rulatir/works/CB/build/src/plugins'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/rulatir/works/CB/build/src'

make: *** [all-recursive] Error 1

Please reopen!

szczepan 2007-09-06 20:20

Just to confirm that this bug, although closed slightly prematurely, is now fixed for real.