Re: bug#47615: [PATCH 1/9] gnu: bootstrap: Add support for powerpc-linux.

2021-05-06 Thread Ludovic Courtès
Hi Chris,

Chris Marusich  skribis:

> Chris Marusich  writes:
>
>> Efraim Flashner  writes:
>>
>>> On 923bb70a1bff657125c3008f119a477e5cb57c2b
>>>gnu:glibc-for-bootstrap: Fix patch.
>>>
>>> Run
>>> ./pre-inst-env guix build --target=powerpc-linux-gnu bootstrap-tarballs
> g>>
>>> Producing
>>>
>>> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
>>>
>>> With guix hash -rx 
>>> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
>>>
>>> 02xx2ydj28pwv3vflqffinpq1icj09gzi9icm8j4bwc4lca9irxn
>>
>> Generally speaking, this patch looks fine to me.  Just curious, what
>> sort of machines does one use for 32-bit powerpc?
>>
>> I want to build the bootstrap binaries, see if they're reproducible (in
>> particular GCC, which I suspect won't be), and verify the hashes.
>>
>> It might take a few days to do that, but I'll update this thread once
>> I've done it.
>
> I repeated Efraim's steps on two different x86_64-linux Guix System
> machines.  In both cases, it produced exactly the same hash.  Therefore,
> it would seem these bootstrap binaries are actually reproducible.

This is great news, thanks for checking!

With this, we can be more confident uploading the binary seeds to
ftp.gnu.org.

> I was surprised by this because of my experience with bug 41669.  I
> expected GCC to not be reproducible, but in this case it seems
> reproducible.

Yes, that’s weird, but it’s better this way.  :-)

Thanks,
Ludo’.



Re: bug#47615: [PATCH 1/9] gnu: bootstrap: Add support for powerpc-linux.

2021-05-05 Thread Efraim Flashner
On Tue, May 04, 2021 at 06:52:31PM -0700, Chris Marusich wrote:
> Chris Marusich  writes:
> 
> > Efraim Flashner  writes:
> >
> >> On 923bb70a1bff657125c3008f119a477e5cb57c2b
> >>gnu:glibc-for-bootstrap: Fix patch.
> >>
> >> Run
> >> ./pre-inst-env guix build --target=powerpc-linux-gnu bootstrap-tarballs
> g>>
> >> Producing
> >>
> >> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
> >>
> >> With guix hash -rx 
> >> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
> >>
> >> 02xx2ydj28pwv3vflqffinpq1icj09gzi9icm8j4bwc4lca9irxn
> >
> > Generally speaking, this patch looks fine to me.  Just curious, what
> > sort of machines does one use for 32-bit powerpc?
> >
> > I want to build the bootstrap binaries, see if they're reproducible (in
> > particular GCC, which I suspect won't be), and verify the hashes.
> >
> > It might take a few days to do that, but I'll update this thread once
> > I've done it.
> 
> I repeated Efraim's steps on two different x86_64-linux Guix System
> machines.  In both cases, it produced exactly the same hash.  Therefore,
> it would seem these bootstrap binaries are actually reproducible.  I was
> surprised by this because of my experience with bug 41669.  I expected
> GCC to not be reproducible, but in this case it seems reproducible.
> 
> I wonder what's different?  The powerpc64 architecture is 64-bit, and
> powerpc is 32-bit, but I wonder what else might be different that could
> cause the non-reproducibility to occur only in the powerpc64-linux
> case.
> 
> Anyway, this is good news for the powerpc-linux port.  It is also an
> interesting clue for the investigation of bug 41669, but further
> discussion about that should go there, not here.
> 

In terms of what is more relevant here, IIRC there is some CI code to
build cross toolchain stuff to powerpc-linux-gnu. Is it possible that
you reused some of that? I don't remember exactly from the other bug
report which bits suddenly made the difference. Otherwise I built mine
about 4 months earlier.



-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: bug#47615: [PATCH 1/9] gnu: bootstrap: Add support for powerpc-linux.

2021-05-04 Thread Chris Marusich
Chris Marusich  writes:

> Efraim Flashner  writes:
>
>> On 923bb70a1bff657125c3008f119a477e5cb57c2b
>>gnu:glibc-for-bootstrap: Fix patch.
>>
>> Run
>> ./pre-inst-env guix build --target=powerpc-linux-gnu bootstrap-tarballs
g>>
>> Producing
>>
>> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
>>
>> With guix hash -rx 
>> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
>>
>> 02xx2ydj28pwv3vflqffinpq1icj09gzi9icm8j4bwc4lca9irxn
>
> Generally speaking, this patch looks fine to me.  Just curious, what
> sort of machines does one use for 32-bit powerpc?
>
> I want to build the bootstrap binaries, see if they're reproducible (in
> particular GCC, which I suspect won't be), and verify the hashes.
>
> It might take a few days to do that, but I'll update this thread once
> I've done it.

