Skip to content

Build failure #31

@mjgarton

Description

@mjgarton

I tried to follow the instructions in the readme, but got this:

$ cmake --build build/DebugNoModules
[21/164] Building CXX object z80/v3/CMakeFiles/z80_v3_make.dir/MakeZ80.cpp.o
FAILED: [code=1] z80/v3/CMakeFiles/z80_v3_make.dir/MakeZ80.cpp.o 
/usr/bin/ccache /usr/lib64/ccache/c++ -DSPECBOLT_EXPORT="" -I/tmp/specbolt -g -std=gnu++26 -fdiagnostics-color=always -Wall -Wextra -pedantic -Wshadow -Wconversion -Werror -MD -MT z80/v3/CMakeFiles/z80_v3_make.dir/MakeZ80.cpp.o -MF z80/v3/CMakeFiles/z80_v3_make.dir/MakeZ80.cpp.o.d -o z80/v3/CMakeFiles/z80_v3_make.dir/MakeZ80.cpp.o -c /tmp/specbolt/z80/v3/MakeZ80.cpp
/tmp/specbolt/z80/v3/MakeZ80.cpp: In constructor ‘constexpr {anonymous}::Opcode::Opcode(std::size_t, const {anonymous}::RegisterSet&)’:
/tmp/specbolt/z80/v3/MakeZ80.cpp:75:74: error: declaration of ‘reg_set’ shadows a member of ‘{anonymous}::Opcode’ [-Werror=shadow]
   75 |   explicit constexpr Opcode(const std::size_t opcode, const RegisterSet &reg_set) :
      |                                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~
/tmp/specbolt/z80/v3/MakeZ80.cpp:73:22: note: shadowed declaration is here
   73 |   const RegisterSet &reg_set;
      |                      ^~~~~~~

It's entirely possibly I am doing something very wrong. I have little c++ experience, and even less cmake.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions