From: ludo@gnu.org (Ludovic Courtès)
To: Eric Bavier <bavier@cray.com>
Cc: 30879@debbugs.gnu.org
Subject: bug#30879: Commit bc499b113 broke guix on guile@2.0.14, improper <operating-system> field initialization
Date: Tue, 15 May 2018 11:20:56 +0200 [thread overview]
Message-ID: <87wow5i8av.fsf@gnu.org> (raw)
In-Reply-To: <20180322144538.GP105827@pe06.us.cray.com> (Eric Bavier's message of "Thu, 22 Mar 2018 09:45:38 -0500")
Hello Eric,
Sorry for the late reply.
Eric Bavier <bavier@cray.com> skribis:
> On Thu, Mar 22, 2018 at 12:04:06AM +0100, Ludovic Courtès wrote:
>> Eric Bavier <bavier@cray.com> skribis:
>>
>> [...]
>>
>> > In gnu/system.scm:
>> > 501: 3 [operating-system-services # # #f]
>> > 476: 2 [essential-services # # #f]
>> > 576: 1 [operating-system-etc-service #]
>> > In gnu/system/nss.scm:
>> > 217: 0 [name-service-switch->string (# # # # ...)]
>> >
>> > gnu/system/nss.scm:217:19: In procedure name-service-switch->string:
>> > gnu/system/nss.scm:217:19: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): (#<<service> type: #<service-type login ...
[...]
> Oh, so it loks like .go files from the system-installed guix are being
> picked up:
>
> 53692 openat(AT_FDCWD, "/usr/local/lib/guile/2.0/site-ccache/gnu/system.go", O_RDONLY|O_CLOEXEC) = 10
>
> I hadn't expected that, but I suppose it makes sense. Running make
> under ./pre-inst-env does not help.
>
> We should probably find a way to prevent this in general, right?
It seems that the problem here is that both Guile and Guix were
installed with --prefix=/usr/local.
Guile contains by default $prefix/lib/guile/2.0/site-ccache in its
%load-compiled-path. Thus, it will always find the .go files of that
Guix that’s installed in the same prefix.
> We shouldn't be loading guix modules from outside the source tree
> during build.
In general we can (and do: see the ‘make-go’ target and see
‘pre-inst-env’), but in this case we can’t really prevent it because
$prefix/lib/… is in the default search path of Guile, which is
admittedly problematic.
Maybe we should just forbid install Guix in the same prefix as Guile,
and detect that at configure time.
WDYT?
Ludo’.
next prev parent reply other threads:[~2018-05-15 9:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 15:43 bug#30879: Commit bc499b113 broke guix on guile@2.0.14, improper <operating-system> field initialization Eric Bavier
2018-03-20 23:12 ` Ludovic Courtès
2018-03-21 15:16 ` Eric Bavier
2018-03-21 21:04 ` Ludovic Courtès
2018-03-21 21:14 ` Eric Bavier
2018-03-21 23:04 ` Ludovic Courtès
2018-03-22 14:45 ` Eric Bavier
2018-03-22 16:19 ` Ludovic Courtès
2018-03-29 17:06 ` Eric Bavier
2018-05-15 9:20 ` Ludovic Courtès [this message]
2018-04-11 18:42 ` Eric Bavier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wow5i8av.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=30879@debbugs.gnu.org \
--cc=bavier@cray.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).