WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Nicholas Kinar <n.kinar@usask.ca>
To: Ilie Halip <ilie.halip@gmail.com>
Cc: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Re: Cannot build Wireguard for ARM embedded Linux 32-bit Tinkerboard
Date: Thu, 9 Jan 2020 21:20:51 +0000
Message-ID: <b5916353-33ea-132e-1655-dfdf847b2da0@usask.ca> (raw)
In-Reply-To: <CAHFW8PQ2oOSXVx87_1yoax5z+-=uEzYD-kNYn2Dp5knWPTnejg@mail.gmail.com>

On 1/9/2020 2:17 AM, Ilie Halip wrote:
> CAUTION: This email originated from outside of the University of Saskatchewan. Do not click links or open attachments unless you recognize the sender and know the content is safe. If in doubt, please forward suspicious emails to phishing@usask.ca
> You could just cd into /var/lib/dkms/wireguard/0.0.20191219 and run
> "make V=1" manually in there as root. That should give more information.
> I.H.

Hello Ilie:

Thanks for your help, I did this and it showed that the compiler doesn't 
recognize a command-line option ( ‘-mgeneral-regs-only’). The output is 
pasted below.

linaro@clavet-server:/var/lib/dkms/wireguard/0.0.20191219/build$ sudo 
make V=1
ver="#define WIREGUARD_VERSION \"\"" && \
[ "$(cat version.h 2>/dev/null)" != "$ver" ] && \
echo "$ver" > version.h || true
make[1]: Entering directory '/usr/src/linux-headers-4.4.132+'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || 
(                \
echo >&2; \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or 
include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to 
fix it.";      \
echo >&2 ;                                                      \
mkdir -p /var/lib/dkms/wireguard/0.0.20191219/build/.tmp_versions ; rm 
-f /var/lib/dkms/wireguard/0.0.20191219/build/.tmp_versions/*
make -f ./scripts/Makefile.build 
   ./scripts/gcc-wrapper.py gcc 
-Wp,-MD,/var/lib/dkms/wireguard/0.0.20191219/build/.main.o.d -nostdinc 
-isystem /usr/lib/gcc/arm-linux-gnueabihf/8/include 
-I./arch/arm64/include -Iarch/arm64/include/generated/uapi 
-Iarch/arm64/include/generated  -Iinclude -I./arch/arm64/include/uapi 
-Iarch/arm64/include/generated/uapi -I./include/uapi 
-Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ 
-mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -Werror-implicit-function-declaration 
-Wno-format-security -std=gnu89 -fno-PIE -mgeneral-regs-only -fno-pic 
-fno-asynchronous-unwind-tables -Os -fno-omit-frame-pointer 
-fno-optimize-sibling-calls -g -pg -O3 -fvisibility=hidden 
-D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt' -Wframe-larger-than=2048 
-DKBUILD_MODNAME='"wireguard"' -c -o 
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
make[2]: *** [scripts/Makefile.build:278: 
/var/lib/dkms/wireguard/0.0.20191219/build/main.o] Error 1
make[1]: *** [Makefile:1471: 
_module_/var/lib/dkms/wireguard/0.0.20191219/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.132+'
make: *** [Makefile:33: module] Error 2

Dr. Nicholas J. Kinar, PhD
Research Scientist | Global Water Futures
Assistant Director | Smart Water Systems Lab
University of Saskatchewan
306-966-2092 | n.kinar@usask.ca

WireGuard mailing list

      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-07 23:57 Nicholas Kinar
2020-01-09  8:17 ` Ilie Halip
2020-01-09 21:20   ` Nicholas Kinar [this message]

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:

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

  git send-email \
    --in-reply-to=b5916353-33ea-132e-1655-dfdf847b2da0@usask.ca \
    --to=n.kinar@usask.ca \
    --cc=ilie.halip@gmail.com \
    --cc=wireguard@lists.zx2c4.com \


* 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 \
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:

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