Building x86-64 on i686 not possible it seems - activation-service-error

  • Done
  • quality assurance status badge
Details
3 participants
  • Ludovic Courtès
  • Ricardo Wurmus
  • swedebugia
Owner
unassigned
Submitted by
swedebugia
Severity
normal
S
S
swedebugia wrote on 23 Dec 2018 06:04
(address . bug-guix@gnu.org)
253115d29737fa7b01a28094411bb921@riseup.net
time nice -19 ~/src/guix/pre-inst-env guix system build ~/config.scm
--system=x86_64-linux

building
/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv...
@ unsupported-platform
/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv
x86_64-linux
while setting up the build environment: a `x86_64-linux' is required to
build
`/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv', but
I am a `i686-linux'
builder for
`/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv'
failed with exit code 1
build of
/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv failed
View build log at
'/var/log/guix/drvs/27/raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv.bz2'.
cannot build derivation
`/gnu/store/da24a831db5lv0z60kyh1drz2sw20q88-activate.drv': 1
dependencies couldn't be built
building
/gnu/store/hkjn3n1q91dnvvq5nmjs8kr2lkw4fww3-module-import-compiled.drv...
cannot build derivation
`/gnu/store/fxvgakgpmhpq1abhqnrxzirgjkmns7nb-boot.drv': 1 dependencies
couldn't be built
building
/gnu/store/jqp8g5anxc2zqisb2hv4gd8rrih0z4mj-module-import.drv...
cannot build derivation
`/gnu/store/wm9blmyzw7vsxfbdd1rpx8f9k5qm2hvf-system.drv': 1 dependencies
couldn't be built
guix system: error: build failed: build of
`/gnu/store/wm9blmyzw7vsxfbdd1rpx8f9k5qm2hvf-system.drv' failed



