Bug #106216 -DMYSQL_MAINTAINER_MODE=ON build-breaking warning with Bison 3.8.2
Submitted: 19 Jan 2022 14:10 Modified: 19 Jan 2022 15:31
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.28 OS:Any
Assigned to: CPU Architecture:Any
Tags: bison, parser

[19 Jan 2022 14:10] Laurynas Biveinis
Description:
If Bison version is 3.8.2:
...
-- Found BISON: /usr/local/opt/bison/bin/bison (found version "3.8.2") 
...
/Users/laurynas/vilniusdb/mysql-8.0.28/_build-tmp/sql/sql_yacc.cc:46159:1: error: unused label 'yyexhaustedlab' [-Werror,-Wunused-label]
yyexhaustedlab:
^~~~~~~~~~~~~~~

Compiler is AppleClang 13.0.0.13000029

How to repeat:
On macOS,

export PATH="/usr/local/opt/bison/bin:$PATH"
(obviously the workaround is "don't do that, then" - use /usr/bin/bison which is 2.3)

cmake ... -DMYSQL_MAINTAINER_MODE=ON
make
[19 Jan 2022 15:31] MySQL Verification Team
Hi Mr. Biveinis,

Thank you for your bug report.

It is our pleasure to inform you that your bug is a duplicate of an internal bug, that is fixed in 8.0.29 release.

For the time being, it is yet unknown when will 8.0.29 be released.