all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#50212: Tests fail while building Guix
       [not found] <yguh7fcz5ee.fsf@netpanic.org>
@ 2021-08-26 18:07 ` Simon Streit
  2021-08-27 19:53   ` bug#50212: Several tests fail, Bash fails often. Was: " Simon Streit
  2021-08-28 15:33   ` bug#50212: " Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 2 replies; 12+ messages in thread
From: Simon Streit @ 2021-08-26 18:07 UTC (permalink / raw)
  To: 50212

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

Hello,

since my first submission of this bug report was rejected -- the
attachments where too big --, this report I will simply repost so that
it can be delivered through mailman while the original post remains only
accessible through the web interface.

Here the original post:

Simon Streit <simon@netpanic.org> writes:
> Hello,
>
> after a time off, I just recently began pulling the latest commits and
> have been trying to build Guix since maybe a week.  But several tests
> fail.  Even a clean clone fails.
>
> I've only a handful of logs.  It seams that the tests fail mostly for
> this reason:
>
> /home/ss2/code/guix/test-tmp/store/9m9mjdz3zl28n1dq094aqsxk5d480mvg-bash: 9m9mjdz3zl28n1dq094aqsxk5d480mvg-bash: No such file or directory
>
> But this executable is there though.

The original logs have been compressed, which should make them now small
enough to let them through the mailer.


[-- Attachment #2: challenge.log.gz --]
[-- Type: application/octet-stream, Size: 2593 bytes --]

[-- Attachment #3: derivations.log.gz --]
[-- Type: application/octet-stream, Size: 14795 bytes --]

[-- Attachment #4: gexp.log.gz --]
[-- Type: application/octet-stream, Size: 15404 bytes --]

[-- Attachment #5: grafts.log.gz --]
[-- Type: application/octet-stream, Size: 27200 bytes --]

[-- Attachment #6: graph.log.gz --]
[-- Type: application/octet-stream, Size: 4368 bytes --]

[-- Attachment #7: packages.log.gz --]
[-- Type: application/octet-stream, Size: 13938 bytes --]

[-- Attachment #8: profiles.log.gz --]
[-- Type: application/octet-stream, Size: 6763 bytes --]

[-- Attachment #9: store.log.gz --]
[-- Type: application/octet-stream, Size: 13182 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-26 18:07 ` bug#50212: Tests fail while building Guix Simon Streit
@ 2021-08-27 19:53   ` Simon Streit
  2021-08-28 15:00     ` Maxime Devos
  2021-08-28 15:33   ` bug#50212: " Tobias Geerinckx-Rice via Bug reports for GNU Guix
  1 sibling, 1 reply; 12+ messages in thread
From: Simon Streit @ 2021-08-27 19:53 UTC (permalink / raw)
  To: 50212

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]

This is another follow up after having actually read the relevant info
section on how to do proper testing in Guix.

Checkout is at 5422920b9eaaa0c6bf779588748595c66ca86ba3, and this time I
prepared a test-suite.log with all errors that happen.  Please find it
attached.  This time it isn't too big either.

Unfortunately ‘tests/processes.scm’ hangs too, or remains unresponsive
after several minutes.

I really wonder what is making all the tests fail.  I've tried building
the sources on different machines, or on clean user accounts.  They all
fail in the same way.  Has someone else been experiencing this yet?


Kind regards,
Simon


[-- Attachment #2: test-suite.log --]
[-- Type: application/octet-stream, Size: 879731 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-27 19:53   ` bug#50212: Several tests fail, Bash fails often. Was: " Simon Streit
@ 2021-08-28 15:00     ` Maxime Devos
  2021-08-28 18:13       ` Mark H Weaver
  2021-08-28 22:32       ` Simon Streit
  0 siblings, 2 replies; 12+ messages in thread
From: Maxime Devos @ 2021-08-28 15:00 UTC (permalink / raw)
  To: Simon Streit, 50212

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

Simon Streit schreef op vr 27-08-2021 om 21:53 [+0200]:
> This is another follow up after having actually read the relevant info
> section on how to do proper testing in Guix.
> 
> Checkout is at 5422920b9eaaa0c6bf779588748595c66ca86ba3, and this time I
> prepared a test-suite.log with all errors that happen.  Please find it
> attached.  This time it isn't too big either.

Some questions:

* What's the hash of gnu/packages/bootstrap/i686-linux/bash?

  (Run guix hash gnu/packages/bootstrap/i686-linux/bash)

  I have 1ig8a4bhc7fpw8zrnw4l568wmmcb29rlwg4jbih3imb4x6d9l1gd.
  If you see something different, your copy is probably corrupt.

* What does ‘objdump -a gnu/packages/bootstrap/i686-linux/bash’ output?
  On my x86_64 system, it outputs ‘[...] file format elf32-i386’.

* What architecture are you on?

  You can test with:

  $ echo '((@ (guix utils) %current-system))' | guix repl

  On my x86_64-linux system, it outputs

  [...]
  $1 = "x86_64-linux"
  scheme@(guix-user)>.

If your system isn't i686-linux or x86_64-linux, something odd is going on.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Tests fail while building Guix
  2021-08-26 18:07 ` bug#50212: Tests fail while building Guix Simon Streit
  2021-08-27 19:53   ` bug#50212: Several tests fail, Bash fails often. Was: " Simon Streit
@ 2021-08-28 15:33   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2021-08-28 21:56     ` Simon Streit
  1 sibling, 1 reply; 12+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2021-08-28 15:33 UTC (permalink / raw)
  To: Simon Streit; +Cc: 50212

