Re: [Flex-help] flex-2.5.37 Tests FAILED: 48
flex is a tool for generating scanners
Brought to you by:
wlestes
|
From: Hugh S. <hg...@dm...> - 2012-10-24 09:15:37
|
On Wed, 24 Oct 2012, Dennis Clarke wrote:
>
> > You'll want bison to run a bunch of the tests. You'll want m4 available
> > to you as well.
> >
[...]
> well, circular dependency says bison depends on flex etc etc yada yada you heard it all before.
I think sunfreeware vanished/went commercial, but there might be
binaries elsewhere.
>
> turns out the issue was in the flex "tests" Makefiles which were all missing the $CXXFLAGS env var in the compile stage and thus we got 32-bit ELF objects out when 64-bit were required.
>
> trivial to fix and then:
Posting a patch would be useful for those not on the platform.
>
>
> echo Results: ; \
> echo Tests succeeded: `echo "$NOK\c"|wc -c`; \
> echo Tests FAILED: `echo "$NFAIL\c"|wc -c` ; \
> test "$NFAIL" = ""
[...]
> Executing test test-bison-yylloc
> Test test-bison-yylloc FAILED. See test-bison-yylloc/OUTPUT for details.
> Executing test test-bison-yylval
> Test test-bison-yylval FAILED. See test-bison-yylval/OUTPUT for details.
> Executing test test-bison-nr
> Test test-bison-nr FAILED. See test-bison-nr/OUTPUT for details.
[...]
> Results:
> Tests succeeded: 46
> Tests FAILED: 6
> gmake[4]: *** [check-local] Error 1
> gmake[4]: Leaving directory `/usr/local/build/flex-2.5.37_SunOS5.10_sparcv9_64-bit/tests'
> gmake[3]: *** [check-am] Error 2
> gmake[3]: Leaving directory `/usr/local/build/flex-2.5.37_SunOS5.10_sparcv9_64-bit/tests'
> gmake[2]: *** [check-recursive] Error 1
> gmake[2]: Leaving directory `/usr/local/build/flex-2.5.37_SunOS5.10_sparcv9_64-bit/tests'
> gmake[1]: *** [check-recursive] Error 1
> gmake[1]: Leaving directory `/usr/local/build/flex-2.5.37_SunOS5.10_sparcv9_64-bit'
> gmake: *** [check] Error 2
> $
>
>
> well duh
>
> $ cat tests/test-bison-yylloc/OUTPUT
> gmake[5]: Entering directory `/usr/local/build/flex-2.5.37_SunOS5.10_sparcv9_64-bit/tests/test-bison-yylloc'
> ../../flex scanner.l
> bison --defines --output=parser.c --name-prefix="test" parser.y
> /bin/bash: bison: command not found
> gmake[5]: *** [parser.c] Error 127
> gmake[5]: Leaving directory `/usr/local/build/flex-2.5.37_SunOS5.10_sparcv9_64-bit/tests/test-bison-yylloc'
> $
>
> bison doesn't bloody exist yet because of circular depend and thus we just proceed at this point and then build bison and then come back and build flex ( again ) and the whole world smiles
>
> Dennis
>
>
Hugh
|