From: Alex Vong <alexvong1995@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Heads-up: New dependency on Guile-Gcrypt
Date: Thu, 06 Sep 2018 07:24:02 +0800 [thread overview]
Message-ID: <87k1nz1qb1.fsf@gmail.com> (raw)
In-Reply-To: <87tvn57xst.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 04 Sep 2018 23:33:22 +0200")
[-- Attachment #1: Type: text/plain, Size: 2114 bytes --]
Hello everyone,
I think I figure out why it is failing! Firstly, I am building on debian
testing, so the issue may not appear when building guix within
guix. Secondly, I run 'git clean -fdx && git reset --hard' and install
guile-gcrypt before I build, so dirty build dir and missing deps
shouldn't be cause.
ludo@gnu.org (Ludovic Courtès) writes:
> Hi Alex,
>
> Alex Vong <alexvong1995@gmail.com> skribis:
>
>> CXXLD guix-daemon
>> /usr/bin/ld: nix/nix-daemon/guix_daemon-guix-daemon.o: in function `main':
>> /home/alexvong1995/scm/guix/nix/nix-daemon/guix-daemon.cc:434:
>> undefined reference to `gcry_check_version'
>> /usr/bin/ld:
>> /home/alexvong1995/scm/guix/nix/nix-daemon/guix-daemon.cc:442:
>> undefined reference to `gcry_control'
>
> What does “grep LIBGCRYPT config.log” return?
>
It returns:
======================================================================
ac_cv_path_LIBGCRYPT_CONFIG=/usr/bin/libgcrypt-config
LIBGCRYPT='libgcrypt'
LIBGCRYPT_CFLAGS=''
LIBGCRYPT_CONFIG='/usr/bin/libgcrypt-config'
LIBGCRYPT_LIBDIR=''
LIBGCRYPT_LIBS='-L -lgcrypt'
LIBGCRYPT_PREFIX='no'
======================================================================
I think the problem is in '-L -lgcrypt'. Here '-lgcrypt' is interpreted
as a dir instead of a flag. To check this is indeed the case, I run
'make V=1'. Indeed, the command causing the failure is:
======================================================================
g++ -Wall -std=c++11 -g -O2 -o guix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a libformat.a -lz -lsqlite3 -L -lgcrypt -lbz2
======================================================================
And after the I remove the '-L' flag, it compiles! However, I don't know
what is the root cause of this problem. Is there a bug in configure.ac /
Makefile.am or a bug in autotools itself?
> ‘nix/local.mk’ expects $(LIBGCRYPT_LIBS) to contain at least “-lgcrypt”,
> but in your case this variable seems to be empty.
>
> Ludo’.
Cheers,
Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2018-09-05 23:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-02 16:35 Heads-up: New dependency on Guile-Gcrypt Ludovic Courtès
2018-09-03 10:36 ` Christopher Lemmer Webber
2018-09-04 20:07 ` Alex Vong
2018-09-04 20:14 ` Leo Famulari
2018-09-04 21:33 ` Ludovic Courtès
2018-09-05 23:24 ` Alex Vong [this message]
2018-09-06 9:21 ` Ludovic Courtès
-- strict thread matches above, loose matches on Subject: below --
2018-09-05 11:19 Paul Garlick
2018-09-05 20:58 ` Ludovic Courtès
2018-09-06 9:24 ` Paul Garlick
2018-09-06 10:06 ` Ludovic Courtès
2018-09-06 11:58 ` Paul Garlick
2018-09-06 21:08 ` Ludovic Courtès
2018-09-10 9:34 ` Pjotr Prins
2018-09-10 11:15 ` Paul Garlick
2018-09-10 20:45 ` Ludovic Courtès
2018-09-11 9:54 ` Paul Garlick
2018-09-12 17:14 ` Ludovic Courtès
2018-09-14 19:17 ` Thorsten Wilms
2018-09-27 7:45 ` Ricardo Wurmus
2018-09-27 11:36 ` Thorsten Wilms
2018-09-06 21:14 ` Paul Garlick
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=87k1nz1qb1.fsf@gmail.com \
--to=alexvong1995@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/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).