On 2021-08-26 20:07, Simon Streit wrote:
> /home/ss2/code/guix/test-tmp/store/9m9mjdz3zl28n1dq094aqsxk5d480mvg-bash: 
> 9m9mjdz3zl28n1dq094aqsxk5d480mvg-bash: No such file or directory
> 
> But this executable is there though.

Does it run when invoked manually?

Kind regards,

T G-R

Sent from a Web browser.  Excuse or enjoy my brevity.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-28 15:00     ` Maxime Devos
@ 2021-08-28 18:13       ` Mark H Weaver
  2021-08-28 22:14         ` Simon Streit
  2021-08-28 22:32       ` Simon Streit
  1 sibling, 1 reply; 12+ messages in thread
From: Mark H Weaver @ 2021-08-28 18:13 UTC (permalink / raw)
  To: Maxime Devos, Simon Streit, 50212

Hi,

Maxime Devos <maximedevos@telenet.be> writes:
> * What's the hash of gnu/packages/bootstrap/i686-linux/bash?
>
>   (Run guix hash gnu/packages/bootstrap/i686-linux/bash)
>
>   I have 1ig8a4bhc7fpw8zrnw4l568wmmcb29rlwg4jbih3imb4x6d9l1gd.
>   If you see something different, your copy is probably corrupt.

Also check the permissions of gnu/packages/bootstrap/i686-linux/bash.
It should be 0555, i.e. "-r-xr-xr-x", and ditto for 'mkdir' in the same
directory.  I vaguely recall someone running into a similar problem many
years ago because the executable bit was missing in their bootstrap
files, even though the files had the correct contents.  The executable
bit is effectively included in the hash computation when the file is
imported to the store, although "guix hash" disregards it when applied
to a single file.

       Mark

--
Disinformation flourishes because many people care deeply about injustice
but very few check the facts.  Ask me about <https://stallmansupport.org>.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Tests fail while building Guix
  2021-08-28 15:33   ` bug#50212: " Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2021-08-28 21:56     ` Simon Streit
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Streit @ 2021-08-28 21:56 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 50212

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> On 2021-08-26 20:07, Simon Streit wrote:
>> /home/ss2/code/guix/test-tmp/store/9m9mjdz3zl28n1dq094aqsxk5d480mvg-bash:
>> 9m9mjdz3zl28n1dq094aqsxk5d480mvg-bash: No such file or directory
>> But this executable is there though.
>
> Does it run when invoked manually?

