unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <m.othacehe@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: guix-devel@gnu.org
Subject: Re: i686-linux GCC package on x86_64
Date: Fri, 04 Oct 2019 17:16:38 +0200	[thread overview]
Message-ID: <87r23s1qy1.fsf@gmail.com> (raw)
In-Reply-To: <877e5lnd81.fsf@ambrevar.xyz>


> Works for me to, but I'd like to write a package that depends on GCC i686-linux.

You mean a package that uses a compiler able to generate code for
i686-linux? In that case you can have a look to (gnu packages firmware),
where "cross-gcc" packages are used (ovmf-aarch64 package for instance).

You would have to write something like:

--8<---------------cut here---------------start------------->8---
    (native-inputs
     `(,@(if (not (string-prefix? "i686" (%current-system)))
           `(("cross-gcc" ,(cross-gcc "i686-unknown-linux-gnu"))
             ("cross-binutils" ,(cross-binutils "i686-unknown-linux-gnu")))
           '())))
--8<---------------cut here---------------end--------------->8---

that uses the current gcc if you're already building on an i686 system,
or define and use a cross-gcc targeting i686 systems otherwise.

Mathieu

  reply	other threads:[~2019-10-04 15:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-22 17:35 i686-linux GCC package on x86_64 Pierre Neidhardt
2019-10-03 12:38 ` Pierre Neidhardt
2019-10-04  6:32   ` Mathieu Othacehe
2019-10-04  8:09     ` Pierre Neidhardt
2019-10-04 15:16       ` Mathieu Othacehe [this message]
2019-10-04 15:46         ` Jelle Licht
2019-10-04 16:16           ` Danny Milosavljevic
2019-10-05  4:54             ` Chris Marusich
2019-10-07 22:34               ` Ricardo Wurmus
2019-10-08  2:36                 ` Chris Marusich
2019-10-10 13:34         ` Pierre Neidhardt
2019-10-11  8:12           ` Mathieu Othacehe
2019-10-11  9:30             ` Pierre Neidhardt
2019-10-11 10:07               ` Mathieu Othacehe
2019-10-14 13:35                 ` Pierre Neidhardt
2019-10-14 14:21                   ` Jelle Licht
2019-10-14 14:23                     ` Jelle Licht
2019-10-14 14:54                   ` Mathieu Othacehe
2019-10-14 15:44                     ` Pierre Neidhardt
2019-10-16 16:38                     ` Alex Kost
2019-10-07 15:19   ` Ludovic Courtès
2019-10-10 13:35     ` Pierre Neidhardt
2019-10-10 15:00       ` Ludovic Courtès

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=87r23s1qy1.fsf@gmail.com \
    --to=m.othacehe@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mail@ambrevar.xyz \
    /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).