Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

error while compiling vasp

Mazba
Beginner
66 Views

I am triying to compile vasp.6.1.0 using oneAPI (2024.2) I am getting the following error.

| ^~~~~~~~
lex.yy.c:1278:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
1278 | register char *yy_cp;
| ^~~~~~~~
lex.yy.c:1288:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
1288 | register yy_size_t number_to_move = (yy_n_chars) + 2;
| ^~~~~~~~
lex.yy.c:1289:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
1289 | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
| ^~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [makefile:28: lex.yy.o] Error 1
make[3]: Leaving directory '/home/ratul/vasp_cpu/vasp.6.1.0/build/std/parser'
make[2]: *** [makefile:12: all] Error 2
make[2]: Leaving directory '/home/ratul/vasp_cpu/vasp.6.1.0/build/std/parser'
make[1]: *** [makefile:156: parser] Error 2
make[1]: Leaving directory '/home/ratul/vasp_cpu/vasp.6.1.0/build/std'
make: *** [makefile:6: std] Error 2
0 Kudos
1 Reply
Alex_Y_Intel
Moderator
32 Views

We need a reproducer and exact commands used to understand further. 

0 Kudos
Reply