Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

Subject: [PLPA users] build error in plpa-taskset/parser.c
From: Bert Wesarg (bert.wesarg_at_[hidden])
Date: 2009-07-23 15:55:02


Jeff,

I'm getting a build error from the current trunk:

gcc -DHAVE_CONFIG_H -I. -I../.././src/libplpa -I../../src/libplpa
-MT parser.o -MD -MP -MF $depbase.Tpo -c -o parser.o parser.c
parser.l:18:20: error: tokens.h: No such file or directory
parser.l: In function 'yylex':
parser.l:43: error: 'yylval' undeclared (first use in this function)
parser.l:43: error: (Each undeclared identifier is reported only once
parser.l:43: error: for each function it appears in.)
parser.l:43: error: 'TOKENS_NUMBER' undeclared (first use in this function)
parser.l:45: error: 'TOKENS_STRING_ALL' undeclared (first use in this function)
parser.l:47: error: 'TOKENS_STRING_EVEN' undeclared (first use in this function)
parser.l:49: error: 'TOKENS_STRING_ODD' undeclared (first use in this function)
parser.l:51: error: 'TOKENS_STRING_NOT' undeclared (first use in this function)
make[2]: *** [parser.o] Error 1
make[2]: Leaving directory `/home/bertw/dev/open-mpi/plpa/src/plpa-taskset'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bertw/dev/open-mpi/plpa/src'
make: *** [all-recursive] Error 1

My current autotool chain versions are:

# m4-1.4.13
# autoconf-2.63
# automake-1.10.1
# libtool-2.2.6a

bison:
  Installed: 1:2.3.dfsg-5
  Candidate: 1:2.3.dfsg-5
  Version table:
 *** 1:2.3.dfsg-5 0
        500 http://de.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

flex:
  Installed: 2.5.35-6ubuntu1
  Candidate: 2.5.35-6ubuntu1
  Version table:
 *** 2.5.35-6ubuntu1 0
        500 http://de.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

I solved it with this patch:

diff --git i/src/plpa-taskset/Makefile.am w/src/plpa-taskset/Makefile.am
index 17998dc..a302979 100644
--- i/src/plpa-taskset/Makefile.am
+++ w/src/plpa-taskset/Makefile.am
@@ -28,3 +28,4 @@ plpa_taskset_SOURCES = \
         parser.l \
         tokens.y
 plpa_taskset_LDADD = $(top_builddir)/src/libplpa/libplpa.la
+parser.o: tokens.h

Bye,
Bert