Good question!  Should have thought about this before early on.  No, it
doesn't.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-28 18:13       ` Mark H Weaver
@ 2021-08-28 22:14         ` Simon Streit
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Streit @ 2021-08-28 22:14 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 50212

Hey Mark,

Mark H Weaver <mhw@netris.org> writes:
> Also check the permissions of gnu/packages/bootstrap/i686-linux/bash.
> It should be 0555, i.e. "-r-xr-xr-x", and ditto for 'mkdir' in the same
> directory.  I vaguely recall someone running into a similar problem many
> years ago because the executable bit was missing in their bootstrap
> files, even though the files had the correct contents.  The executable
> bit is effectively included in the hash computation when the file is
> imported to the store, although "guix hash" disregards it when applied
> to a single file.

Contents of bootstrap are as follows:
--8<---------------cut here---------------start------------->8---
  /home/ss2/code/guix/gnu/packages/bootstrap/i686-linux:
  total used in directory 4.1M available 340.5 GiB
  drwxr-xr-x 3 ss2 users 4.0K Aug 28 23:55 .
  drwxr-xr-x 3 ss2 users 4.0K Apr 19 22:13 ..
  -r-xr-xr-x 1 ss2 users 1.3M Mar  7 23:53 bash
  -r-xr-xr-x 1 ss2 users 698K Mar  7 23:54 mkdir
  -r-xr-xr-x 1 ss2 users 1.3M Mar  7 23:57 tar
  -r-xr-xr-x 1 ss2 users 842K Mar  7 23:57 xz
--8<---------------cut here---------------end--------------->8---

Simon




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-28 15:00     ` Maxime Devos
  2021-08-28 18:13       ` Mark H Weaver
@ 2021-08-28 22:32       ` Simon Streit
  2021-08-29 13:06         ` Simon Streit
  1 sibling, 1 reply; 12+ messages in thread
From: Simon Streit @ 2021-08-28 22:32 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 50212

Hello Maxime,

Maxime Devos <maximedevos@telenet.be> writes:
> Some questions:
>
> * What's the hash of gnu/packages/bootstrap/i686-linux/bash?
>
>   (Run guix hash gnu/packages/bootstrap/i686-linux/bash)
>
>   I have 1ig8a4bhc7fpw8zrnw4l568wmmcb29rlwg4jbih3imb4x6d9l1gd.
>   If you see something different, your copy is probably corrupt.

The hash is: 1ig8a4bhc7fpw8zrnw4l568wmmcb29rlwg4jbih3imb4x6d9l1gd

> * What does ‘objdump -a gnu/packages/bootstrap/i686-linux/bash’ output?
>   On my x86_64 system, it outputs ‘[...] file format elf32-i386’.

Result is:
--8<---------------cut here---------------start------------->8---
./bash:     file format elf32-i386
--8<---------------cut here---------------end--------------->8---

> * What architecture are you on?

And: x86_64-linux system.

I just updated my system to a8dd285d5a0670abf124a721e6ba94da045b24ba and
am building 76114232d7c140fb9fee84510b72fcfe6ee27714, which failed again.

Early on I installed Guix into a VM, and built the sources in there
on a pretty much default config from the installer.  All tests passed.

Just to be sure I did another clean clone on my main machine, which
failed again.

So why would my system brake the bootstrap binary?  Has it got to do
with a particular package I have in my profile(s)?  I generally build
Guix with ‘guix environment --pure guix.’  I have a second Guix build
machine running.  The packages used there are quite similar, so these
two machines have very similar checkouts and config in general.  Hence,
when I build Guix there, the same error occurs.


Simon




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-28 22:32       ` Simon Streit
@ 2021-08-29 13:06         ` Simon Streit
  2021-08-29 21:28           ` Maxim Cournoyer
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Streit @ 2021-08-29 13:06 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 50212

Simon Streit <simon@netpanic.org> writes:
> So why would my system brake the bootstrap binary?  Has it got to do
> with a particular package I have in my profile(s)?  I generally build
> Guix with ‘guix environment --pure guix.’  I have a second Guix build
> machine running.  The packages used there are quite similar, so these
> two machines have very similar checkouts and config in general.  Hence,
> when I build Guix there, the same error occurs.

I figured out why this is happening.  I disabled
--8<---------------cut here---------------start------------->8---
(service qemu-binfmt-service-type
         (qemu-binfmt-configuration
          (platforms (lookup-qemu-platforms "arm" "aarch64" "i386"))))
--8<---------------cut here---------------end--------------->8---
and now all tests pass.

Why would this be a problem?  


