unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Rutherther <rutherther@protonmail.com>
To: attila@lendvai.name
Cc: guix-devel@gnu.org
Subject: arm-none-eabi toolchain and compiling C++ stuff
Date: Fri, 06 Sep 2024 16:01:54 +0000	[thread overview]
Message-ID: <87v7z8zs7l.fsf@protonmail.com> (raw)


Hello Attila,

lately I've been trying to make arm-none-eabi toolchain with gcc 12.3,
since the older ones cannot be used with QMK. I also stumbled accross
this issue. The issue is actually caused by wrong order of paths in
"CROSS_CPLUS_INCLUDE_PATH". The C include path has to come after the C++ path.
So as a workaround, remove the /include from beginning of this, and
append it instead as last.

Apart from that you will probably have an issue with linking against the
libstdc++, since it's inside of "lib" folder instead or "arm-none-eabi/lib"
that is in CROSS_LIBRARY_PATH. As a workaround, just add
"$GUIX_ENVIRONMENT/lib" to "CROSS_LIBRARY_PATH".

I will try to submit the 12.3 patch soon. In the mean time I have it
inside of my own channel https://github.com/Rutherther/guix-exprs/blob/main/ruther/packages/embedded.scm

Redards,
Rutherther



             reply	other threads:[~2024-09-07  8:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-06 16:01 Rutherther [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-20 20:28 arm-none-eabi toolchain and compiling C++ stuff Attila Lendvai
2023-12-20 20:53 ` Ekaitz Zarraga
2023-12-21 16:11 ` Ricardo Wurmus

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87v7z8zs7l.fsf@protonmail.com \
    --to=rutherther@protonmail.com \
    --cc=attila@lendvai.name \
    --cc=guix-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).