gcc crashes when compiling wireguard on raspberry pi

Bug #1828404 reported by Markus Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-7 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

sudo add-apt-repository ppa:wireguard/wireguard
sudo apt install wireguard

DKMS make.log for wireguard-0.0.20190406 for kernel 4.15.0-1034-raspi2 (aarch64)
Thu May 9 14:23:48 CEST 2019
make: Entering directory '/usr/src/linux-headers-4.15.0-1034-raspi2'
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/main.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/noise.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/device.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/peer.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/timers.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/queueing.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/send.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/receive.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/socket.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/peerlookup.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/allowedips.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/ratelimiter.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/cookie.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/netlink.o
/var/lib/dkms/wireguard/0.0.20190406/build/allowedips.c: In function ‘root_remove_peer_lists’:
/var/lib/dkms/wireguard/0.0.20190406/build/allowedips.c:72:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
/var/lib/dkms/wireguard/0.0.20190406/build/allowedips.c: In function ‘root_free_rcu’:
/var/lib/dkms/wireguard/0.0.20190406/build/allowedips.c:59:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
/var/lib/dkms/wireguard/0.0.20190406/build/allowedips.c: In function ‘walk_remove_by_peer.isra.4’:
/var/lib/dkms/wireguard/0.0.20190406/build/allowedips.c:126:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20/chacha20.o
  PERLASM /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20/chacha20-arm64.S
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/poly1305/poly1305.o
  PERLASM /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/poly1305/poly1305-arm64.S
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20poly1305.o
  CC [M] /var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/blake2s/blake2s.o
/var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20poly1305.c: In function ‘xchacha20poly1305_encrypt’:
/var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20poly1305.c:316:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
scripts/Makefile.build:330: recipe for target '/var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20poly1305.o' failed
make[1]: *** [/var/lib/dkms/wireguard/0.0.20190406/build/crypto/zinc/chacha20poly1305.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1552: recipe for target '_module_/var/lib/dkms/wireguard/0.0.20190406/build' failed
make: *** [_module_/var/lib/dkms/wireguard/0.0.20190406/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.0-1034-raspi2'

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gcc 4:7.4.0-1ubuntu2.2
ProcVersionSignature: Ubuntu 4.15.0-1034.36-raspi2 4.15.18
Uname: Linux 4.15.0-1034-raspi2 aarch64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: arm64
Date: Thu May 9 14:32:29 2019
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: gcc-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Markus Moser (moses-landshut) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

please provide the preprocessed source and the command line arguments used to build this source.

affects: gcc-defaults (Ubuntu) → gcc-7 (Ubuntu)
Changed in gcc-7 (Ubuntu):
status: New → Incomplete
Revision history for this message
Markus Moser (moses-landshut) wrote :

Sorry, I don't know how to provide the requested information.
I just wanted to try out WireGuard by following the instructions at https://www.wireguard.com/install/ .

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gcc-7 (Ubuntu) because there has been no activity for 60 days.]

Changed in gcc-7 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.