Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with gcc 12.2 (Debian 12) #1338

Open
cquike opened this issue Feb 15, 2024 · 1 comment
Open

Compilation error with gcc 12.2 (Debian 12) #1338

cquike opened this issue Feb 15, 2024 · 1 comment

Comments

@cquike
Copy link
Contributor

cquike commented Feb 15, 2024

I am having a compilation error when building casacore in Debian 12, which uses gcc 12.2. As far as I can see I am not using any weird flag. This is the compiler error I get:

cd /home/user/CASA/build/casacore/casa && ccache /usr/bin/c++ -DCFITSIO_VERSION_MAJOR=4 -DCFITSIO_VERSION_MINOR=200 -DHAVE_DYSCO -DHAVE_FFTW3 -DHAVE_FFTW3_THREADS -DHAVE_O_DIRECT -DHAVE_READLINE -DUSE_THREADS -DWCSLIB_VERSION_MAJOR=7 -DWCSLIB_VERSION_MINOR=12 -Dcasa_casa_EXPORTS -I/home/user/CASA/src/casa6/casatools/casacore -I/home/user/CASA/build/casacore -I/home/user/CASA/build/casacore/casa -fcx-fortran-rules -Wextra -Wall -W -Wpointer-arith -Woverloaded-virtual -Wwrite-strings -pedantic -Wno-long-long -fopenmp -pthread -O2 -g -DNDEBUG -fPIC -std=gnu++11 -Winvalid-pch -include /home/user/CASA/build/casacore/casa/CMakeFiles/casa_casa.dir/cmake_pch.hxx -MD -MT casa/CMakeFiles/casa_casa.dir/Json/JsonParser.cc.o -MF CMakeFiles/casa_casa.dir/Json/JsonParser.cc.o.d -o CMakeFiles/casa_casa.dir/Json/JsonParser.cc.o -c /home/user/CASA/src/casa6/casatools/casacore/casa/Json/JsonParser.cc
In file included from /home/user/CASA/src/casa6/casatools/casacore/casa/Json/JsonParser.cc:50:
/home/user/CASA/build/casacore/casa/JsonGram.ycc: In function ‘int JsonGramparse()’:
/home/user/CASA/build/casacore/casa/JsonGram.ycc:1237:15: error: call of overloaded ‘JsonGramerror(const char [13])’ is ambiguous
 1237 |       yyerror (YY_("syntax error"));
In file included from /home/user/CASA/build/casacore/casa/JsonGram.ycc:103:
/home/user/CASA/build/casacore/casa/JsonGram.yhh:113:6: note: candidate: ‘void JsonGramerror(const char*)’
  113 | void JsonGramerror (const char *msg);
      |      ^~~~~~~~~~~~~
In file included from /home/user/CASA/src/casa6/casatools/casacore/casa/Json/JsonParser.cc:27:
/home/user/CASA/src/casa6/casatools/casacore/casacore/casa/Json/JsonParser.h:124:8: note: candidate: ‘void casacore::JsonGramerror(const char*)’
  124 |   void JsonGramerror (const char*);
      |        ^~~~~~~~~~~~~
@cquike
Copy link
Contributor Author

cquike commented Feb 15, 2024

For a reference, this is the version of bison used:
bison (GNU Bison) 3.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant