[Tack-devel] util/data/build.mk:34: recipe for target '/tmp/ack-build/obj/util/data/em_flag.c' fail
Moved to https://github.com/davidgiven/ack
Brought to you by:
dtrg
From: Paul D. <duf...@zo...> - 2021-03-01 00:53:52
|
While compiling https://codeload.github.com/davidgiven/ack/tar.gz/release-6-0-pre-5 I get: [...] util/ack/files.c: In function ‘rmtemps’: util/ack/files.c:151:18: warning: ‘return’ with no value, in function returning non-void 151 | if ( t_flag>1 ) return ; | ^~~~~~ util/ack/files.c:146:1: note: declared here 146 | rmtemps() { | ^~~~~~~ util/ack/files.c: At top level: util/ack/files.c:161:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 161 | add_input(file,phase) path *file ; trf *phase ; { | ^~~~~~~~~ util/ack/files.c: In function ‘add_input’: util/ack/files.c:165:3: warning: implicit declaration of function ‘vprint’ [-Wimplicit-function-declaration] 165 | vprint("Adding %s to inputs of %s\n", | ^~~~~~ util/ack/files.c:176:2: warning: implicit declaration of function ‘l_add’; did you mean ‘gr_add’? [-Wimplicit-function-declaration] 176 | l_add(&phase->t_inputs,(char *)store) ; | ^~~~~ | gr_add CC /tmp/ack-build/obj//util/ack/mktables.o util/ack/mktables.c:25:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 25 | main(argc,argv) char **argv ; { | ^~~~ util/ack/mktables.c: In function ‘main’: util/ack/mktables.c:25:1: warning: type of ‘argc’ defaults to ‘int’ [-Wimplicit-int] util/ack/mktables.c:26:11: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] 26 | register i ; | ^ util/ack/mktables.c:28:2: warning: implicit declaration of function ‘start’ [-Wimplicit-function-declaration] 28 | start(argv[1]) ; | ^~~~~ util/ack/mktables.c:31:3: warning: implicit declaration of function ‘readm’ [-Wimplicit-function-declaration] 31 | readm() ; | ^~~~~ util/ack/mktables.c:33:2: warning: implicit declaration of function ‘stop’ [-Wimplicit-function-declaration] 33 | stop(argc>2) ; | ^~~~ util/ack/mktables.c: At top level: util/ack/mktables.c:37:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 37 | start(dir) char *dir ; { | ^~~~~ util/ack/mktables.c:54:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 54 | stop(filled) { | ^~~~ util/ack/mktables.c: In function ‘stop’: util/ack/mktables.c:54:1: warning: type of ‘filled’ defaults to ‘int’ [-Wimplicit-int] util/ack/mktables.c: At top level: util/ack/mktables.c:73:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 73 | readm() { | ^~~~~ util/ack/mktables.c: In function ‘readm’: util/ack/mktables.c:81:3: warning: ‘return’ with no value, in function returning non-void 81 | return ; | ^~~~~~ util/ack/mktables.c:73:1: note: declared here 73 | readm() { | ^~~~~ CPROGRAM /tmp/ack-build/obj/util/ack/mktables MKTABLES CC /tmp/ack-build/obj///tmp/ack-build/obj/util/ack/dmach.o CC /tmp/ack-build/obj///tmp/ack-build/obj/util/ack/intable.o CPROGRAM /tmp/ack-build/bin/ack INSTALL /tmp/ack-build/staging/share/ack/descr/fe INSTALL /tmp/ack-build/staging/bin/ack INSTALL /tmp/ack-build/staging/share/man/man1/ack.1 DATA util/data/build.mk:34: recipe for target '/tmp/ack-build/obj/util/data/em_flag.c' failed make: *** [/tmp/ack-build/obj/util/data/em_flag.c] Error 2 paul@brebis:~/ack/ack-release-6-0-pre-5$ paul@brebis:~/ack/ack-release-6-0-pre-5$ gcc --version gcc (Debian 10.2.1-6+hurd.1) 10.2.1 20210110 paul@brebis:~/ack/ack-release-6-0-pre-5$ uname -a GNU brebis 0.9 GNU-Mach 1.8+git20201129-486/Hurd-0.9 i686-AT386 GNU But had same problem on Ubuntu 20.10 64 bits... that I then realized that 64 bits is not supported. I have seen ed note there... I installed it... but did not change the problem. I note that the bad build.mk file is: paul@brebis:~/ack/ack-release-6-0-pre-5$ cat util/data/build.mk D := util/data define util-data-impl $(eval g := \ $(OBJDIR)/$D/em_flag.c \ $(OBJDIR)/$D/em_pseu.c \ $(OBJDIR)/$D/em_mnem.c \ $(INCDIR)/em_spec.h \ $(INCDIR)/em_pseu.h \ $(INCDIR)/em_mnem.h \ ) $(eval CLEANABLES += $g) $(wordlist 2, $(words $g), $g): $(firstword $g) $(firstword $g): $D/new_table h/em_table @echo DATA @mkdir -p $(dir $g) $(hide) $D/new_table h/em_table $(INCDIR) $(OBJDIR)/$D $(call reset) $(call cfile, $(OBJDIR)/$D/em_flag.c) $(call cfile, $(OBJDIR)/$D/em_pseu.c) $(call cfile, $(OBJDIR)/$D/em_mnem.c) $(call cfile, $D/em_ptyp.c) $(eval $q: $g) $(call clibrary, $(LIBDIR)/libem_data.a) $(eval LIBEM_DATA := $q) endef $(eval $(util-data-impl)) paul@brebis:~/ack/ack-release-6-0-pre-5$ line 34 being the last one: $(eval $(util-data-impl)) |