Hi, Laurent Gatto <laurent.ga...@gmail.com> writes:
> Hi Fredrik, > > Thank you for taking the time looking into this. No worries. > > My issue doesn't seem to be related to an old gcc version. > > ``` > $ g++ --version > g++ (GCC) 14.2.0 > Copyright (C) 2024 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > ``` > > My location is different though > > ``` > $ which g++ > /home/lgatto/.guix-profile/bin/g++ > ``` > Checking the stdc++ lib: > > ``` > $ sed -n '3154p' ~/.guix-profile/include/c++/type_traits > _GLIBCXX20_DEPRECATED("use is_standard_layout_v && is_trivial_v instead") > ``` > > And the gcc search paths on my machine: > > ``` > $ echo | g++ -E -Wp,-v - > ignoring nonexistent directory "/no-gcc-local-prefix/include" > ignoring nonexistent directory > "/gnu/store/ikn0imxfc6n0ba12mrf0c4hc1jm7ylc7-gcc-14.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../../../../x86_64-unknown-linux-gnu/include" > ignoring duplicate directory "/home/lgatto/.guix-profile/include" > as it is a non-system directory that duplicates a system directory > #include "..." search starts here: > #include <...> search starts here: > /home/lgatto/.guix-profile/include > > /gnu/store/ikn0imxfc6n0ba12mrf0c4hc1jm7ylc7-gcc-14.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/include > > /gnu/store/ikn0imxfc6n0ba12mrf0c4hc1jm7ylc7-gcc-14.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/include-fixed > /gnu/store/zvlp3n8iwa1svxmwv4q22pv1pb1c9pjq-glibc-2.39/include > End of search list. > # 0 "<stdin>" > # 0 "<built-in>" > # 0 "<command-line>" > # 1 "/home/lgatto/.guix-profile/include/stdc-predef.h" 1 3 > # 0 "<command-line>" 2 > # 1 "<stdin>" > ```` > > Except for the version and location, all this looks very similar to > what you have, which leaves me quite puzzled. Indeed, this is strange. What does `guix package -I gcc` and `guix package -I stdc\+\+` give you? Maybe it'll show you some discrepancies. And if this is any help this is the commit I'm using for guix: ``` $ guix describe Generation 142 nov 09 2024 12:47:04 (current) … guix 14abf6e repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 14abf6e19e5c24fa690a443f5467e7f0b6eafcc5 ``` Note: I removed the other channels I'm using and replaced them with `…`. None of them defines any gcc related packages so they should not affect this. -- s/Fred[re]+i[ck]+/Fredrik/g