From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: WARNING: loading compiled file activation.go failed: ERROR: not an ELF file Date: Fri, 19 May 2017 17:49:22 -0400 Message-ID: <861srk5xgd.fsf@gmail.com> References: <86d1b7imvw.fsf@gmail.com> <87zie9gqsu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBpm7-0000at-Ny for guix-devel@gnu.org; Fri, 19 May 2017 17:49:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBpm2-00089V-Pc for guix-devel@gnu.org; Fri, 19 May 2017 17:49:31 -0400 In-Reply-To: <87zie9gqsu.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 19 May 2017 11:05:21 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel On 05/19/2017 at 11:05 Ludovic Court=C3=A8s writes: > Hi, > > myglc2 skribis: > >> The warning/error shown below sounds alarming but seems to be >> harmless. But it leaves me wondering, is there a way to fix it? >> >> TIA - George >> >> root@g1 ~/con/4# guix system --fallback --cores=3D4 --max-jobs=3D4 >> reconfigure sys.scm >> [...] >> activating system... >> ;;; WARNING: loading compiled file /gnu/store/zaj3a5fsxjalirfypz6hn7hx3v= c9d5kp-module-import-compiled/gnu/build/activation.go failed: >> ;;; ERROR: In procedure load-thunk-from-memory: not an ELF file >> ;;; WARNING: loading compiled file /gnu/store/zaj3a5fsxjalirfypz6hn7hx3v= c9d5kp-module-import-compiled/gnu/build/activation.go failed: >> ;;; ERROR: In procedure load-thunk-from-memory: not an ELF file >> making '/gnu/store/fz77c02mf1dh84zj5vxfswcq1m3ibhxz-system' the current = system... >> [...] >> Installation finished. No error reported. > > Contrary to what the messages say, these are actually warnings. ;-) > They come from Guile 2.2 complaining that it stumbled upon Guile 2.0 .go > files: > > https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00515.html > > (The warnings didn=E2=80=99t prevent =E2=80=98guix system reconfigure=E2= =80=99 from completing.) > > From now on, you should make sure you only have 2.2 .go files around. > If you use =E2=80=98guix pull=E2=80=99, that means that you have to run = =E2=80=98guix pull=E2=80=99. > > If instead ~/.config/guix/latest is a symlink to a checkout that you > made yourself, then make sure to =E2=80=9Cmake clean && make=E2=80=9D wit= h Guile 2.2. > Thanks Ludo=E2=80=99. I tried both approaches: In the g1 user account I did git pull, "make clean && make". I ended up with guile 2.2. But when I tried to reconfigure as root I got the "activation.go failed:" messages. So, as root, I tried guix pull (please see below). I still ended up with "activation.go failed:" and now I have guile 2.0. TIA - George root@g1 ~/con/7# guix pull Starting download of /tmp/guix-file.tCtCOM >From https://git.savannah.gnu.org/cgit/guix.git/snapshot/master.tar.gz... =E2=80=A6.tar.gz 2.8MiB/s 00:05 | 13.1Mi= B transferred unpacking '/gnu/store/5xv70jwadhknhhma3c3vv2jhj2jwh62m-guix-latest.tar.gz'.= .. substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% The following derivation will be built: /gnu/store/ihg334sz1vh99pp0ck0dvwahnw26nhqc-guix-latest.drv substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% copying and compiling to '/gnu/store/b05wix312n8b0r2slcjrxrjf85h1ylr2-guix-= latest' with Guile 2.2.2... loading... 24.7% of 595 filesrandom seed for tests: 1495218038 loading... 99.8% of 595 files compiling... 98.7% of 595 files Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. updated GNU Guix successfully deployed under `/root/.config/guix/latest' root@g1 ~/con/7# guix system --cores=3D4 --max-jobs=3D4 -K --on-error=3Ddeb= ug build sys.scm /gnu/store/zga47bix1jjqxskmc7z470rjqj21z2hj-system root@g1 ~/con/7# guix system --fallback --cores=3D4 --max-jobs=3D4 reconfig= ure sys.scm substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% The following derivation will be built: /gnu/store/1lbk6yyxq6ll86cymyjdp4qaf6xqj6z1-grub.cfg.drv substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org= '... 100.0% /gnu/store/zga47bix1jjqxskmc7z470rjqj21z2hj-system /gnu/store/a309iqd2s0fr1w1ljy0a4pra3v3nwm23-grub.cfg /gnu/store/bdzxdpdw25k8v6lz54clz42bilx47srj-grub-2.02 /gnu/store/ldk2vqmxsmfk4ibwhijxxyzqv8wha54n-bootloader-installer activating system... ;;; WARNING: loading compiled file /gnu/store/yayx5714vbxrl7fn4gygvbp662hbc= 53y-module-import-compiled/gnu/build/activation.go failed: ;;; ERROR: In procedure load-thunk-from-memory: not an ELF file ;;; WARNING: loading compiled file /gnu/store/yayx5714vbxrl7fn4gygvbp662hbc= 53y-module-import-compiled/gnu/build/activation.go failed: ;;; ERROR: In procedure load-thunk-from-memory: not an ELF file making '/gnu/store/zga47bix1jjqxskmc7z470rjqj21z2hj-system' the current sys= tem... setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/3ic3cb3k5vabfc0cilgz79pc5jsrdvak-etc... usermod: no changes usermod: no changes usermod: no changes usermod: no changes usermod: no changes guix system: unloading service 'user-homes'... shepherd: Removing service 'user-homes'... shepherd: Done. guix system: loading new services: user-homes... shepherd: Evaluating user expression (register-services (primitive-load "/g= nu/s...")). shepherd: Service user-homes could not be started. Installing for i386-pc platform. Installation finished. No error reported. root@g1 ~/con/7# guix --version guix (GNU Guix) 20170519.18 Copyright (C) 2017 the Guix authors License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. root@g1 ~/con/7# stat ~/.config/guix/latest | grep File: File: /root/.config/guix/latest -> /gnu/store/b05wix312n8b0r2slcjrxrjf85h= 1ylr2-guix-latest root@g1 ~/con/7# guile --version guile (GNU Guile) 2.0.14 Copyright (C) 2016 Free Software Foundation, Inc. License LGPLv3+: GNU LGPL 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. root@g1 ~/con/7# which guile /run/current-system/profile/bin/guile root@g1 ~/con/7# guix package --list-installed root@g1 ~/con/7# cat sys.scm ;;; GuixSD headless server (use-modules (gnu)) (use-service-modules networking ssh) (use-package-modules admin base certs cups disk emacs freeipmi linux qemu rsync screen ssh version-control wget xorg=20 ) (operating-system (host-name "g1") (timezone "America/New_York") (locale "en_US.utf8") (kernel-arguments '("console=3DttyS1,115200")) ;; RAID1 root using 1 NVMe SSD + 2 HDs (bootloader (grub-configuration (device "/dev/nvme0n1") (terminal-outputs '(console)) (terminal-inputs '(serial console)) (serial-speed 115200)=09=09=09=09=20=20 )) (initrd (lambda (file-systems . rest) (apply base-initrd file-systems #:extra-modules '("raid1") rest))) (mapped-devices (list (mapped-device (source '("/dev/nvme0n1p1" "/dev/sda1" "/dev/sdb1")) (target "/dev/md3") (type raid-device-mapping)))) (file-systems (cons (file-system (title 'device) (device "/dev/md3") (mount-point "/") (type "ext4") (dependencies mapped-devices)) %base-file-systems)) (swap-devices '("/dev/nvme0n1p2" )) (users (cons* (user-account (name "g1") (group "users") (supplementary-groups '("wheel" "kvm")) (home-directory (string-append "/home/" name))) (user-account (name "admin") (group "users") (supplementary-groups '("wheel" "kvm")) (home-directory (string-append "/home/" name))) %base-user-accounts)) (packages (cons* cups emacs-no-x-toolkit emacs-guix emacs-zenburn-theme freeipmi git glibc-utf8-locales gnu-make mdadm magit nss-certs openssh parted qemu rsync screen smartmontools tree wget xauth %base-packages)) (services (cons* (dhcp-client-service) (ntp-service) (service openssh-service-type (openssh-configuration (x11-forwarding? #t))) (agetty-service (agetty-configuration (tty "ttyS1") (baud-rate "115200"))) %base-services))) root@g1 ~/con/7#=20