[ofa-general] Re: [PATCH] opensm/Makefile.am: adding yacc-generated .h file as dependency

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Sep 2 06:55:45 PDT 2008


Sasha Khapyorsky wrote:
> Hi Yevgeny,
> 
> On 18:03 Mon 01 Sep     , Yevgeny Kliteynik wrote:
>> Adding header file that is produced by yacc/bison to the
>> general dependencies. W/o it compiling of lex-generated
>> .c file sometimes fails.
> 
> Do you have a log of failure?

...
/bin/sh ../libtool --tag=CC --mode=link gcc  -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -I/usr/local/ofed/include  -O2 -g -fmessage-length=0 -D_FORTIFY_
SOURCE=2 -L/usr/local/ofed/lib64 -L/usr/local/ofed/lib -o libopensm.la -rpath /usr/local/ofed/lib64 -version-info 2:2:0 -export-dynamic -Wl,--version-scrip
t=./libopensm.map libopensm_la-osm_log.lo libopensm_la-osm_mad_pool.lo libopensm_la-osm_helper.lo  -libumad -ldl -lpthread
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I./../include -I./../../libibcommon/include -I./../../libibumad/include -I/usr/local/ofed/include  -O2 -g -fme
ssage-length=0 -D_FORTIFY_SOURCE=2 -I/usr/local/ofed/include -Wall -DOSM_VENDOR_INTF_OPENIB -fno-strict-aliasing -DVENDOR_RMPP_SUPPORT -DDUAL_SIDED_RMPP -g
  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -I/usr/local/ofed/include -MT opensm-osm_qos_parser_l.o -MD -MP -MF ".de
ps/opensm-osm_qos_parser_l.Tpo" -c -o opensm-osm_qos_parser_l.o `test -f 'osm_qos_parser_l.c' || echo './'`osm_qos_parser_l.c; \
then mv -f ".deps/opensm-osm_qos_parser_l.Tpo" ".deps/opensm-osm_qos_parser_l.Po"; else rm -f ".deps/opensm-osm_qos_parser_l.Tpo"; exit 1; fi
osm_qos_parser_l.l:49:30: error: osm_qos_parser_y.h: No such file or directory
osm_qos_parser_l.l: In function 'yylex':
osm_qos_parser_l.l:206: error: 'TK_TEXT' undeclared (first use in this function)
...

Full log attached.
The problem and solution is described here:

http://www.gnu.org/software/libtool/manual/automake/Yacc-and-Lex.html

-- Yevgeny

> Sasha
> 
>> Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
>> ---
>>  opensm/opensm/Makefile.am |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/opensm/opensm/Makefile.am b/opensm/opensm/Makefile.am
>> index 7ca4c2a..f94842c 100644
>> --- a/opensm/opensm/Makefile.am
>> +++ b/opensm/opensm/Makefile.am
>> @@ -126,7 +126,7 @@ opensminclude_HEADERS = \
>>  	$(srcdir)/../include/opensm/osm_vl15intf.h \
>>  	$(top_builddir)/include/opensm/osm_version.h
>>
>> -BUILT_SOURCES = osm_version
>> +BUILT_SOURCES = osm_version osm_qos_parser_y.h
>>  osm_version:
>>  	if [ -x $(top_srcdir)/../gen_ver.sh ] ; then \
>>  		ver_file=$(top_builddir)/include/opensm/osm_version.h ; \
>> -- 
>> 1.5.1.4
>>
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opensm.rpmbuild.log
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080902/9fc06634/attachment.ksh>


More information about the general mailing list