Mathieu Othacehe (2019-10-14 16:54 +0200) wrote:
> Hey Pierre,
>
>> --8<---cut here---start->8---
>> (define-public cross-gcc
>> (package
>> (inherit ((@@ (gnu packages cross-base) cross-gcc)
>> "i686-unknown-linux-gnu"
>>
Hey Pierre,
> --8<---cut here---start->8---
> (define-public cross-gcc
> (package
> (inherit ((@@ (gnu packages cross-base) cross-gcc)
> "i686-unknown-linux-gnu"
> #:libc (cross-libc "i686-unknown-linux-gnu")))
> (name
Jelle Licht writes:
> Would `guix build cross-gcc-i686-unknown-linux-gnu' work?
>
My mail reader did not expand your snippet fully, I overlooked the fact
that you already overrode the name field. Sorry for the noise!
Pierre Neidhardt writes:
>[snip]
> --8<---cut here---start->8---
> (define-public cross-gcc
> (package
> (inherit ((@@ (gnu packages cross-base) cross-gcc)
> "i686-unknown-linux-gnu"
> #:libc (cross-libc
> Now the only issue is that the libc is placed in a
> "/gnu/store/...-gcc-cross-i686-unknown-linux-gnu-5.5.0/i686-unknown-linux-gnu"
> subfolder.
> I wonder why. How are dependencies supposed to find the libs in there?
>
> Is it possible to move the libs to the usual "lib" folder at the root?
> This works but cross-gcc only delivers GCC and the libc.
> The "lib" output of the regular GCC is missing.
>
> In particular, I'd need libstdc++.so.
Then, that should be fine:
--8<---cut here---start->8---
(native-inputs
`(,@(if (not
Hi,
Pierre Neidhardt skribis:
> Yes, this is what I had tried. Sadly it works for all packages that I know of
> except GCC. Maybe a bug?
Oh, there may be confusion as to which GCC you’re targeting. That is,
the #:system argument is presumably passed to the “leaf” GCC, but not to
the ones
Hi Ludo,
Yes, this is what I had tried. Sadly it works for all packages that I know of
except GCC. Maybe a bug?
--
Pierre Neidhardt
https://ambrevar.xyz/
signature.asc
Description: PGP signature
Ricardo Wurmus writes:
> Chris Marusich writes:
>
>> That said, I am curious about something. If I want to make a
>> cross-compiler available for the purpose of hacking around on some code
>> and cross-compiling it, is there an equivalent to "guix package -i
>> gcc-toolchain" which will give
Chris Marusich writes:
> That said, I am curious about something. If I want to make a
> cross-compiler available for the purpose of hacking around on some code
> and cross-compiling it, is there an equivalent to "guix package -i
> gcc-toolchain" which will give me a cross-compilation
Hi Pierre,
Pierre Neidhardt skribis:
> Pierre Neidhardt writes:
>
>> Hi!
>>
>> I'm trying to define an i686-linux package of gcc.
>> Simply using the
>>
>> --8<---cut here---start->8---
>> #:system "i686-linux"
>> --8<---cut
Danny Milosavljevic writes:
> On Fri, 04 Oct 2019 17:46:43 +0200
> Jelle Licht wrote:
>
>> Mathieu Othacehe writes:
>>
>> >
>> > --8<---cut here---start->8---
>> > (native-inputs
>> > `(,@(if (not (string-prefix? "i686" (%current-system)))
>> >
Hi,
On Fri, 04 Oct 2019 17:46:43 +0200
Jelle Licht wrote:
> Mathieu Othacehe writes:
>
> >
> > --8<---cut here---start->8---
> > (native-inputs
> > `(,@(if (not (string-prefix? "i686" (%current-system)))
> >`(("cross-gcc" ,(cross-gcc
Mathieu Othacehe writes:
>
> --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
> 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
Hello Pierre,
>> guix build --system=i686-linux -e '(@@ (gnu packages gcc) gcc)'
>>
>> produces a hash error.)
>>
>> Any clue?
>
> Friendly ping! :)
>
> Mathieu, I think you've got experience with cross-compilation on Guix,
> any clue about this?
I think the gcc packages defined in (gnu
Pierre Neidhardt writes:
> Hi!
>
> I'm trying to define an i686-linux package of gcc.
> Simply using the
>
> --8<---cut here---start->8---
> #:system "i686-linux"
> --8<---cut here---end--->8---
>
> results in a bunch of
>
>
17 matches
Mail list logo