Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Outback Dingo <outbackdingo@gmail.com>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: wireguard@lists.zx2c4.com
Subject: Re: wg on arm 32-bit
Date: Thu, 28 Dec 2017 09:25:29 -0500	[thread overview]
Message-ID: <CAKYr3zxFYEVpTLUcqE42DYs983ivGt+9p877=0XuDyZWzm6qjw@mail.gmail.com> (raw)
In-Reply-To: <87bmijq05i.fsf@dell.be.48ers.dk>

so i added -std=gnu11  and seems its gotten further, however not quite there

 DEBUG: Executing shell function do_compile
| NOTE: make -j 8 -e MAKEFLAGS=
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/config.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/encoding.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/mnlg.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/ipc.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/show.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/terminal.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/curve25519.o
|   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/wg.o
| terminal.c: In function 'filter_ansi':
| terminal.c:42:2: warning: implicit declaration of function
'vasprintf' [-Wimplicit-function-declaration]
|   len = vasprintf(&str, fmt, args);
|   ^
| config.c: In function 'parse_endpoint':
| config.c:232:54: error: 'EAI_NODATA' undeclared (first use in this function)
|    if (ret == EAI_NONAME || ret == EAI_FAIL || ret == EAI_NODATA ||
timeout >= 90000000) {
|                                                       ^
| config.c:232:54: note: each undeclared identifier is reported only
once for each function it appears in
| ipc.c: In function 'userspace_interface_file':
| ipc.c:43:19: error: 'RUNSTATEDIR' undeclared (first use in this function)
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                    ^
| ipc.c:117:59: note: in expansion of macro 'SOCK_PATH'
|   ret = snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, SOCK_PATH
"%s" SOCK_SUFFIX, interface);
|                                                            ^
| ipc.c:43:19: note: each undeclared identifier is reported only once
for each function it appears in
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                    ^
| ipc.c:117:59: note: in expansion of macro 'SOCK_PATH'
|   ret = snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, SOCK_PATH
"%s" SOCK_SUFFIX, interface);
|                                                            ^
| ipc.c:43:31: error: expected ')' before string constant
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                                ^
| ipc.c:117:59: note: in expansion of macro 'SOCK_PATH'
|   ret = snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, SOCK_PATH
"%s" SOCK_SUFFIX, interface);
|                                                            ^
| ipc.c: In function 'userspace_has_wireguard_interface':
| ipc.c:43:19: error: 'RUNSTATEDIR' undeclared (first use in this function)
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                    ^
| ipc.c:158:57: note: in expansion of macro 'SOCK_PATH'
|   if (snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, SOCK_PATH
"%s" SOCK_SUFFIX, interface) < 0)
|                                                          ^
| ipc.c:43:31: error: expected ')' before string constant
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                                ^
| ipc.c:158:57: note: in expansion of macro 'SOCK_PATH'
|   if (snprintf(addr.sun_path, sizeof(addr.sun_path) - 1, SOCK_PATH
"%s" SOCK_SUFFIX, interface) < 0)
|                                                          ^
| ipc.c: In function 'userspace_get_wireguard_interfaces':
| ipc.c:43:19: error: 'RUNSTATEDIR' undeclared (first use in this function)
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                    ^
| ipc.c:185:16: note: in expansion of macro 'SOCK_PATH'
|   dir = opendir(SOCK_PATH);
|                 ^
| ipc.c:43:31: error: expected ')' before string constant
|  #define SOCK_PATH RUNSTATEDIR "/wireguard/"
|                                ^
| ipc.c:185:16: note: in expansion of macro 'SOCK_PATH'
|   dir = opendir(SOCK_PATH);
|                 ^
| <builtin>: recipe for target 'config.o' failed
| make: *** [config.o] Error 1
| make: *** Waiting for unfinished jobs....
| <builtin>: recipe for target 'ipc.o' failed
| make: *** [ipc.o] Error 1
| ERROR: oe_runmake failed
| WARNING: /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/temp/run.do_compile.14786:1
exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at
/home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/temp/log.do_compile.14786)

On Wed, Dec 27, 2017 at 5:24 PM, Peter Korsgaard <peter@korsgaard.com> wrote:
>>>>>> "Outback" == Outback Dingo <outbackdingo@gmail.com> writes:
>
>  > seems that wireguard is not capabl;e of building for 32bit arm?
>
> It works fine in Buildroot.
>
>  > | DEBUG: Executing shell function do_compile
>  > | NOTE: make -j 8 -e MAKEFLAGS=
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/config.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/curve25519.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/mnlg.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/wg.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/ipc.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/encoding.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/show.o
>  > |   CC      /home/dingo/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/wireguard-tools/0.0.20171221-r0/WireGuard-0.0.20171221/src/tools/terminal.o
>  > | In file included from encoding.h:11:0,
>  > |                  from encoding.c:9:
>  > | containers.h: In function 'free_wgdevice':
>  > | containers.h:87:2: error: 'for' loop initial declarations are only
>  > allowed in C99 or C11 mode
>
> It looks like you are not passing -std=gnu11 to gcc. Can you build with
> V=1 to see the exact command line?
>
> --
> Bye, Peter Korsgaard

  reply	other threads:[~2017-12-28 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-27 17:57 Outback Dingo
2017-12-27 22:24 ` Peter Korsgaard
2017-12-28 14:25   ` Outback Dingo [this message]
2017-12-30 15:12     ` Jason A. Donenfeld
2017-12-31  0:29 ` Daniel Kahn Gillmor

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

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

  git send-email \
    --in-reply-to='CAKYr3zxFYEVpTLUcqE42DYs983ivGt+9p877=0XuDyZWzm6qjw@mail.gmail.com' \
    --to=outbackdingo@gmail.com \
    --cc=peter@korsgaard.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
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 NNTP newsgroup(s).