DEBUG: Executing shell function do_compile NOTE: cmake --build TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build --target all -- [1/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_reader.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_reader.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [2/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_pubnames.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_pubnames.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [3/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_macros.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_macros.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [4/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_lines.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_lines.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [5/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_unit.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_unit.cc:1: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [6/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_info.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_info.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [7/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_die.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_die.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [8/64] Building CXX object CMakeFiles/dwelf.dir/context.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/context.cc:4: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [9/64] Building CXX object CMakeFiles/dwelf.dir/dwarf_frame.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarf_frame.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [10/64] Building CXX object CMakeFiles/dwelf.dir/flags.cc.o [11/64] Building CXX object CMakeFiles/dwelf.dir/inflate.cc.o [12/64] Building CXX object CMakeFiles/dwelf.dir/lzma.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/lzma.cc:31:24: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension] 31 | uint8_t indexBuffer[options.backward_size]; | ^~~~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/lzma.cc:31:24: note: read of non-constexpr variable 'options' is not allowed in a constant expression TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/lzma.cc:20:22: note: declared here 20 | lzma_stream_flags options{}; | ^ 1 warning generated. [13/64] Building CXX object CMakeFiles/dwelf.dir/reader.cc.o [14/64] Building C object tests/CMakeFiles/testhelper.dir/abort.c.o In file included from <built-in>:415: <command line>:2:9: warning: '_FORTIFY_SOURCE' macro redefined [-Wmacro-redefined] 2 | #define _FORTIFY_SOURCE 0 | ^ <command line>:1:9: note: previous definition is here 1 | #define _FORTIFY_SOURCE 2 | ^ 1 warning generated. [15/64] Linking C static library tests/libtesthelper.a [16/64] Building C object tests/CMakeFiles/basic.dir/basic.c.o In file included from <built-in>:415: <command line>:2:9: warning: '_FORTIFY_SOURCE' macro redefined [-Wmacro-redefined] 2 | #define _FORTIFY_SOURCE 0 | ^ <command line>:1:9: note: previous definition is here 1 | #define _FORTIFY_SOURCE 2 | ^ 1 warning generated. [17/64] Building CXX object CMakeFiles/dwelf.dir/dump.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dump.cc:2: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [18/64] Building CXX object CMakeFiles/procman.dir/dead.cc.o FAILED: [code=1] CMakeFiles/procman.dir/dead.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -Dprocman_EXPORTS -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIC -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/procman.dir/dead.cc.o -MF CMakeFiles/procman.dir/dead.cc.o.d -o CMakeFiles/procman.dir/dead.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dead.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dead.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dead.cc:3: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ 3 warnings and 1 error generated. [19/64] Building CXX object CMakeFiles/procman.dir/self.cc.o FAILED: [code=1] CMakeFiles/procman.dir/self.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -Dprocman_EXPORTS -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIC -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/procman.dir/self.cc.o -MF CMakeFiles/procman.dir/self.cc.o.d -o CMakeFiles/procman.dir/self.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:22: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:1: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:49:34: error: unknown type name 'user_regs_struct'; did you mean 'Elf::user_regs_struct'? 49 | assert(size == sizeof (user_regs_struct)); | ^~~~~~~~~~~~~~~~ | Elf::user_regs_struct TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/assert.h:100:27: note: expanded from macro 'assert' 100 | (static_cast <bool> (expr) \ | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: 'Elf::user_regs_struct' declared here 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:49:26: error: invalid application of 'sizeof' to an incomplete type 'user_regs_struct' 49 | assert(size == sizeof (user_regs_struct)); | ^ ~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/assert.h:100:27: note: expanded from macro 'assert' 100 | (static_cast <bool> (expr) \ | ^~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:50:42: error: unknown type name 'user_regs_struct'; did you mean 'Elf::user_regs_struct'? 50 | gregset2core(*reinterpret_cast<user_regs_struct *>(regs), context.uc_mcontext.gregs); | ^~~~~~~~~~~~~~~~ | Elf::user_regs_struct TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: 'Elf::user_regs_struct' declared here 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:50:89: error: no member named 'gregs' in 'mcontext_t' 50 | gregset2core(*reinterpret_cast<user_regs_struct *>(regs), context.uc_mcontext.gregs); | ~~~~~~~~~~~~~~~~~~~ ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/self.cc:55:44: error: no member named 'fpregs' in 'mcontext_t' 55 | memcpy(regs, context.uc_mcontext.fpregs, size); | ~~~~~~~~~~~~~~~~~~~ ^ 3 warnings and 6 errors generated. [20/64] Building CXX object CMakeFiles/procman.dir/live.cc.o FAILED: [code=1] CMakeFiles/procman.dir/live.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -Dprocman_EXPORTS -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIC -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/procman.dir/live.cc.o -MF CMakeFiles/procman.dir/live.cc.o.d -o CMakeFiles/procman.dir/live.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/live.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/live.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:22: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/live.cc:1: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ 3 warnings and 1 error generated. [21/64] Building CXX object CMakeFiles/procman.dir/process.cc.o FAILED: [code=1] CMakeFiles/procman.dir/process.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -Dprocman_EXPORTS -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIC -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/procman.dir/process.cc.o -MF CMakeFiles/procman.dir/process.cc.o.d -o CMakeFiles/procman.dir/process.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:17: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:18: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:105:34: warning: unused parameter 'core' [-Wunused-parameter] 105 | gregset2core(Elf::CoreRegisters &core, const gregset_t greg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:105:56: warning: unused parameter 'greg' [-Wunused-parameter] 105 | gregset2core(Elf::CoreRegisters &core, const gregset_t greg) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/charconv:86: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__charconv/from_chars_integral.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_n.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/unwrap_range.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/next.h:15: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:26: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/limits:537: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/type_traits:480: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_destructible.h:26:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 26 | : public integral_constant<bool, __is_trivially_destructible(_Tp)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:533:18: note: in instantiation of template class 'std::is_trivially_destructible<pstack::Elf::user_regs_struct>' requested here 533 | bool = is_trivially_destructible<_Tp>::value && is_trivially_move_constructible<_Tp>::value && | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:583:15: note: in instantiation of default argument for '__optional_move_assign_base<pstack::Elf::user_regs_struct>' required here 583 | : private __optional_move_assign_base<_Tp>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:883:42: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 883 | auto maybeNewRegs = prev.unwind(p); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/charconv:86: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__charconv/from_chars_integral.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_n.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/unwrap_range.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/next.h:15: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:26: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/limits:537: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/type_traits:478: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_constructible.h:45:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 45 | : public integral_constant<bool, __is_trivially_constructible(_Tp, __add_rvalue_reference_t<_Tp>)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:533:59: note: in instantiation of template class 'std::is_trivially_move_constructible<pstack::Elf::user_regs_struct>' requested here 533 | bool = is_trivially_destructible<_Tp>::value && is_trivially_move_constructible<_Tp>::value && | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:583:15: note: in instantiation of default argument for '__optional_move_assign_base<pstack::Elf::user_regs_struct>' required here 583 | : private __optional_move_assign_base<_Tp>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:883:42: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 883 | auto maybeNewRegs = prev.unwind(p); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/charconv:86: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__charconv/from_chars_integral.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_n.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/unwrap_iter.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/iterator_traits.h:14: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_constructible.h:34:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 34 | : public integral_constant<bool, __is_constructible(_Tp, __add_lvalue_reference_t<const _Tp>)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:559:25: note: in instantiation of template class 'std::is_copy_constructible<pstack::Elf::user_regs_struct>' requested here 559 | __sfinae_ctor_base< is_copy_constructible<_Tp>::value, is_move_constructible<_Tp>::value >; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:584:15: note: in instantiation of template type alias '__optional_sfinae_ctor_base_t' requested here 584 | private __optional_sfinae_ctor_base_t<_Tp>, | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:883:42: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 883 | auto maybeNewRegs = prev.unwind(p); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/charconv:86: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__charconv/from_chars_integral.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_n.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/unwrap_iter.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/iterator_traits.h:14: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_constructible.h:43:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 43 | : public integral_constant<bool, __is_constructible(_Tp, __add_rvalue_reference_t<_Tp>)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:559:60: note: in instantiation of template class 'std::is_move_constructible<pstack::Elf::user_regs_struct>' requested here 559 | __sfinae_ctor_base< is_copy_constructible<_Tp>::value, is_move_constructible<_Tp>::value >; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:584:15: note: in instantiation of template type alias '__optional_sfinae_ctor_base_t' requested here 584 | private __optional_sfinae_ctor_base_t<_Tp>, | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:883:42: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 883 | auto maybeNewRegs = prev.unwind(p); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/charconv:86: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__charconv/from_chars_integral.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_n.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/unwrap_range.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/next.h:15: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:26: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/limits:537: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/type_traits:479: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:24:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 24 | : public integral_constant<bool, __is_trivially_copyable(_Tp)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_relocatable.h:34:44: note: in instantiation of template class 'std::is_trivially_copyable<pstack::Elf::user_regs_struct>' requested here 34 | struct __libcpp_is_trivially_relocatable : is_trivially_copyable<_Tp> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:592:21: note: in instantiation of template class 'std::__libcpp_is_trivially_relocatable<pstack::Elf::user_regs_struct>' requested here 592 | conditional_t<__libcpp_is_trivially_relocatable<_Tp>::value, optional, void>; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:883:42: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 883 | auto maybeNewRegs = prev.unwind(p); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/charconv:86: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__charconv/from_chars_integral.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_n.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/copy_move_common.h:12: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__algorithm/unwrap_iter.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/iterator_traits.h:14: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/destructible.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_nothrow_destructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_destructible.h:32:70: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 32 | _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_destructible_v = __is_destructible(_Tp); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:601:17: note: in instantiation of variable template specialization 'std::is_destructible_v<pstack::Elf::user_regs_struct>' requested here 601 | static_assert(is_destructible_v<value_type>, "instantiation of optional with a non-destructible type is ill-formed"); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:883:42: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 883 | auto maybeNewRegs = prev.unwind(p); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:1073:28: error: variable has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 1073 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/process.cc:1103:32: error: variable has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 1103 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ 5 warnings and 9 errors generated. [22/64] Building CXX object CMakeFiles/procman.dir/proc_service.cc.o FAILED: [code=1] CMakeFiles/procman.dir/proc_service.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -Dprocman_EXPORTS -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIC -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/procman.dir/proc_service.cc.o -MF CMakeFiles/procman.dir/proc_service.cc.o.d -o CMakeFiles/procman.dir/proc_service.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/proc_service.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/proc_service.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:22: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/proc_service.cc:1: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/proc_service.cc:173:65: error: use of undeclared identifier 'user_regs_struct' 173 | return p->getRegset<Elf::CoreRegisters, NT_PRSTATUS>(pid, *(user_regs_struct *)gregset) ? PS_OK : PS_ERR; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/proc_service.cc:173:83: error: expected expression 173 | return p->getRegset<Elf::CoreRegisters, NT_PRSTATUS>(pid, *(user_regs_struct *)gregset) ? PS_OK : PS_ERR; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/proc_service.cc:170:73: warning: unused parameter 'gregset' [-Wunused-parameter] 170 | ps_err_e ps_lgetregs(struct ps_prochandle *ph, lwpid_t pid, prgregset_t gregset) | ^ 4 warnings and 3 errors generated. [23/64] Building CXX object CMakeFiles/procman.dir/procdump.cc.o [24/64] Building CXX object CMakeFiles/procman.dir/dwarfproc.cc.o FAILED: [code=1] CMakeFiles/procman.dir/dwarfproc.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -Dprocman_EXPORTS -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIC -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/procman.dir/dwarfproc.cc.o -MF CMakeFiles/procman.dir/dwarfproc.cc.o.d -o CMakeFiles/procman.dir/dwarfproc.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:3: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:11:51: warning: unused parameter 'sys' [-Wunused-parameter] 11 | StackFrame::setCoreRegs(const Elf::CoreRegisters &sys) | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:19:45: warning: unused parameter 'core' [-Wunused-parameter] 19 | StackFrame::getCoreRegs(Elf::CoreRegisters &core) const | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:29:30: error: use of undeclared identifier 'IPREG' 29 | return Elf::getReg(regs, IPREG); | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:26: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/limits:537: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/type_traits:480: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_destructible.h:26:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 26 | : public integral_constant<bool, __is_trivially_destructible(_Tp)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:533:18: note: in instantiation of template class 'std::is_trivially_destructible<pstack::Elf::user_regs_struct>' requested here 533 | bool = is_trivially_destructible<_Tp>::value && is_trivially_move_constructible<_Tp>::value && | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:583:15: note: in instantiation of default argument for '__optional_move_assign_base<pstack::Elf::user_regs_struct>' required here 583 | : private __optional_move_assign_base<_Tp>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:502:47: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 502 | std::optional<Elf::CoreRegisters> StackFrame::unwind(Process &p) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:26: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/limits:537: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/type_traits:478: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_constructible.h:45:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 45 | : public integral_constant<bool, __is_trivially_constructible(_Tp, __add_rvalue_reference_t<_Tp>)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:533:59: note: in instantiation of template class 'std::is_trivially_move_constructible<pstack::Elf::user_regs_struct>' requested here 533 | bool = is_trivially_destructible<_Tp>::value && is_trivially_move_constructible<_Tp>::value && | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:583:15: note: in instantiation of default argument for '__optional_move_assign_base<pstack::Elf::user_regs_struct>' required here 583 | : private __optional_move_assign_base<_Tp>, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:502:47: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 502 | std::optional<Elf::CoreRegisters> StackFrame::unwind(Process &p) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:17: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/concepts.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_constructible.h:34:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 34 | : public integral_constant<bool, __is_constructible(_Tp, __add_lvalue_reference_t<const _Tp>)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:559:25: note: in instantiation of template class 'std::is_copy_constructible<pstack::Elf::user_regs_struct>' requested here 559 | __sfinae_ctor_base< is_copy_constructible<_Tp>::value, is_move_constructible<_Tp>::value >; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:584:15: note: in instantiation of template type alias '__optional_sfinae_ctor_base_t' requested here 584 | private __optional_sfinae_ctor_base_t<_Tp>, | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:502:47: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 502 | std::optional<Elf::CoreRegisters> StackFrame::unwind(Process &p) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:17: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/concepts.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_constructible.h:43:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 43 | : public integral_constant<bool, __is_constructible(_Tp, __add_rvalue_reference_t<_Tp>)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:559:60: note: in instantiation of template class 'std::is_move_constructible<pstack::Elf::user_regs_struct>' requested here 559 | __sfinae_ctor_base< is_copy_constructible<_Tp>::value, is_move_constructible<_Tp>::value >; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:584:15: note: in instantiation of template type alias '__optional_sfinae_ctor_base_t' requested here 584 | private __optional_sfinae_ctor_base_t<_Tp>, | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:502:47: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 502 | std::optional<Elf::CoreRegisters> StackFrame::unwind(Process &p) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:26: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/limits:537: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/type_traits:479: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_copyable.h:24:38: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 24 | : public integral_constant<bool, __is_trivially_copyable(_Tp)> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_trivially_relocatable.h:34:44: note: in instantiation of template class 'std::is_trivially_copyable<pstack::Elf::user_regs_struct>' requested here 34 | struct __libcpp_is_trivially_relocatable : is_trivially_copyable<_Tp> {}; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:592:21: note: in instantiation of template class 'std::__libcpp_is_trivially_relocatable<pstack::Elf::user_regs_struct>' requested here 592 | conditional_t<__libcpp_is_trivially_relocatable<_Tp>::value, optional, void>; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:502:47: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 502 | std::optional<Elf::CoreRegisters> StackFrame::unwind(Process &p) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:17: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/concepts.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/destructible.h:13: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_nothrow_destructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_destructible.h:32:70: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 32 | _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_destructible_v = __is_destructible(_Tp); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:601:17: note: in instantiation of variable template specialization 'std::is_destructible_v<pstack::Elf::user_regs_struct>' requested here 601 | static_assert(is_destructible_v<value_type>, "instantiation of optional with a non-destructible type is ill-formed"); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:502:47: note: in instantiation of template class 'std::optional<pstack::Elf::user_regs_struct>' requested here 502 | std::optional<Elf::CoreRegisters> StackFrame::unwind(Process &p) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:533:24: error: variable has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 533 | Elf::CoreRegisters out; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:5: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/iterator:687: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/advance.h:17: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__iterator/concepts.h:16: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__concepts/constructible.h:15: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/__type_traits/is_constructible.h:29:71: error: incomplete type 'pstack::Elf::user_regs_struct' used in type trait expression 29 | _LIBCPP_NO_SPECIALIZATIONS inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:608:14: note: in instantiation of variable template specialization 'std::is_constructible_v<pstack::Elf::user_regs_struct, const std::nullopt_t &>' requested here 608 | return is_constructible_v<_Tp, _Up&&> && is_convertible_v<_Up&&, _Tp>; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:689:64: note: in instantiation of function template specialization 'std::optional<pstack::Elf::user_regs_struct>::_CheckOptionalArgsConstructor::__enable_implicit<const std::nullopt_t &>' requested here 689 | enable_if_t< _CheckOptionalArgsCtor<_Up>::template __enable_implicit<_Up>(), int> = 0> | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot/usr/include/c++/v1/optional:690:35: note: while substituting prior template arguments into non-type template parameter [with _Up = const nullopt_t &] 690 | _LIBCPP_HIDE_FROM_ABI constexpr optional(_Up&& __v) : __base(in_place, std::forward<_Up>(__v)) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:614:16: note: while substituting deduced template arguments into function template 'optional' [with _Up = const nullopt_t &, $1 = (no value)] 614 | return std::nullopt; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:619:28: error: use of undeclared identifier 'IPREG' 619 | if (cie && cie->rar != IPREG) | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/dwarfproc.cc:620:25: error: use of undeclared identifier 'IPREG' 620 | Elf::setReg(out, IPREG, Elf::getReg(out, cie->rar)); | ^ 5 warnings and 12 errors generated. [25/64] Building CXX object CMakeFiles/dwelf.dir/elf.cc.o In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/elf.cc:1: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ 3 warnings generated. [26/64] Building CXX object CMakeFiles/canal.dir/canal.cc.o FAILED: [code=1] CMakeFiles/canal.dir/canal.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIE -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/canal.dir/canal.cc.o -MF CMakeFiles/canal.dir/canal.cc.o.d -o CMakeFiles/canal.dir/canal.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/canal.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/canal.cc:19: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:22: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/canal.cc:19: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ 3 warnings and 1 error generated. [27/64] Building CXX object CMakeFiles/pstack.dir/pstack.cc.o FAILED: [code=1] CMakeFiles/pstack.dir/pstack.cc.o TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native/usr/bin/riscv64-yoe-linux/riscv64-yoe-linux-clang++ --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -DDEBUGINFOD -DVERSION="" -DWITH_LZMA -DWITH_ZLIB -ITMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11 -target riscv64-yoe-linux -march=rv64imafdc_zicsr_zifencei -mabi=lp64d --dyld-prefix=/usr --dyld-prefix=/usr -Qunused-arguments -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot -O2 -g -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build=/usr/src/debug/pstack/2.11 -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot= -ffile-prefix-map=TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -std=gnu++20 -fPIE -Wall -Wextra -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-omit-frame-pointer -g3 -MD -MT CMakeFiles/pstack.dir/pstack.cc.o -MF CMakeFiles/pstack.dir/pstack.cc.o.d -o CMakeFiles/pstack.dir/pstack.cc.o -c TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/pstack.cc In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/pstack.cc:1: In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/dwarf.h:6: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:360:41: warning: unused parameter 'regs' [-Wunused-parameter] 360 | inline Addr getReg(const CoreRegisters ®s, int reg) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:35: warning: unused parameter 'regs' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:369:55: warning: unused parameter 'val' [-Wunused-parameter] 369 | inline void setReg(CoreRegisters ®s, int reg, Addr val) { | ^ In file included from TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/pstack.cc:3: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/proc.h:137:24: error: field has incomplete type 'Elf::CoreRegisters' (aka 'pstack::Elf::user_regs_struct') 137 | Elf::CoreRegisters regs; | ^ TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/sources/pstack-2.11/libpstack/elf.h:357:16: note: forward declaration of 'pstack::Elf::user_regs_struct' 357 | typedef struct user_regs_struct CoreRegisters; | ^ 3 warnings and 1 error generated. ninja: build stopped: subcommand failed. WARNING: TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/temp/run.do_compile.2481323:153 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} } cmake --build 'TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/build' "$@" -- ${EXTRA_OECMAKE_BUILD}' WARNING: Backtrace (BB generated script): #1: cmake_runcmake_build, TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/temp/run.do_compile.2481323, line 153 #2: cmake_do_compile, TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/temp/run.do_compile.2481323, line 147 #3: do_compile, TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/temp/run.do_compile.2481323, line 142 #4: main, TMPDIR/work/riscv64imafdc-yoe-linux/pstack/2.11/temp/run.do_compile.2481323, line 166