WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: David Cowden <dcow@eero.com>
To: wireguard@lists.zx2c4.com
Subject: Re: wireguard-android build error
Date: Fri, 24 Aug 2018 16:29:23 -0700
Message-ID: <CACN7iOB=nP3RkXGBx_rEBObQyAnKVv2RN6KVDox080g7-oLpyw@mail.gmail.com> (raw)
In-Reply-To: <CACN7iODgJZhvcjwc-Edd0z=4DxOwzL34+UbbXP_Xc87n=4ZdcQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

The project builds on a linux host.

On Fri, Aug 24, 2018 at 1:06 PM David Cowden <dcow@eero.com> wrote:

> When building for android, I am seeing a linker error because the build
> system is trying to pass an unsupported `-r` flag. I'm trying to build on
> macOS. Does wireguard-android need to be built on Linux (or with a gcc
> toolchain) right now, or is this an ndk issue, or a CMAKE configuration
> issue? Here's the abridged error:
>
> ln -sfrt ./src/git.zx2c4.com/wireguard-go/ratelimiter/
> ../wireguard-go/ratelimiter/ratelimiter.go; ... <many more>
> ln: illegal option -- r
> usage: ln [-Ffhinsv] source_file [target_file]
>        ln [-Ffhinsv] source_file ... target_dir
>        link source_file target_file
>
> Thanks,
> David
>

[-- Attachment #2: Type: text/html, Size: 1281 bytes --]

<div dir="ltr">The project builds on a linux host.<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 24, 2018 at 1:06 PM David Cowden &lt;<a href="mailto:dcow@eero.com">dcow@eero.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>When building for android, I am seeing a linker error because the build system is trying to pass an unsupported `-r` flag. I&#39;m trying to build on macOS. Does wireguard-android need to be built on Linux (or with a gcc toolchain) right now, or is this an ndk issue, or a CMAKE configuration issue? Here&#39;s the abridged error:<br></div><div><br></div><div><span style="font-family:monospace,monospace">ln -sfrt ./src/<a href="http://git.zx2c4.com/wireguard-go/ratelimiter/" target="_blank">git.zx2c4.com/wireguard-go/ratelimiter/</a> ../wireguard-go/ratelimiter/ratelimiter.go; ... &lt;many more&gt;<br>ln: illegal option -- r<br>usage: ln [-Ffhinsv] source_file [target_file]<br>       ln [-Ffhinsv] source_file ... target_dir<br>       link source_file target_file</span></div><div><span style="font-family:monospace,monospace"></span></div><div><br></div><div>Thanks,</div><div>David</div></div>
</blockquote></div>

  reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-24 20:06 David Cowden
2018-08-24 23:29 ` David Cowden [this message]
2018-08-25  5:20 ` Jason A. Donenfeld

Reply instructions:

You may reply publically 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACN7iOB=nP3RkXGBx_rEBObQyAnKVv2RN6KVDox080g7-oLpyw@mail.gmail.com' \
    --to=dcow@eero.com \
    --cc=wireguard@lists.zx2c4.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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox