Re: WARNING: loading compiled file activation.go failed: ERROR: not an ELF file

2017-05-19 Thread myglc2
On 05/19/2017 at 11:05 Ludovic Courtès 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=4 --max-jobs=4
>> reconfigure sys.scm
>> [...]
>> activating system...
>> ;;; WARNING: loading compiled file 
>> /gnu/store/zaj3a5fsxjalirfypz6hn7hx3vc9d5kp-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/zaj3a5fsxjalirfypz6hn7hx3vc9d5kp-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’t prevent ‘guix system reconfigure’ from completing.)
>
> From now on, you should make sure you only have 2.2 .go files around.
> If you use ‘guix pull’, that means that you have to run ‘guix pull’.
>
> If instead ~/.config/guix/latest is a symlink to a checkout that you
> made yourself, then make sure to “make clean && make” with Guile 2.2.
>

Thanks Ludo’. 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...
 ….tar.gz   2.8MiB/s 00:05 | 13.1MiB 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=4 --max-jobs=4 -K --on-error=debug build 
sys.scm
/gnu/store/zga47bix1jjqxskmc7z470rjqj21z2hj-system
root@g1 ~/con/7# guix system --fallback --cores=4 --max-jobs=4 reconfigure 
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/yayx5714vbxrl7fn4gygvbp662hbc53y-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/yayx5714vbxrl7fn4gygvbp662hbc53y-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 
system...
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 
"/gnu/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 

Re: WARNING: loading compiled file activation.go failed: ERROR: not an ELF file

2017-05-19 Thread Ludovic Courtès
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=4 --max-jobs=4
> reconfigure sys.scm
> [...]
> activating system...
> ;;; WARNING: loading compiled file 
> /gnu/store/zaj3a5fsxjalirfypz6hn7hx3vc9d5kp-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/zaj3a5fsxjalirfypz6hn7hx3vc9d5kp-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’t prevent ‘guix system reconfigure’ from completing.)

>From now on, you should make sure you only have 2.2 .go files around.
If you use ‘guix pull’, that means that you have to run ‘guix pull’.

If instead ~/.config/guix/latest is a symlink to a checkout that you
made yourself, then make sure to “make clean && make” with Guile 2.2.

HTH!

Ludo’.