I repeated Efraim's steps on two different x86_64-linux Guix System
machines.  In both cases, it produced exactly the same hash.  Therefore,
it would seem these bootstrap binaries are actually reproducible.  I was
surprised by this because of my experience with bug 41669.  I expected
GCC to not be reproducible, but in this case it seems reproducible.

I wonder what's different?  The powerpc64 architecture is 64-bit, and
powerpc is 32-bit, but I wonder what else might be different that could
cause the non-reproducibility to occur only in the powerpc64-linux
case.

Anyway, this is good news for the powerpc-linux port.  It is also an
interesting clue for the investigation of bug 41669, but further
discussion about that should go there, not here.

-- 
Chris


signature.asc
Description: PGP signature


Re: bug#47615: [PATCH 1/9] gnu: bootstrap: Add support for powerpc-linux.

2021-04-14 Thread Efraim Flashner
On Wed, Apr 14, 2021 at 09:36:24AM +0200, Vincent Legoll wrote:
> Hello,
> 
> On Wed, Apr 14, 2021 at 5:51 AM Chris Marusich  wrote:
> > Generally speaking, this patch looks fine to me.  Just curious, what
> > sort of machines does one use for 32-bit powerpc?
> 
> Old apple hardware based on powerpc G4 (powermacs, mini, imac, etc.),
> maybe even G3.

There are a couple families of 32-bit powerpc machines out there with
(IIRC) macppc being the most prevalent for desktops.

> 
> > Any ideas for how we can get a machine for powerpc CI?  Maybe VMs, I
> > guess?  Can a POWER9 machine be a powerpc-linux machine...?
> 
> A VM on power9 may be able to run BE ppc32.
> 

Can it do it "directly" or does it need to be inside of a VM/chroot? I
never looked too much into it, never quite seemed like something that
I'd be able to take advantage of.

-- 
Efraim Flashner  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: bug#47615: [PATCH 1/9] gnu: bootstrap: Add support for powerpc-linux.

2021-04-14 Thread Vincent Legoll
Hello,

On Wed, Apr 14, 2021 at 5:51 AM Chris Marusich  wrote:
> Generally speaking, this patch looks fine to me.  Just curious, what
> sort of machines does one use for 32-bit powerpc?

Old apple hardware based on powerpc G4 (powermacs, mini, imac, etc.),
maybe even G3.

> Any ideas for how we can get a machine for powerpc CI?  Maybe VMs, I
> guess?  Can a POWER9 machine be a powerpc-linux machine...?

A VM on power9 may be able to run BE ppc32.

Regards

-- 
Vincent Legoll



Re: bug#47615: [PATCH 1/9] gnu: bootstrap: Add support for powerpc-linux.

2021-04-13 Thread Chris Marusich
Efraim Flashner  writes:

> On 923bb70a1bff657125c3008f119a477e5cb57c2b
>gnu:glibc-for-bootstrap: Fix patch.
>
> Run
> ./pre-inst-env guix build --target=powerpc-linux-gnu bootstrap-tarballs
>
> Producing
>
> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
>
> With guix hash -rx 
> /gnu/store/dyj1wvayyp1ihaknkxniz1xamcf4yrhl-bootstrap-tarballs-0
>
> 02xx2ydj28pwv3vflqffinpq1icj09gzi9icm8j4bwc4lca9irxn

Generally speaking, this patch looks fine to me.  Just curious, what
sort of machines does one use for 32-bit powerpc?

I want to build the bootstrap binaries, see if they're reproducible (in
particular GCC, which I suspect won't be), and verify the hashes.

It might take a few days to do that, but I'll update this thread once
I've done it.

> @@ -139,6 +148,7 @@
>;; This is where the bootstrap executables come from.
>
> '("https://git.savannah.gnu.org/cgit/guix.git/plain/gnu/packages/bootstrap/;
>  "https://alpha.gnu.org/gnu/guix/bootstrap/;
> +"http://flashner.co.il/guix/bootstrap/;
>  "http://lilypond.org/janneke/guix/;))

Once you're reasonably sure the bootstrap binaries won't change, we
should consider uploading them to alpha.gnu.org.  Ludo did it for me for
powerpc64le-linux but I don't know who has access (I don't).

>  (define %hurd-systems
>;; The GNU/Hurd systems for which support is being developed.
> @@ -361,7 +361,7 @@ name of its URI."
>;;
>;; XXX: MIPS is unavailable in CI:
>;; .
> -  (fold delete %supported-systems '("mips64el-linux")))
> +  (fold delete %supported-systems '("mips64el-linux" "powerpc-linux")))

Any ideas for how we can get a machine for powerpc CI?  Maybe VMs, I
guess?  Can a POWER9 machine be a powerpc-linux machine...?


-- 
Chris


signature.asc
Description: PGP signature