From: 白い熊 <help-guix_gnu.org@sumou.com>
To: help-guix@gnu.org
Subject: Building from git fails on linking guix-daemon with undefined reference to argp_parse
Date: Sun, 17 Feb 2019 18:45:47 +0000 [thread overview]
Message-ID: <61A323FE-0F45-4EE4-8909-C8EEC5EC84D2@sumou.com> (raw)
Hi Guix:
I'm trying to build guix from git in Termux on Android.
I've built all the requisites with no problems. Guix build fails on linking the guix-daemon with:
CXXLD guix-daemon
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld: nix/nix-daemon/guix_daemon-guix-daemon.o: in function `main':
/data/data/com.termux/files/home/compile/guix/nix/nix-daemon/guix-daemon.cc:499: undefined reference to `argp_parse'
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:3317: guix-daemon] Error 1
make[2]: Leaving directory '/data/data/com.termux/files/home/compile/guix'
make[1]: *** [Makefile:4500: all-recursive] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/compile/guix'
make: *** [Makefile:3095: all] Error 2
~/compile/guix $
I have argp standalone installed, argp.h present — from what I've seen, this error usually means you need to pass “-largp” to the linker, but I don't know where. I've tried setting LDFLAGS and CXXFLAGS alternatively to '-largp' before running configure — but it's not having any effect.
Any ideas?
Many thanks.
--
白い熊
next reply other threads:[~2019-02-17 18:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-17 18:45 白い熊 [this message]
2019-02-22 4:05 ` Building from git fails on linking guix-daemon with undefined reference to argp_parse Chris Marusich
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=61A323FE-0F45-4EE4-8909-C8EEC5EC84D2@sumou.com \
--to=help-guix_gnu.org@sumou.com \
--cc=help-guix@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.
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).