Re: C++ error

2024-11-21 Thread Laurent Gatto
Thank you for your help, Fredrik. Bug filed here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74455 Laurent On Mon, 18 Nov 2024 at 19:49, Fredrik Salomonsson wrote: > > Hi, > > Laurent Gatto writes: > > > On Sat, 16 Nov 2024 at 11:56, Laurent Gatto wrote: > >> > >> Hi Fredrik, > >> > >> Exc

Re: C++ error

2024-11-18 Thread Fredrik Salomonsson
Hi, Laurent Gatto writes: > On Sat, 16 Nov 2024 at 11:56, Laurent Gatto wrote: >> >> Hi Fredrik, >> >> Excellent advice, and I was able to identify the culprit. Awesome! >> Here's a simple reproducible example >> >> $ guix shell --container gcc-toolchain >> [env]$ g++ main.cpp >> [env]$ exit

Re: C++ error

2024-11-16 Thread Laurent Gatto
On Sat, 16 Nov 2024 at 11:56, Laurent Gatto wrote: > > Hi Fredrik, > > Excellent advice, and I was able to identify the culprit. > > Here's a simple reproducible example > > $ guix shell --container gcc-toolchain > [env]$ g++ main.cpp > [env]$ exit > > $ guix shell --container gcc-toolchain gfortr

Re: C++ error

2024-11-16 Thread Laurent Gatto
Hi Fredrik, Excellent advice, and I was able to identify the culprit. Here's a simple reproducible example $ guix shell --container gcc-toolchain [env]$ g++ main.cpp [env]$ exit $ guix shell --container gcc-toolchain gfortran-toolchain [env]$ g++ main.cpp In file included from /gnu/store/68l504

Re: C++ error

2024-11-14 Thread Fredrik Salomonsson
Hi, Laurent Gatto writes: > Hi Fredrik, > >> So something else must be affecting yours. No idea about what that is >> though. Did you install guix as a package manager on top of an foreign >> distro or is this a Guix System machine? > > I should have specified that this is a Guix system machin

Re: C++ error

2024-11-13 Thread Laurent Gatto
Hi Fredrik, > So something else must be affecting yours. No idea about what that is > though. Did you install guix as a package manager on top of an foreign > distro or is this a Guix System machine? I should have specified that this is a Guix system machine. > Also has this ever worked for yo

Re: C++ error

2024-11-13 Thread Fredrik Salomonsson
Hello, Laurent Gatto writes: > Hi, > > ``` > $ guix package -I gcc > gcc-toolchain14.2.0out > /gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain-14.2.0 > ``` > > but nothing matches stdc++ > > ``` > $ guix package -I stdc\+\+ > ``` > > If I `guix search for stdc\+\+`, I get, libst

Re: C++ error

2024-11-13 Thread Laurent Gatto
Hi, ``` $ guix package -I gcc gcc-toolchain14.2.0out /gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain-14.2.0 ``` but nothing matches stdc++ ``` $ guix package -I stdc\+\+ ``` If I `guix search for stdc\+\+`, I get, libstdc++-doc 9.5.0 and 5.5.0, texlive-stdclsdv, ocaml-stdcompa

Re: C++ error

2024-11-12 Thread Fredrik Salomonsson
Hi, Laurent Gatto 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

Re: C++ error

2024-11-12 Thread Laurent Gatto
Hi Fredrik, Thank you for taking the time looking into this. 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

Re: C++ error

2024-11-12 Thread Fredrik Salomonsson
Hi, Laurent Gatto writes: > Dear all, > > I have this very simple code chunk > > $ cat main.cpp > #include > > int main(void) { > std::cout << __cplusplus; > > return 0; > } > > That I can compile in a minimal shell > > $ guix shell --container gcc-toolchain > [env]$ g++ main.cpp && ./a