GNU bug report logs - #49350
gcc-toolchain compilation error with -nostdinc++

Previous Next

Package: guix;

Reported by: Ontje Lünsdorf <oluensdorf <at> mailbox.org>

Date: Sat, 3 Jul 2021 12:05:02 UTC

Severity: normal

Done: Ontje Lünsdorf <oluensdorf <at> mailbox.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ontje Lünsdorf <oluensdorf <at> mailbox.org>
Subject: bug#49350: closed (Re: bug#49350: gcc-toolchain compilation error
 with -nostdinc++)
Date: Tue, 27 Jul 2021 14:41:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#49350: gcc-toolchain compilation error with -nostdinc++

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 49350 <at> debbugs.gnu.org.

-- 
49350: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49350
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ontje Lünsdorf <oluensdorf <at> mailbox.org>
To: Sarah Morgensen <iskarian <at> mgsn.dev>
Cc: 49350-done <at> debbugs.gnu.org
Subject: Re: bug#49350: gcc-toolchain compilation error with -nostdinc++
Date: Tue, 27 Jul 2021 10:07:33 +0200
Hi Sarah,


Sarah Morgensen <iskarian <at> mgsn.dev> writes:

> The issue seems to be with the (automatically set by Guix)
> CPLUS_INCLUDE_PATH environment variable. The following works as
> expected:
>
>   guix environment --pure --ad-hoc gcc-toolchain -- CPLUS_INCLUDE_PATH= c++ -nostdinc++ test.cpp

thanks, this solved my problem.

Best regards,
Ontje

[Message part 3 (message/rfc822, inline)]
From: Ontje Lünsdorf <oluensdorf <at> mailbox.org>
To: bug-guix <at> gnu.org
Subject: gcc-toolchain compilation error with -nostdinc++
Date: Sat, 03 Jul 2021 12:41:11 +0200
Hi all,


I've problems compiling LLVM manually with the gcc-toolchain.
sanitizer_posix_libcdep.cpp is build with -nostdinc++ and fails to find
bits/c++config.h.

I think the issue can be reproduced with this example test.cpp:

#include <stdlib.h>
int main() { return 0; }

c++ from archlinux compiles that file, while c++ from gcc-toolchain doesn't:

$ c++ -nostdinc++ test.cpp
$ guix environment --ad-hoc gcc-toolchain -- c++ -nostdinc++ test.cpp
In file included from /gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/stdlib.h:36,
                 from test.cpp:1:
/gnu/store/nh9r04xhzmbk3hjsj92yhlhmjsp521g4-profile/include/c++/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
   41 | #include <bits/c++config.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

Is this expected and I'm doing something wrong?

Thanks & best regards,
Ontje



This bug report was last modified 3 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.