breakpoint test from ubuntu_kernel_selftest failed to build on aarch64

Bug #1680507 reported by Po-Hsu Lin on 2017-04-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
glibc (Ubuntu)
Undecided
Unassigned
Zesty
Undecided
Unassigned
Artful
Undecided
Unassigned
Bionic
Undecided
Unassigned
linux (Ubuntu)
Medium
Unassigned
Zesty
Medium
Unassigned
Artful
Undecided
Unassigned
Bionic
Medium
Unassigned

Bug Description

stderr:
 breakpoint_test_arm64.c: In function ‘set_watchpoint’:
 breakpoint_test_arm64.c:91:28: error: storage size of ‘dreg_state’ isn’t known
 struct user_hwdebug_state dreg_state;
 ^~~~~~~~~~
 In file included from /usr/include/alloca.h:24:0,
 from /usr/include/stdlib.h:453,
 from ../kselftest.h:13,
 from breakpoint_test_arm64.c:37:
 breakpoint_test_arm64.c:98:32: error: invalid use of undefined type ‘struct user_hwdebug_state’
 iov.iov_len = offsetof(struct user_hwdebug_state, dbg_regs) +
 ^
 breakpoint_test_arm64.c: In function ‘run_test’:
 breakpoint_test_arm64.c:171:25: error: ‘TRAP_HWBKPT’ undeclared (first use in this function)
 if (siginfo.si_code != TRAP_HWBKPT) {
 ^~~~~~~~~~~
 breakpoint_test_arm64.c:171:25: note: each undeclared identifier is reported only once for each function it appears in
 make: *** [breakpoint_test_arm64] Error 1

Full log can be found here: http://pastebin.ubuntu.com/24328194/

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: linux-image-4.10.0-18-generic 4.10.0-18.20
ProcVersionSignature: User Name 4.10.0-18.20-generic 4.10.8
Uname: Linux 4.10.0-18-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Apr 6 14:48 seq
 crw-rw---- 1 root audio 116, 33 Apr 6 14:48 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.4-0ubuntu3
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Thu Apr 6 14:50:50 2017
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:

ProcFB:

ProcKernelCmdLine: console=ttyS0,9600n8r ro
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-18-generic N/A
 linux-backports-modules-4.10.0-18-generic N/A
 linux-firmware 1.164
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key
Po-Hsu Lin (cypressyew) wrote :

Issue found in Artful, series nominated.

Po-Hsu Lin (cypressyew) wrote :

This is because that glibc is missing several of the TRAP_* constants in the userspace
definitions. Specifically TRAP_BRANCH and TRAP_HWBKPT.
See https://sourceware.org/bugzilla/show_bug.cgi?id=21286

Changed in linux (Ubuntu Zesty):
status: Confirmed → Won't Fix

Will fix for now by disabling the test on our selftest suite.

Cascardo.

tags: added: id-5ab94cd948fea47a514cc379
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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