[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem in gperf makefile rules
From: |
Assaf Gordon |
Subject: |
problem in gperf makefile rules |
Date: |
Fri, 18 Dec 2015 16:10:30 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Hello,
I'm encountering some build errors during 'make' in projects using gnulib, and
I suspect it has something to do with this commit:
gperf: respect silent rules
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=30f4290277444b1d4825a42c9a33f2c3c7fe310a
The symptom I've found is that the GPERF/V_GPERF variables are expanded
multiple times (or incorrectly):
$ grep GPERF Makefile
GPERF = gperf
V_GPERF = lib/$(V_GPERF_$(V))
V_GPERF_ = lib/$(V_GPERF_$(AM_DEFAULT_VERBOSITY))
V_GPERF_0 = lib/@echo lib/" lib/GPERF lib/" lib/$@;
And result in errors such as:
$ make
lib/lib/gperf -m 10 ./lib/iconv_open-aix.gperf > ./lib/iconv_open-aix.h-t
&& \
mv ./lib/iconv_open-aix.h-t ./lib/iconv_open-aix.h
/bin/bash: lib/lib/gperf: No such file or directory
make: *** [lib/iconv_open-aix.h] Error 127
To reproduce, do the following:
cd /tmp/
git clone git://git.sv.gnu.org/coreutils.git
cd coreutils
./bootstrap && ./configure && make
'make' will succeed. then try:
$ rm lib/iconv_open-aix.h
$ make V=0
lib/lib/lib/@echo lib/" lib/GPERF lib/" lib/lib/iconv_open-aix.h;gperf -m 10
./lib/iconv_open-aix.gperf > ./lib/iconv_open-aix.h-t && \
mv ./lib/iconv_open-aix.h-t ./lib/iconv_open-aix.h
/bin/bash: lib/lib/lib/@echo: No such file or directory
[....]
and
$ rm lib/iconv_open-aix.h
$ make V=1
lib/gperf -m 10 ./lib/iconv_open-aix.gperf > ./lib/iconv_open-aix.h-t && \
mv ./lib/iconv_open-aix.h-t ./lib/iconv_open-aix.h
/bin/bash: lib/gperf: No such file or directory
make: *** [lib/iconv_open-aix.h] Error 127
regards,
- assaf
- problem in gperf makefile rules,
Assaf Gordon <=