From finjulhich at gmail.com Mon May 4 17:04:05 2026 From: finjulhich at gmail.com (MM) Date: Mon May 4 17:04:37 2026 Subject: [odb-users] gcc 16 odb compile error Message-ID: hello I see gcc 16 erroring with this /usr/local/src/codesynthesis/odb-gcc-16/odb-2.5.0/odb/plugin.cxx: In function ?void start_unit_callback(void*, void*)?: /usr/local/src/codesynthesis/odb-gcc-16/odb-2.5.0/odb/plugin.cxx:155:15: error: ?cpp_get_dir? was not declared in this scope; did you mean ?cpp_get_file?? 155 | cpp_dir* d (cpp_get_dir (f)); | ^~~~~~~~~~~ | cpp_get_file /usr/local/src/codesynthesis/odb-gcc-16/odb-2.5.0/odb/plugin.cxx:156:18: error: ?cpp_get_path? was not declared in this scope; did you mean ?cpp_get_date?? 156 | char const* p (cpp_get_path (f)); | ^~~~~~~~~~~~ | cpp_get_date error: process g++ exited with code 1 let me know if there's a fix? From boris at codesynthesis.com Wed May 6 04:23:50 2026 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed May 6 04:24:04 2026 Subject: [odb-users] gcc 16 odb compile error In-Reply-To: References: Message-ID: MM writes: > I see gcc 16 erroring with this [...] Yes, we are aware and it's already fixed for the upcoming 2.6.0 (still a few months out). From hicham at mouline.org Wed May 6 15:58:47 2026 From: hicham at mouline.org (Hicham Mouline) Date: Thu May 7 08:30:00 2026 Subject: [odb-users] gcc 16 odb compile error In-Reply-To: References: Message-ID: On Wed, 6 May 2026 at 09:23, Boris Kolpackov wrote: > MM writes: > > > I see gcc 16 erroring with this [...] > > Yes, we are aware and it's already fixed for the upcoming 2.6.0 (still a > few months out). Meaning that even with bpkg it's not obtainable earlier? as I am not downloading rpms but building locally.... Thanks From boris at codesynthesis.com Thu May 7 08:31:38 2026 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu May 7 08:31:50 2026 Subject: [odb-users] gcc 16 odb compile error In-Reply-To: References: Message-ID: Hicham Mouline writes: > Meaning that even with bpkg it's not obtainable earlier? Sure, you can get the 2.6.0 development snapshot from the https://queue.stage.build2.org repository. From finjulhich at gmail.com Sat May 9 17:53:32 2026 From: finjulhich at gmail.com (MM) Date: Sat May 9 17:54:02 2026 Subject: [odb-users] gcc 16 odb compile error Message-ID: On Thu, 7 May 2026 at 13:31, Boris Kolpackov wrote: > > > Meaning that even with bpkg it's not obtainable earlier? > > Sure, you can get the 2.6.0 development snapshot from the > https://queue.stage.build2.org repository. I've got something wrong (I've remove the regular repo) # pkg rep-list pkg:queue.stage.build2.org/stable https://queue.stage.build2.org/1/stable # bpkg fetch fetching pkg:queue.stage.build2.org/stable curl: (22) The requested URL returned error: 404 error: unable to fetch https://queue.stage.build2.org/1/stable/repositories.manifest From finjulhich at gmail.com Sat May 16 08:42:34 2026 From: finjulhich at gmail.com (MM) Date: Sat May 16 08:43:06 2026 Subject: [odb-users] gcc 16 odb compile error In-Reply-To: References: Message-ID: On Sat, 9 May 2026 at 22:53, MM wrote: > On Thu, 7 May 2026 at 13:31, Boris Kolpackov > wrote: > >> >> > Meaning that even with bpkg it's not obtainable earlier? >> >> Sure, you can get the 2.6.0 development snapshot from the >> https://queue.stage.build2.org repository. > > > I've got something wrong (I've remove the regular repo) > > # pkg rep-list > pkg:queue.stage.build2.org/stable https://queue.stage.build2.org/1/stable > # bpkg fetch > fetching pkg:queue.stage.build2.org/stable > curl: (22) The requested URL returned error: 404 > error: unable to fetch > https://queue.stage.build2.org/1/stable/repositories.manifest > I've fixed my repolist --- bpkg rep-list pkg:queue.stage.build2.org/alpha https://queue.stage.build2.org/1/alpha but it requires build2 >= 0.18 Is there any chance of an upcoming rpm for that bpkg in Fedora 44, rather than building bpkg myself? rds, From finjulhich at gmail.com Sat May 16 09:17:51 2026 From: finjulhich at gmail.com (MM) Date: Sat May 16 09:18:22 2026 Subject: [odb-users] gcc 16 odb compile error In-Reply-To: References: Message-ID: On Sat, 16 May 2026 at 13:42, MM wrote: > On Sat, 9 May 2026 at 22:53, MM wrote: > >> On Thu, 7 May 2026 at 13:31, Boris Kolpackov >> wrote: >> >>> >>> > Meaning that even with bpkg it's not obtainable earlier? >>> >>> Sure, you can get the 2.6.0 development snapshot from the >>> https://queue.stage.build2.org repository. >> >> >> I've got something wrong (I've remove the regular repo) >> >> # pkg rep-list >> pkg:queue.stage.build2.org/stable https://queue.stage.build2.org/1/stable >> # bpkg fetch >> fetching pkg:queue.stage.build2.org/stable >> curl: (22) The requested URL returned error: 404 >> error: unable to fetch >> https://queue.stage.build2.org/1/stable/repositories.manifest >> > I've fixed my repolist > --- bpkg rep-list > pkg:queue.stage.build2.org/alpha https://queue.stage.build2.org/1/alpha > > but it requires build2 >= 0.18 > > Is there any chance of an upcoming rpm for that bpkg in Fedora 44, rather > than building bpkg myself? > > rds > Apologies I've found it in download.build2.org. it works now, thanks From finjulhich at gmail.com Sat May 16 16:44:37 2026 From: finjulhich at gmail.com (MM) Date: Sat May 16 16:45:07 2026 Subject: [odb-users] odb2.6 gcc16 non-constant condition for static assertion (maybe incomplete type) Message-ID: Hello, I will sent a standalone reproducible but does this error stack hint at anything that can help me towards reducing the problem? odb -d pgsql --std c++20 --profile boost --generate-query -I/myhome/myproj -I/usr/include --changelog /myhome/myproj/odb/otp_pgsql.xml /myhome/myproj/mystuff_live_odb/things.hpp struct selector { std::string ctype; uint64_t cid; }; using things_t = std::unordered_map; #pragma db value(selector) definition #pragma db member(selector::ctype) column("cype") #pragma db member(selector::cid) column("cid") #pragma db object(things_ns) definition table("p") #pragma db member(things_ns::id) id virtual(std::size_t) column("pid") #pragma db value(things_ns::things_t) value_column("posn") #pragma db member(things_ns::things) virtual(things_ns::things_t) In file included from /usr/include/c++/16/bits/char_traits.h:52, from /usr/include/c++/16/string:45, from :7: /usr/include/c++/16/type_traits: In instantiation of ?struct std::is_default_constructible >?: /usr/include/c++/16/type_traits:191:35: required by substitution of ?template std::__detail::__first_t, typename std::enable_if<(bool)(_Bn::value), void>::type ...> std::__detail::__and_fn(int) [with _Bn = {std::is_default_constructible >, std::is_default_constructible >, std::is_default_constructible > >}]? 191 | __enable_if_t...>; | ^~~~~ /usr/include/c++/16/type_traits:207:42: required from ?struct std::__and_ >, std::is_default_constructible >, std::is_default_constructible > > >? 207 | : decltype(__detail::__and_fn<_Bn...>(0)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/16/bits/hashtable.h:64:11: required by substitution of ?template using std::_Hashtable_enable_default_ctor = std::_Enable_default_constructor, std::is_default_constructible<_Dp>, std::is_default_constructible<_Allocator> >{}, std::__detail::_Hash_node_base> [with _Equal = std::equal_to; _Hash = std::hash; _Allocator = std::allocator >]? 64 | using _Hashtable_enable_default_ctor | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/16/bits/hashtable.h:189:11: required from ?class std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >? 189 | class _Hashtable | ^~~~~~~~~~ /usr/include/c++/16/bits/unordered_map.h:115:18: required from ?class std::unordered_map? 115 | _Hashtable _M_h; | ^~~~ /myhome/myproj/mystuff_live_odb/things.hpp:15:12: required from here 15 | #pragma db member(things_ns::things) virtual(things_ns::things_t)\ | ^~~~~~ /usr/include/c++/16/type_traits:1253:52: error: non-constant condition for static assertion 1253 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/16/type_traits:1253: confused by earlier errors, bailing out I can't see what is _Tp that the assertion is tying to deterime its type is complete this worked fine with odb2.5 and gcc15 c++17 Rds, From boris at codesynthesis.com Tue May 19 06:34:50 2026 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue May 19 06:35:02 2026 Subject: [odb-users] odb2.6 gcc16 non-constant condition for static assertion (maybe incomplete type) In-Reply-To: References: Message-ID: MM writes: > does this error stack hint at anything that can help me towards reducing > the problem? Looks like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86441 > I will sent a standalone reproducible but Please file it at https://github.com/codesynthesis-com/odb/issues