--
Cheers
Swedebugia
;; This is an operating system configuration template ;; for a "desktop" setup with GNOME and Xfce where the ;; root partition is encrypted with LUKS. (use-modules (gnu) (gnu system nss)) (use-service-modules desktop networking virtualization) (use-package-modules certs gnome ;; for my-base-packages linux less base nano pciutils admin man texinfo bash guile gawk compression lisp) (define %my-base-packages ;; Like upstream but without wifi-programs and zile. ;; Default set of packages globally visible. It should include anything ;; required for basic administrator tasks. (cons* procps psmisc which less ;;zile nano pciutils usbutils util-linux inetutils isc-dhcp (@ (gnu packages admin) shadow) ;for 'passwd' ;; wireless-tools is deprecated in favor of iw, but it's still what ;; many people are familiar with, so keep it around. ;;iw wireless-tools iproute net-tools ; XXX: remove when Inetutils suffices man-db info-reader ;the standalone Info reader (no Perl) ;; The 'sudo' command is already in %SETUID-PROGRAMS, but we also ;; want the other commands and the man pages (notably because ;; auto-completion in Emacs shell relies on man pages.) sudo ;; Get 'insmod' & co. from kmod, not module-init-tools, since udev ;; already depends on it anyway. kmod eudev e2fsprogs kbd bash-completion ;; XXX: We don't use (canonical-package guile-2.2) here because that ;; would create a collision in the global profile between the GMP ;; variant propagated by 'guile-final' and the GMP variant propagated ;; by 'gnutls', itself propagated by 'guix'. guile-2.2 ;; The packages below are also in %FINAL-INPUTS, so take them from ;; there to avoid duplication. (map canonical-package (list bash coreutils findutils grep sed diffutils patch gawk tar gzip bzip2 xz lzip)))) (operating-system (host-name "antelope") (timezone "Europe/Paris") (locale "en_US.utf8") ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons (user-account (name "sdb") (comment "Alice's brother") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/sdb")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts network-manager-openvpn stumpwm %my-base-packages)) ;; Add GNOME and/or Xfce---we can choose at the log-in ;; screen with F1. Use the "desktop" services, which ;; include the X11 log-in service, networking with ;; NetworkManager, and more. (services (cons* (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms (lookup-qemu-platforms "arm")) (guix-support? #t))) (xfce-desktop-service) (console-keymap-service "se-latin1") (modify-services %desktop-services ; Add berlin as first priority ; substitute server (guix-service-type config => (guix-configuration (inherit config) (substitute-urls '( "https://berlin.guixsd.org https://mirror.hydra.gnu.org")))) (network-manager-service-type config => (network-manager-configuration (inherit config) (vpn-plugins (list network-manager-openvpn))))))) ;; Allow resolution of '.local' host names with mDNS. ;;(name-service-switch %mdns-host-lookup-nss) )
S
S
swedebugia wrote on 23 Dec 2018 06:07
(address . 33841@debbugs.gnu.org)(name . bug-Guix)(address . bug-guix-bounces+swedebugia=riseup.net@gnu.org)
557f999685993e16da604c18ce892910@riseup.net
On 2018-12-23 06:04, swedebugia@riseup.net wrote:
Toggle quote (35 lines)
> time nice -19 ~/src/guix/pre-inst-env guix system build ~/config.scm
> --system=x86_64-linux
>
> building
> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv...
> @ unsupported-platform
> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv
> x86_64-linux
> while setting up the build environment: a `x86_64-linux' is required to
> build
> `/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv', but
> I am a `i686-linux'
> builder for
> `/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv'
> failed with exit code 1
> build of
> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv failed
> View build log at
> '/var/log/guix/drvs/27/raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv.bz2'.
> cannot build derivation
> `/gnu/store/da24a831db5lv0z60kyh1drz2sw20q88-activate.drv': 1
> dependencies couldn't be built
> building
> /gnu/store/hkjn3n1q91dnvvq5nmjs8kr2lkw4fww3-module-import-compiled.drv...
> cannot build derivation
> `/gnu/store/fxvgakgpmhpq1abhqnrxzirgjkmns7nb-boot.drv': 1 dependencies
> couldn't be built
> building
> /gnu/store/jqp8g5anxc2zqisb2hv4gd8rrih0z4mj-module-import.drv...
> cannot build derivation
> `/gnu/store/wm9blmyzw7vsxfbdd1rpx8f9k5qm2hvf-system.drv': 1 dependencies
> couldn't be built
> guix system: error: build failed: build of
> `/gnu/store/wm9blmyzw7vsxfbdd1rpx8f9k5qm2hvf-system.drv' failed

sdb@antelope ~/Desktop$ guix --version
guix (GNU Guix) 0.16.0-5.5de5f81

reconfigured from master on sdb@antelope ~/src/guix$ git log |head
commit d15211c9b5b46b96c5b658329624942b6ff5c917

--
Cheers
Swedebugia
L
L
Ludovic Courtès wrote on 5 Jan 2019 18:18
(address . swedebugia@riseup.net)(address . 33841@debbugs.gnu.org)
87imz33tvh.fsf@gnu.org
Hello,

swedebugia@riseup.net skribis:

Toggle quote (13 lines)
> time nice -19 ~/src/guix/pre-inst-env guix system build ~/config.scm
> --system=x86_64-linux
>
> building
> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv...
> @ unsupported-platform
> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv
> x86_64-linux
> while setting up the build environment: a `x86_64-linux' is required to
> build
> `/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv', but
> I am a `i686-linux'

An i686 machine cannot run and build software for x86_64. You would
need to set up offloading to do that, or use
‘qemu-binfmt-service-type’.

So this all looks like “expected” behavior to me.

Does that make sense?

Thanks,
Ludo’.
S
S
swedebugia wrote on 6 Jan 2019 04:11
(name . Ludovic Courtès)(address . ludo@gnu.org)(name . 33841@debbugs.gnu.org)(address . 33841@debbugs.gnu.org)
10F7A02C-46C5-49E4-819D-63A2CDAF7EB2@pretty.Easy.privacy
Attachment: file
"Ludovic Courtès" <ludo@gnu.org> skrev: (5 januari 2019 18:18:58 CET)
Toggle quote (30 lines)
>Hello,
>
>swedebugia@riseup.net skribis:
>
>> time nice -19 ~/src/guix/pre-inst-env guix system build ~/config.scm
>> --system=x86_64-linux
>>
>> building
>> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv...
>> @ unsupported-platform
>> /gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv
>> x86_64-linux
>> while setting up the build environment: a `x86_64-linux' is required
>to
>> build
>> `/gnu/store/27raas2bj7sck7vgiicfr2g4h6qrd6ga-activate-service.drv',
>but
>> I am a `i686-linux'
>
>An i686 machine cannot run and build software for x86_64. You would
>need to set up offloading to do that, or use
>‘qemu-binfmt-service-type’.
>
>So this all looks like “expected” behavior to me.
>
>Does that make sense?
>
>Thanks,
>Ludo’.

OK. Would it be OK to state this somewhere in the manual or am I the only on trying to upgrade from 32->64 bit?
This means that if you take a disk with guix 32 and plug it into a 64 bit machine there are only two ways to use 64 bit. Reinstall from a downloaded USB or build using qemu-binfmt-service-type.
--
Sent from my p≡p for Android.
Attachment: pEpkey.asc (.00 MiB)
R
R
Ricardo Wurmus wrote on 6 Jan 2019 04:46
(name . swedebugia)(address . swedebugia@riseup.net)
875zv2sb26.fsf@elephly.net
Hi swedebugia,

Toggle quote (3 lines)
>>An i686 machine cannot run and build software for x86_64. You would
>>need to set up offloading to do that, or use
>>‘qemu-binfmt-service-type’.
[…]
Toggle quote (3 lines)
> OK. Would it be OK to state this somewhere in the manual or am I the
> only on trying to upgrade from 32->64 bit?

I'd prefer not to add this to the manual as it is not particular to
Guix. x86_64 is the outlier here, as it has a i686 persona. Generally,
you cannot build software for a different architecture without a cross
toolchain (not applicable for Guix) or emulation (e.g. via
qemu-binfmt-service-type).

--
Ricardo
S
S
swedebugia wrote on 6 Jan 2019 11:34
(name . Ricardo Wurmus)(address . rekado@elephly.net)
8ccf46227ddfb2ef7ecfe0ba8319ac72@riseup.net
On 2019-01-05 19:46, Ricardo Wurmus wrote:
Toggle quote (15 lines)
> Hi swedebugia,
>
>>>An i686 machine cannot run and build software for x86_64. You would
>>>need to set up offloading to do that, or use
>>>‘qemu-binfmt-service-type’.
> […]
>> OK. Would it be OK to state this somewhere in the manual or am I the
>> only on trying to upgrade from 32->64 bit?
>
> I'd prefer not to add this to the manual as it is not particular to
> Guix. x86_64 is the outlier here, as it has a i686 persona. Generally,
> you cannot build software for a different architecture without a cross
> toolchain (not applicable for Guix) or emulation (e.g. via
> qemu-binfmt-service-type).

Ok, thanks, closing this.

--
Cheers
Swedebugia
Closed
?