all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ontje Lünsdorf via Bug reports for GNU Guix" <bug-guix@gnu.org>
To: 49350@debbugs.gnu.org
Subject: bug#49350: gcc-toolchain compilation error with -nostdinc++
Date: Sat, 03 Jul 2021 12:41:11 +0200	[thread overview]
Message-ID: <87k0m73cjc.fsf@mailbox.org> (raw)

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




             reply	other threads:[~2021-07-03 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-03 10:41 Ontje Lünsdorf via Bug reports for GNU Guix [this message]
2021-07-06  8:00 ` bug#49350: gcc-toolchain compilation error with -nostdinc++ Sarah Morgensen via Bug reports for GNU Guix
2021-07-27  8:07   ` Ontje Lünsdorf via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0m73cjc.fsf@mailbox.org \
    --to=bug-guix@gnu.org \
    --cc=49350@debbugs.gnu.org \
    --cc=oluensdorf@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.