Hurd failing to build

  • Done
  • quality assurance status badge
Details
4 participants
  • Brett Gilio
  • Joshua Branson
  • Ludovic Courtès
  • Manolis Ragkousis
Owner
unassigned
Submitted by
Brett Gilio
Severity
normal

Debbugs page

Brett Gilio wrote 6 years ago
(address . bug-guix@gnu.org)
8736s995kr.fsf@posteo.net
Hi all,

I know that the hurd is not supported on Guix at the moment. I was
trying to give it a try in spite of that, and it is failing to build.

I am sure that this is a known issue, but I could not find any
referencing issues of recent on debbugs.

building /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv...
builder for `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed with exit code 1
build of /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv failed
View build log at '/var/log/guix/drvs/83/vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv.bz2'.
guix system: error: build failed: build of `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed


guix 03a4153
branch: master
commit: 03a415365a1cfcc263f56d309f33a1a581790ca7

Best,
Brett Gilio
Manolis Ragkousis wrote 6 years ago
674fa4bc-7098-25c6-e758-a5b78da46a3c@gmail.com
Hello Brett,

I imagine you run `guix build hurd`?

Can you share the build log?

Thank you,
Manolis
On 11/10/18 1:47 AM, Brett Gilio wrote:
Toggle quote (26 lines)
>
> Hi all,
>
> I know that the hurd is not supported on Guix at the moment. I was
> trying to give it a try in spite of that, and it is failing to build.
>
> I am sure that this is a known issue, but I could not find any
> referencing issues of recent on debbugs.
>
> building /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv...
> builder for `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed with exit code 1
> build of /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv failed
> View build log at '/var/log/guix/drvs/83/vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv.bz2'.
> guix system: error: build failed: build of `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed
>
>
> guix 03a4153
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 03a415365a1cfcc263f56d309f33a1a581790ca7
>
> Best,
> Brett Gilio
>
>
>
Joshua Branson wrote 6 years ago
(address . bug-guix@gnu.org)
87ftw93ugx.fsf@fastmail.com
Manolis Ragkousis <manolis837@gmail.com> writes:

Toggle quote (4 lines)
> Hello Brett,
>
> I imagine you run `guix build hurd`?

I didn't know there was always a build log...cool. That might help me
spot some of the compiler errors.

Toggle quote (32 lines)
>
> Can you share the build log?
>
> Thank you,
> Manolis
> On 11/10/18 1:47 AM, Brett Gilio wrote:
>>
>> Hi all,
>>
>> I know that the hurd is not supported on Guix at the moment. I was
>> trying to give it a try in spite of that, and it is failing to build.
>>
>> I am sure that this is a known issue, but I could not find any
>> referencing issues of recent on debbugs.
>>
>> building /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv...
>> builder for `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed with exit code 1
>> build of /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv failed
>> View build log at '/var/log/guix/drvs/83/vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv.bz2'.
>> guix system: error: build failed: build of `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed
>>
>>
>> guix 03a4153
>> repository URL: https://git.savannah.gnu.org/git/guix.git
>> branch: master
>> commit: 03a415365a1cfcc263f56d309f33a1a581790ca7
>>
>> Best,
>> Brett Gilio
>>
>>
>>
Brett Gilio wrote 6 years ago
(name . Manolis Ragkousis)(address . manolis837@gmail.com)
87h8goaj9p.fsf@posteo.net
Manolis Ragkousis writes:

Toggle quote (7 lines)
> Hello Brett,
>
> I imagine you run `guix build hurd`?
>
> Can you share the build log?


