On Fri, 22 Sep 2017, Jens Schleusener wrote:
Hi,
just a small remark: I tried to compile the current git version of doxygen
under Linux (openSUSE Leap 42.3) and got "suddenly" (before it works many
times without any problems) the following error:
[ 23%] Building CXX object
vhdlparser/CMakeFiles/vhdlparser.dir/VhdlParserIF.cpp.o
[ 24%] Linking CXX static library ../lib/libvhdlparser.a
[ 24%] Built target vhdlparser
[ 24%] [BISON][constexp] Building parser with bison 2.7
/usr/bin/bison: invalid argument ‘deprecated’ for ‘--warnings’
Valid arguments are:
- ‘none - no warnings’
- ‘midrule-values - unset or unused midrule values’
- ‘yacc - incompatibilities with POSIX Yacc’
- ‘conflicts-sr - S/R conflicts’
- ‘conflicts-rr - R/R conflicts’
- ‘other - all other warnings’
- ‘all - all of the above’
- ‘error - warnings are errors’
src/CMakeFiles/_doxygen.dir/build.make:303: recipe for target
'generated_src/ce_parse.cpp' failed
I don't have clue about "cmake" but that problem may eventually be caused by
a recent change in src/CMakeLists.txt:
66c66
< COMMAND ${BISON_EXECUTABLE} -l -d -p ce_parsexpYY
${CMAKE_SOURCE_DIR}/src/constexp.y -o ce_parse.c
---
> COMMAND ${BISON_EXECUTABLE} -l -d -p ce_parsexpYY -Wno-deprecated
${CMAKE_SOURCE_DIR}/src/constexp.y -o ce_parse.c
122c122
< BISON_TARGET(constexp constexp.y
${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "${YACC_FLAGS}")
---
> BISON_TARGET(constexp constexp.y
${GENERATED_SRC}/ce_parse.cpp COMPILE_FLAGS "-Wno-deprecated
${YACC_FLAGS}")
So just for testing I replaced that file with the old one (9718 bytes,
Aug 21 11:59) and the build process runs well.
Maybe the version of the used "bison" program (2.7) is too old
(current version is 3.0.4).
Still an addition: Surprisingly I found in the man page of the used
"bison" release 2.7 under "Warning categories include:" the categories
'deprecated' ("obsolete constructs") and 'no-CATEGORY' ("turn off warnings
in CATEGORY") mentioned.
But manually tests with a fetched test file
bison -Wdeprecated test.y
bison -Wno-deprecated test.y
failed and issued also the mention error message.
So I downloaded and compiled bison 3.0.4 myself and the error vanishes. To
ensure it's not a problem of my openSUSE distro I downloaded and compiled
also bison 2.7 myself and I could reproduce the error. So it seems a
problem with bison 2.7 (bison 2.7.1 also issues that error, bison 3.0 not).
Regards
Jens
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users