Simon




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-29 13:06         ` Simon Streit
@ 2021-08-29 21:28           ` Maxim Cournoyer
  2021-08-30 18:17             ` Simon Streit
  0 siblings, 1 reply; 12+ messages in thread
From: Maxim Cournoyer @ 2021-08-29 21:28 UTC (permalink / raw)
  To: Simon Streit; +Cc: 50212

Hello Simon,

Simon Streit <simon@netpanic.org> writes:

> Simon Streit <simon@netpanic.org> writes:
>> So why would my system brake the bootstrap binary?  Has it got to do
>> with a particular package I have in my profile(s)?  I generally build
>> Guix with ‘guix environment --pure guix.’  I have a second Guix build
>> machine running.  The packages used there are quite similar, so these
>> two machines have very similar checkouts and config in general.  Hence,
>> when I build Guix there, the same error occurs.
>
> I figured out why this is happening.  I disabled
>
> (service qemu-binfmt-service-type
>          (qemu-binfmt-configuration
>           (platforms (lookup-qemu-platforms "arm" "aarch64" "i386"))))
>
> and now all tests pass.
>
> Why would this be a problem?  

I'm guessing the i386 does something bogus?  Your x86_64 is already able
to run i386 code natively, AFAIK.

The binfmt service type registers binary formats of non-native
architectures with interpreters to run them [0]; this way, when an ARM
binary is encountered on a x86_64 system, the kernel Linux knows to
launch it via QEMU, for example.  Since commit
77c2f4e2068ebec3f384c826c5a99785125ff72c, this is in effect for any
container (it used to be possible to enable it with (guix-support? #t)
on only for the container spawned by guix-daemon.

For the record, I use:

--8<---------------cut here---------------start------------->8---
      (service qemu-binfmt-service-type
               (qemu-binfmt-configuration
                (platforms (lookup-qemu-platforms "arm" "aarch64" "ppc64le"))))
--8<---------------cut here---------------end--------------->8---

On my main machine without any issue.

HTH,

[0]  https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-29 21:28           ` Maxim Cournoyer
@ 2021-08-30 18:17             ` Simon Streit
  2021-08-30 20:24               ` Maxim Cournoyer
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Streit @ 2021-08-30 18:17 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 50212

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> I'm guessing the i386 does something bogus?  Your x86_64 is already able
> to run i386 code natively, AFAIK.

Alright, this was my interpretation from the manual and available
architectures that I just plugged it all together like that.  I wasn't
aware that x86_64 can run i386 natively.

> The binfmt service type registers binary formats of non-native
> architectures with interpreters to run them [0]; this way, when an ARM
> binary is encountered on a x86_64 system, the kernel Linux knows to
> launch it via QEMU, for example.  Since commit
> 77c2f4e2068ebec3f384c826c5a99785125ff72c, this is in effect for any
> container (it used to be possible to enable it with (guix-support? #t)
> on only for the container spawned by guix-daemon.

I reenabled the service without it mentioning i386.  Building Guix
passes as expected.  Thank you.


Kind regards,
Simon




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#50212: Several tests fail, Bash fails often. Was: Tests fail while building Guix
  2021-08-30 18:17             ` Simon Streit
@ 2021-08-30 20:24               ` Maxim Cournoyer
  0 siblings, 0 replies; 12+ messages in thread
From: Maxim Cournoyer @ 2021-08-30 20:24 UTC (permalink / raw)
  To: Simon Streit; +Cc: 50212-done

Hello Simon,

Simon Streit <simon@netpanic.org> writes:

> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>> I'm guessing the i386 does something bogus?  Your x86_64 is already able
>> to run i386 code natively, AFAIK.
>
> Alright, this was my interpretation from the manual and available
> architectures that I just plugged it all together like that.  I wasn't
> aware that x86_64 can run i386 natively.
>
>> The binfmt service type registers binary formats of non-native
>> architectures with interpreters to run them [0]; this way, when an ARM
>> binary is encountered on a x86_64 system, the kernel Linux knows to
>> launch it via QEMU, for example.  Since commit
>> 77c2f4e2068ebec3f384c826c5a99785125ff72c, this is in effect for any
>> container (it used to be possible to enable it with (guix-support? #t)
>> on only for the container spawned by guix-daemon.
>
> I reenabled the service without it mentioning i386.  Building Guix
> passes as expected.  Thank you.

No worries.  Thank you for the update.

Closing.

Maxim




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-08-30 20:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <yguh7fcz5ee.fsf@netpanic.org>
2021-08-26 18:07 ` bug#50212: Tests fail while building Guix Simon Streit
2021-08-27 19:53   ` bug#50212: Several tests fail, Bash fails often. Was: " Simon Streit
2021-08-28 15:00     ` Maxime Devos
2021-08-28 18:13       ` Mark H Weaver
2021-08-28 22:14         ` Simon Streit
2021-08-28 22:32       ` Simon Streit
2021-08-29 13:06         ` Simon Streit
2021-08-29 21:28           ` Maxim Cournoyer
2021-08-30 18:17             ` Simon Streit
2021-08-30 20:24               ` Maxim Cournoyer
2021-08-28 15:33   ` bug#50212: " Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-08-28 21:56     ` Simon Streit

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.