Home Page
hi, as the title says it somehow fails to build.

agony@summerwine:/media/data/test/lala$ make -j25 CFLAGS='-U_FORTIFY_SOURCE' NOWERROR=1
GCC 11 detected
Compiling src/lib/netlist/plib/ppmf.cpp...
Compiling src/lib/netlist/plib/putil.cpp...
Compiling src/lib/netlist/solver/nld_matrix_solver.cpp...
Compiling src/lib/netlist/solver/nld_solver.cpp...
Compiling src/lib/netlist/tools/nl_convert.cpp...
In file included from ../../../../../src/lib/netlist/plib/ppmf.cpp:4:
../../../../../src/lib/netlist/plib/ppmf.h:170:17: error: ‘ptrdiff_t’ does not name a type
170 | ptrdiff_t m_this_delta; // delta to apply to the 'this' pointer
| ^~~~~~~~~
In file included from ../../../../../src/lib/netlist/plib/ppmf.cpp:4:
../../../../../src/lib/netlist/plib/ppmf.h:84:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
83 | #include <algorithm>
+++ |+#include <cstddef>
84 | #include <cstdint> // uintptr_t
In file included from ../../../../../src/lib/netlist/plib/ppmf.cpp:4:
../../../../../src/lib/netlist/plib/ppmf.h:188:17: error: ‘ptrdiff_t’ does not name a type
188 | ptrdiff_t m_this_delta; // delta to apply to the 'this' pointer after right shifting by one bit
| ^~~~~~~~~
../../../../../src/lib/netlist/plib/ppmf.h:188:17: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
../../../../../src/lib/netlist/plib/ppmf.h: In constructor ‘plib::mfp_raw<plib::ppmf_type::INTERNAL_ITANIUM>::mfp_raw(MemberFunctionType)’:
../../../../../src/lib/netlist/plib/ppmf.h:436:26: error: class ‘plib::mfp_raw<plib::ppmf_type::INTERNAL_ITANIUM>’ does not have any field named ‘m_this_delta’
436 | : m_function(0), m_this_delta(0)
| ^~~~~~~~~~~~
../../../../../src/lib/netlist/plib/ppmf.h: In constructor ‘plib::mfp_raw<plib::ppmf_type::INTERNAL_ARM>::mfp_raw(MemberFunctionType)’:
../../../../../src/lib/netlist/plib/ppmf.h:445:26: error: class ‘plib::mfp_raw<plib::ppmf_type::INTERNAL_ARM>’ does not have any field named ‘m_this_delta’
445 | : m_function(0), m_this_delta(0)
| ^~~~~~~~~~~~
../../../../../src/lib/netlist/plib/ppmf.cpp: In member function ‘void plib::mfp_raw<plib::ppmf_type::INTERNAL_ITANIUM>::convert_to_generic(void (*&)(), plib::mfp_generic_class*&) const’:
../../../../../src/lib/netlist/plib/ppmf.cpp:22:116: error: ‘m_this_delta’ was not declared in this scope
22 | auto *o_p_delta = reinterpret_cast<mfp_generic_class *>(reinterpret_cast<std::uint8_t *>(object) + m_this_delta);
| ^~~~~~~~~~~~
../../../../../src/lib/netlist/plib/ppmf.cpp: In member function ‘void plib::mfp_raw<plib::ppmf_type::INTERNAL_ARM>::convert_to_generic(void (*&)(), plib::mfp_generic_class*&) const’:
../../../../../src/lib/netlist/plib/ppmf.cpp:48:108: error: ‘m_this_delta’ was not declared in this scope
48 | object = reinterpret_cast<mfp_generic_class *>(reinterpret_cast<std::uint8_t *>(object) + (m_this_delta >> 1));
| ^~~~~~~~~~~~
../../../../../src/lib/netlist/plib/ppmf.cpp: In member function ‘void plib::mfp_raw<plib::ppmf_type::INTERNAL_MSC>::convert_to_generic(void (*&)(), plib::mfp_generic_class*&) const’:
../../../../../src/lib/netlist/plib/ppmf.cpp:82:64: error: ‘ptrdiff_t’ does not name a type
82 | byteptr += (m_vptr_index * static_cast<ptrdiff_t>(sizeof(void *)));
| ^~~~~~~~~
../../../../../src/lib/netlist/plib/ppmf.cpp:5:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
4 | #include "ppmf.h"
+++ |+#include <cstddef>
5 |
update. pulled current version from git and this one builds fine. so sorry for the noise.
© Forums