[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ error
From: |
Laurent Gatto |
Subject: |
Re: C++ error |
Date: |
Wed, 13 Nov 2024 07:49:43 +0100 |
Hi,
```
$ guix package -I gcc
gcc-toolchain 14.2.0 out
/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-stdcompat and rust-link-cplusplus. Is this
normal?
```
$ guix describe
Generation 63 Nov 13 2024 00:02:27 (current)
guix-science 7304e37
repository URL: https://codeberg.org/guix-science/guix-science.git
branch: master
commit: 7304e37d4d664f27a18577e388c91413878d62fc
nonguix 99574ff
repository URL: https://gitlab.com/nonguix/nonguix
branch: master
commit: 99574ff94b6fb97794ba720b6fdadf470963dbdc
lguix-channel 4aa4417
repository URL: https://codeberg.org/lgatto/lguix-channel.git
branch: main
commit: 4aa4417eec58db3d5a9f1c90250ef57641489717
guix 4e028ec
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 4e028ecc823bcdbb69c391ad7079085cd7749b15
```
The only non-standard channel is my own, that only provides a couple
of packages. I doubt this is the culprit, as there is no gcc related
package and I was already experiencing issues before setting it up.
Laurent
On Wed, 13 Nov 2024 at 01:50, Fredrik Salomonsson <plattfot@posteo.net> wrote:
>
> Hi,
>
> Laurent Gatto <laurent.gatto@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
- C++ error, Laurent Gatto, 2024/11/12
- Re: C++ error, Fredrik Salomonsson, 2024/11/12
- Re: C++ error, Laurent Gatto, 2024/11/12
- Re: C++ error, Fredrik Salomonsson, 2024/11/12
- Re: C++ error,
Laurent Gatto <=
- Re: C++ error, Fredrik Salomonsson, 2024/11/13
- Re: C++ error, Laurent Gatto, 2024/11/13
- Re: C++ error, Fredrik Salomonsson, 2024/11/14
- Re: C++ error, Laurent Gatto, 2024/11/16
- Re: C++ error, Laurent Gatto, 2024/11/16
- Re: C++ error, Fredrik Salomonsson, 2024/11/18
- Re: C++ error, Laurent Gatto, 2024/11/21