Bug#619935: src:scotch: FTBFS on several arches due to lex issue

Johannes Ring johannr at simula.no
Mon Mar 28 18:38:09 UTC 2011


Hi Adam,

On Mon, Mar 28, 2011 at 3:46 PM, Adam C Powell IV <hazelsct at debian.org> wrote:
> Package: src:scotch
> Version: 5.1.11.dfsg-4
> Severity: serious
>
> Scotch FTBFS on i386, ia64, kfreebsd-i386, mips[el] and sparc:
>
> (flex parser_ll.l &&                    \
>                                         mv lex.yy.c parser_ll.c) ||            \
>                                        cp last_resort/parser_ll.c .
> mpicc -O3 -I. -fPIC -I/usr/include/mpi -I/usr/include/lam -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DLONG -DSCOTCH_COLLECTIVE -DSCOTCH_PTSCOTCH  -c parser_ll.c -o parser_ll.o
> parser_ll.l: In function '_SCOTCHstratParserLex':
> parser_ll.l:123:31: error: 'yylval' undeclared (first use in this function)
> parser_ll.l:123:31: note: each undeclared identifier is reported only once for each function it appears in
> make[3]: *** [parser_ll.o] Error 1
> make[3]: Leaving directory `/build/buildd-scotch_5.1.11.dfsg-4-i386-uzmFPf/scotch-5.1.11.dfsg/src/libscotch'

I couldn't (for some unknown reason) reproduce this in a pbuilder
machine (i386) but I remember to have seen this error before. What I
did to fix it was to use the LEX and YACC lines from the
src/Make.inc/Makefile.inc.i686_pc_linux2 file:

    LEX = flex -Pscotchyy -olex.yy.c
    YACC = bison -pscotchyy -y -b y

These lines should replace the ones in debian/Makefile.inc. If I
remember correctly, I also had to add the flag -DSCOTCH_RENAME_PARSER
to CFLAGS.

HTH,

Johannes





More information about the debian-science-maintainers mailing list