phase `unpack' succeeded after 0.2 seconds
starting phase `bootstrap'
GNU build system bootstrapping not needed
phase `bootstrap' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
patch-shebang: ./config.guess: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./config.sub: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./configure: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./console-client/xkb/kstoucs_map.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./daemons/rc.sh: changing `/bin/bash' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash'
patch-shebang: ./daemons/runsystem.hurd.sh: changing `/bin/bash' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash'
patch-shebang: ./daemons/runsystem.sh: changing `/bin/bash' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash'
patch-shebang: ./install-sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./mkinstalldirs: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./move-if-change: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./release/SETUP: changing `/bin/bash' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash'
patch-shebang: ./release/install-stripped: changing `/usr/local/bin/bash' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash'
patch-shebang: ./release/mkemptyso.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./release/mkfsimage.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./sutils/MAKEDEV.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./sutils/e2os.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./sutils/losetup.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./utils/fakeroot.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./utils/loginpr.sh: changing `/bin/bash' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash'
patch-shebang: ./utils/remap.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./utils/sush.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
patch-shebang: ./utils/uptime.sh: changing `/bin/sh' to `/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/sh'
phase `patch-source-shebangs' succeeded after 0.1 seconds
starting phase `configure'
source directory: "/tmp/guix-build-hurd-0.9.drv-0/hurd-0.9" (relative from build: ".")
build directory: "/tmp/guix-build-hurd-0.9.drv-0/hurd-0.9"
configure flags: ("CONFIG_SHELL=/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash" "SHELL=/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash" "--prefix=/gnu/store/pcxx20nilxazhhfcjdc1wiydjg6hjsxi-hurd-0.9" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "LDFLAGS=-Wl,-rpath=/gnu/store/pcxx20nilxazhhfcjdc1wiydjg6hjsxi-hurd-0.9/lib" "--disable-ncursesw" "--without-libbz2" "--without-libz" "--without-parted")
configure: WARNING: unrecognized options: --enable-fast-install
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: error: this is the gnu os, host cannot be linux-gnu
*** Host configuration must be `MACHINE-gnu' or `MACHINE-VENDOR-gnu'.
*** To cross-compile, you must specify both --host and --build;
*** for example `--build=x86_64-unknown-linux-gnu --host=x86_64-gnu'.
*** Run ./configure --help for more information.
Backtrace:
4 (primitive-load "/gnu/store/zz96nsjpr1x5dycqdb86qfzrbsg…")
In ice-9/eval.scm:
191:35 3 (_ _)
In srfi/srfi-1.scm:
640:9 2 (for-each #<procedure a2eb00 at /gnu/store/f95ghy8mx00…> …)
In /gnu/store/f95ghy8mx00fc22nrvswvnpqlfdkf2nk-module-import/guix/build/gnu-build-system.scm:
799:31 1 (_ _)
In /gnu/store/f95ghy8mx00fc22nrvswvnpqlfdkf2nk-module-import/guix/build/utils.scm:
616:6 0 (invoke _ . _)

/gnu/store/f95ghy8mx00fc22nrvswvnpqlfdkf2nk-module-import/guix/build/utils.scm:616:6: In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash" arguments: ("./configure" "CONFIG_SHELL=/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash" "SHELL=/gnu/store/rbrandv7anzjxqkr40d7fkanzssslk4b-bash-minimal-4.4.19/bin/bash" "--prefix=/gnu/store/pcxx20nilxazhhfcjdc1wiydjg6hjsxi-hurd-0.9" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "LDFLAGS=-Wl,-rpath=/gnu/store/pcxx20nilxazhhfcjdc1wiydjg6hjsxi-hurd-0.9/lib" "--disable-ncursesw" "--without-libbz2" "--without-libz" "--without-parted") exit-status: 1 term-signal: #f stop-signal: #f] 68fd80>)'.
builder for `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed with exit code 1
build of /gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv failed
View build log at '/var/log/guix/drvs/83/vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv.bz2'.
guix build: error: build failed: build of `/gnu/store/83vrxqm3xcwj9sn0kkbgaar4g7ac21ck-hurd-0.9.drv' failed



Obviously the notable error is that the host distribution is running on
the linux kernel, but if I remember correctly part of the tactic of
implementing hurd was the ability to cross-compile the hurd using linux
as a preliminary bootstrap? Maybe i'm completely wrong.
Ludovic Courtès wrote 6 years ago
(name . Brett Gilio)(address . brettg@posteo.net)
871s7rsgwg.fsf@gnu.org
Hello Brett,

Brett Gilio <brettg@posteo.net> skribis:

Toggle quote (7 lines)
> checking host system type... x86_64-unknown-linux-gnu
> configure: error: this is the gnu os, host cannot be linux-gnu
> *** Host configuration must be `MACHINE-gnu' or `MACHINE-VENDOR-gnu'.
> *** To cross-compile, you must specify both --host and --build;
> *** for example `--build=x86_64-unknown-linux-gnu --host=x86_64-gnu'.
> *** Run ./configure --help for more information.

To put it differently, the Hurd cannot be built natively on GNU/Linux.
You can cross-build the Hurd from GNU/Linux with something like:

guix build hurd --target=i586-pc-gnu

… though I seem to remember even that is broken in current master.

Ludo’.
Manolis Ragkousis wrote 6 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)
9b4ad9d4-a66e-1f13-d024-b2c450c56bc4@gmail.com
Hello Ludo,

On 11/11/18 6:44 PM, Ludovic Courtès wrote:
Toggle quote (19 lines)
> Hello Brett,
>
> Brett Gilio <brettg@posteo.net> skribis:
>
>> checking host system type... x86_64-unknown-linux-gnu
>> configure: error: this is the gnu os, host cannot be linux-gnu
>> *** Host configuration must be `MACHINE-gnu' or `MACHINE-VENDOR-gnu'.
>> *** To cross-compile, you must specify both --host and --build;
>> *** for example `--build=x86_64-unknown-linux-gnu --host=x86_64-gnu'.
>> *** Run ./configure --help for more information.
>
> To put it differently, the Hurd cannot be built natively on GNU/Linux.
> You can cross-build the Hurd from GNU/Linux with something like:
>
> guix build hurd --target=i586-pc-gnu
>
> … though I seem to remember even that is broken in current master.


Yes, I am currently trying to fix this.

Manolis
Brett Gilio wrote 6 years ago
(name . Manolis Ragkousis)(address . manolis837@gmail.com)
87wopjicdu.fsf@posteo.net
Manolis Ragkousis writes:

Toggle quote (26 lines)
> Hello Ludo,
>
> On 11/11/18 6:44 PM, Ludovic Courtès wrote:
>> Hello Brett,
>>
>> Brett Gilio <brettg@posteo.net> skribis:
>>
>>> checking host system type... x86_64-unknown-linux-gnu
>>> configure: error: this is the gnu os, host cannot be linux-gnu
>>> *** Host configuration must be `MACHINE-gnu' or `MACHINE-VENDOR-gnu'.
>>> *** To cross-compile, you must specify both --host and --build;
>>> *** for example `--build=x86_64-unknown-linux-gnu --host=x86_64-gnu'.
>>> *** Run ./configure --help for more information.
>>
>> To put it differently, the Hurd cannot be built natively on GNU/Linux.
>> You can cross-build the Hurd from GNU/Linux with something like:
>>
>> guix build hurd --target=i586-pc-gnu
>>
>> … though I seem to remember even that is broken in current master.
>
>
> Yes, I am currently trying to fix this.
>
> Manolis

Thank you Ludo and Manolis for the input, here. If you need help with
anything here, please let me know.

Brett
Ludovic Courtès wrote 6 years ago
(name . Manolis Ragkousis)(address . manolis837@gmail.com)
874lcem295.fsf@gnu.org
Hi Manolis & Brett,

Manolis Ragkousis <manolis837@gmail.com> skribis:

Toggle quote (22 lines)
> On 11/11/18 6:44 PM, Ludovic Courtès wrote:
>> Hello Brett,
>>
>> Brett Gilio <brettg@posteo.net> skribis:
>>
>>> checking host system type... x86_64-unknown-linux-gnu
>>> configure: error: this is the gnu os, host cannot be linux-gnu
>>> *** Host configuration must be `MACHINE-gnu' or `MACHINE-VENDOR-gnu'.
>>> *** To cross-compile, you must specify both --host and --build;
>>> *** for example `--build=x86_64-unknown-linux-gnu --host=x86_64-gnu'.
>>> *** Run ./configure --help for more information.
>>
>> To put it differently, the Hurd cannot be built natively on GNU/Linux.
>> You can cross-build the Hurd from GNU/Linux with something like:
>>
>> guix build hurd --target=i586-pc-gnu
>>
>> … though I seem to remember even that is broken in current master.
>
>
> Yes, I am currently trying to fix this.

I’ve taken care of that on ‘core-updates’, which will hopefully be
merged within a week or so:


On that branch, you can run, say:

guix build sed --target=i586-pc-gnu

and you get a GNU/Hurd binary. \o/

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 33330@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 33330
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help