Date: Sat, 03 Feb 2024 11:23:01 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276801] science/py-tweedledum: Does not build with lang/gcc13: error: 'uint16_t' in namespace 'std' does not name a type; did you mean 'wint_t'? Message-ID: <bug-276801-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276801 Bug ID: 276801 Summary: science/py-tweedledum: Does not build with lang/gcc13: error: 'uint16_t' in namespace 'std' does not name a type; did you mean 'wint_t'? Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: salvadore@freebsd.org CC: yuri@freebsd.org Blocks: 273397 CC: yuri@freebsd.org This bug report blocks the update of GCC_DEFAULT to 13. This webpage can he= lp finding a fix: https://gcc.gnu.org/gcc-13/porting_to.html [ 17%] Building CXX object CMakeFiles/_tweedledum.dir/python/tweedledum/bindings.cpp.o In file included from /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:45, from /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/python/= tweedledum/bindings.h:7, from /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/python/= tweedledum/bindings.cpp:5: /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:199:10: error: 'uint16_t' in namespace 'std' does not name a type; did you mean 'wint_t'? 199 | std::uint16_t nargs; | ^~~~~~~~ | wint_t /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:202:10: error: 'uint16_t' in namespace 'std' does not name a type; did you mean 'wint_t'? 202 | std::uint16_t nargs_kw_only =3D 0; | ^~~~~~~~ | wint_t /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:205:10: error: 'uint16_t' in namespace 'std' does not name a type; did you mean 'wint_t'? 205 | std::uint16_t nargs_pos_only =3D 0; | ^~~~~~~~ | wint_t /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h: In constructor 'pybind11::detail::function_call::function_call(const pybind11::detail::function_record&, pybind11::handle)': /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:310:20: error: 'const struct pybind11::detail::function_record' has no member named 'nargs'; did you mean 'args'? 310 | args.reserve(f.nargs); | ^~~~~ | args /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:311:28: error: 'const struct pybind11::detail::function_record' has no member named 'nargs'; did you mean 'args'? 311 | args_convert.reserve(f.nargs); | ^~~~~ | args /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h: In function 'void pybind11::detail::process_kw_only_arg(const pybind11::arg= &, function_record*)': /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:382:10: error: 'struct pybind11::detail::function_record' has no member named 'nargs_kw_only' 382 | ++r->nargs_kw_only; | ^~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h: In static member function 'static void pybind11::detail::process_attribute<pybind11::pos_only>::init(const pybind11::pos_only&, pybind11::detail::function_record*)': /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:439:12: error: 'struct pybind11::detail::function_record' has no member named 'nargs_pos_only' 439 | r->nargs_pos_only =3D static_cast<std::uint16_t>(r->args.si= ze()); | ^~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/attr.h:439:46: error: 'uint16_t' in namespace 'std' does not name a type; did you mean 'wint_t'? 439 | r->nargs_pos_only =3D static_cast<std::uint16_t>(r->args.si= ze()); | ^~~~~~~~ | wint_t /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h: In member function 'void pybind11::cpp_function::initialize_generic(unique_function_record&&, const char*, const std::type_info* const*, pybind11::size_t)': /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:311:26: error: 'struct pybind11::detail::function_record' has no member named 'nargs_kw_only' 311 | if (rec->nargs_kw_only > 0 && arg_index + rec->nargs_kw_only =3D=3D args) | ^~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:311:64: error: 'struct pybind11::detail::function_record' has no member named 'nargs_kw_only' 311 | if (rec->nargs_kw_only > 0 && arg_index + rec->nargs_kw_only =3D=3D args) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:329:26: error: 'struct pybind11::detail::function_record' has no member named 'nargs_pos_only' 329 | if (rec->nargs_pos_only > 0 && (arg_index + 1) =3D= =3D rec->nargs_pos_only) | ^~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:329:72: error: 'struct pybind11::detail::function_record' has no member named 'nargs_pos_only' 329 | if (rec->nargs_pos_only > 0 && (arg_index + 1) =3D= =3D rec->nargs_pos_only) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:371:14: error: 'struct pybind11::detail::function_record' has no member named 'narg= s'; did you mean 'args'? 371 | rec->nargs =3D (std::uint16_t) args; | ^~~~~ | args /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:371:28: error: 'uint16_t' is not a member of 'std'; did you mean 'wint_t'? 371 | rec->nargs =3D (std::uint16_t) args; | ^~~~~~~~ | wint_t /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h: In static member function 'static PyObject* pybind11::cpp_function::dispatcher(PyObject*, PyObject*, PyObject*)': /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:604:40: error: 'const struct pybind11::detail::function_record' has no member named 'nargs'; did you mean 'args'? 604 | size_t num_args =3D func.nargs; // Number of positional arguments that we need | ^~~~~ | args /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:607:51: error: 'const struct pybind11::detail::function_record' has no member named 'nargs_kw_only' 607 | size_t pos_args =3D num_args - func.nargs_kw_only; | ^~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:657:40: error: 'const struct pybind11::detail::function_record' has no member named 'nargs_pos_only' 657 | if (args_copied < func.nargs_pos_only) { | ^~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:658:47: error: 'const struct pybind11::detail::function_record' has no member named 'nargs_pos_only' 658 | for (; args_copied < func.nargs_pos_only; ++args_copied) { | ^~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:672:44: error: 'const struct pybind11::detail::function_record' has no member named 'nargs_pos_only' 672 | if (args_copied < func.nargs_pos_only) | ^~~~~~~~~~~~~~ /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/externa= l/pybind11/include/pybind11/pybind11.h:760:53: error: 'const struct pybind11::detail::function_record' has no member named 'nargs'; did you mean 'args'? 760 | second_pass_convert.resize(func.nargs, false); | ^~~~~ | args *** Error code 1 Stop. make[3]: stopped in /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/_skbuil= d/freebsd-14.0-RELEASE-p2-i386-3.9/cmake-build *** Error code 1 Stop. make[2]: stopped in /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/_skbuil= d/freebsd-14.0-RELEASE-p2-i386-3.9/cmake-build *** Error code 1 Stop. make[1]: stopped in /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/_skbuil= d/freebsd-14.0-RELEASE-p2-i386-3.9/cmake-build Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 642, in setup cmkr.make(make_args, install_target=3Dcmake_install_target, env=3Denv) File "/usr/local/lib/python3.9/site-packages/skbuild/cmaker.py", line 679= , in make self.make_impl(clargs=3Dclargs, config=3Dconfig, source_dir=3Dsource_di= r, install_target=3Dinstall_target, env=3Denv) File "/usr/local/lib/python3.9/site-packages/skbuild/cmaker.py", line 710= , in make_impl raise SKBuildError( An error occurred while building with CMake. Command: /usr/local/bin/cmake --build . --target install --config Release -- Install target: install Source directory: /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1 Working directory: =20=20=20 /wrkdirs/usr/ports/science/py-tweedledum/work-py39/tweedledum-1.1.1/_skbuil= d/freebsd-14.0-RELEASE-p2-i386-3.9/cmake-build Please check the install target is valid and see CMake's output for more information. *** Error code 1 Stop. make: stopped in /usr/ports/science/py-tweedledum If the issue needs time to be fixed, please consider introduce USE_GCC=3D12= as a temporary solution. Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273397 [Bug 273397] [exp-run] Update GCC_DEFAULT to 13 etc. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276801-7788>