Unable to build sysdig module on PowerPC with X-4.15

Bug #1810916 reported by Po-Hsu Lin on 2019-01-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Marcelo Cerri
linux-signed-hwe (Ubuntu)
Undecided
Marcelo Cerri
sysdig (Ubuntu)
Undecided
Marcelo Cerri

Bug Description

This sysdig module cannot be built on PowerPC X-4.15, failed with SYSCALL_TABLE_ID0 undeclared:

Running 'cat /var/lib/dkms/sysdig/*/build/make.log'
 DKMS make.log for sysdig-0.8.0 for kernel 4.15.0-43-generic (ppc64le)
 Tue Jan 8 09:23:45 UTC 2019
 make: Entering directory '/usr/src/linux-headers-4.15.0-43-generic'
   CC [M] /var/lib/dkms/sysdig/0.8.0/build/main.o
 In file included from ./arch/powerpc/include/asm/asm-offsets.h:1:0,
                  from /var/lib/dkms/sysdig/0.8.0/build/main.c:53:
 ./include/generated/asm-offsets.h:13:0: warning: "NMI_MASK" redefined
  #define NMI_MASK 1048576 /* NMI_MASK */
  ^
 In file included from ./include/linux/rcupdate.h:40:0,
                  from ./include/linux/rculist.h:11,
                  from ./include/linux/pid.h:5,
                  from ./include/linux/sched.h:14,
                  from ./arch/powerpc/include/asm/syscall.h:17,
                  from /var/lib/dkms/sysdig/0.8.0/build/main.c:28:
 ./include/linux/preempt.h:47:0: note: this is the location of the previous definition
  #define NMI_MASK (__IRQ_MASK(NMI_BITS) << NMI_SHIFT)
  ^
 In file included from ./arch/powerpc/include/asm/asm-offsets.h:1:0,
                  from /var/lib/dkms/sysdig/0.8.0/build/main.c:53:
 ./include/generated/asm-offsets.h:176:0: warning: "NSEC_PER_SEC" redefined
  #define NSEC_PER_SEC 1000000000 /* NSEC_PER_SEC */
  ^
 In file included from ./include/linux/sem.h:8:0,
                  from ./include/linux/sched.h:15,
                  from ./arch/powerpc/include/asm/syscall.h:17,
                  from /var/lib/dkms/sysdig/0.8.0/build/main.c:28:
 ./include/linux/time64.h:34:0: note: this is the location of the previous definition
  #define NSEC_PER_SEC 1000000000L
  ^
 In file included from ./arch/powerpc/include/asm/asm-offsets.h:1:0,
                  from /var/lib/dkms/sysdig/0.8.0/build/main.c:53:
 ./include/generated/asm-offsets.h:179:0: warning: "PGD_TABLE_SIZE" redefined
  #define PGD_TABLE_SIZE 65536 /* (sizeof(pgd_t) << max(RADIX_PGD_INDEX_SIZE, H_PGD_INDEX_SIZE)) */
  ^
 In file included from ./arch/powerpc/include/asm/book3s/64/mmu-hash.h:24:0,
                  from ./arch/powerpc/include/asm/book3s/64/mmu.h:30,
                  from ./arch/powerpc/include/asm/mmu.h:305,
                  from ./arch/powerpc/include/asm/lppaca.h:36,
                  from ./arch/powerpc/include/asm/paca.h:21,
                  from ./arch/powerpc/include/asm/current.h:16,
                  from ./include/linux/sched.h:12,
                  from ./arch/powerpc/include/asm/syscall.h:17,
                  from /var/lib/dkms/sysdig/0.8.0/build/main.c:28:
 ./arch/powerpc/include/asm/book3s/64/pgtable.h:237:0: note: this is the location of the previous definition
  #define PGD_TABLE_SIZE __pgd_table_size
  ^
 /var/lib/dkms/sysdig/0.8.0/build/main.c: In function ‘syscall_enter_probe’:
 /var/lib/dkms/sysdig/0.8.0/build/main.c:1668:21: error: ‘SYSCALL_TABLE_ID0’ undeclared (first use in this function)
   table_index = id - SYSCALL_TABLE_ID0;
                      ^
 /var/lib/dkms/sysdig/0.8.0/build/main.c:1668:21: note: each undeclared identifier is reported only once for each function it appears in
 /var/lib/dkms/sysdig/0.8.0/build/main.c: In function ‘syscall_exit_probe’:
 /var/lib/dkms/sysdig/0.8.0/build/main.c:1734:21: error: ‘SYSCALL_TABLE_ID0’ undeclared (first use in this function)
   table_index = id - SYSCALL_TABLE_ID0;
                      ^
 scripts/Makefile.build:332: recipe for target '/var/lib/dkms/sysdig/0.8.0/build/main.o' failed
 make[1]: *** [/var/lib/dkms/sysdig/0.8.0/build/main.o] Error 1
 Makefile:1551: recipe for target '_module_/var/lib/dkms/sysdig/0.8.0/build' failed
 make: *** [_module_/var/lib/dkms/sysdig/0.8.0/build] Error 2
 make: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.15.0-43-generic 4.15.0-43.46~16.04.1
ProcVersionSignature: Ubuntu 4.15.0-43.46~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-43-generic ppc64le
NonfreeKernelModules: lttng_probe_writeback lttng_probe_workqueue lttng_probe_v4l2 lttng_probe_vmscan lttng_probe_udp lttng_probe_timer lttng_probe_sunrpc lttng_probe_statedump lttng_probe_sock lttng_probe_skb lttng_probe_signal lttng_probe_scsi lttng_probe_sched lttng_probe_regulator lttng_probe_rcu lttng_probe_random lttng_probe_printk lttng_probe_power lttng_probe_net lttng_probe_napi lttng_probe_module lttng_probe_kvm lttng_probe_kmem lttng_probe_jbd2 lttng_probe_irq lttng_probe_gpio lttng_probe_compaction lttng_probe_block lttng_probe_asoc lttng_ring_buffer_metadata_mmap_client lttng_ring_buffer_client_mmap_overwrite lttng_ring_buffer_client_mmap_discard lttng_ring_buffer_metadata_client lttng_ring_buffer_client_overwrite lttng_ring_buffer_client_discard lttng_tracer lttng_statedump lttng_kprobes lttng_clock lttng_lib_ring_buffer lttng_kretprobes
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: ppc64el
Date: Tue Jan 8 09:28:44 2019
ProcLoadAvg: 0.12 0.09 0.09 1/1419 29844
ProcSwaps:
 Filename Type Size Used Priority
 /swap.img file 8388544 0 -2
ProcVersion: Linux version 4.15.0-43-generic (buildd@bos02-ppc64el-012) (gcc version 5.4.0 20160609 (Ubuntu/IBM 5.4.0-6ubuntu1~16.04.10)) #46~16.04.1-Ubuntu SMP Fri Dec 7 13:28:49 UTC 2018
SourcePackage: linux-signed-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
cpu_cores: Number of cores present = 20
cpu_coreson: Number of cores online = 20
cpu_dscr: DSCR is 0
cpu_freq:
 min: 3.694 GHz (cpu 152)
 max: 3.695 GHz (cpu 7)
 avg: 3.694 GHz
cpu_runmode:
 Could not retrieve current diagnostics mode,
 No kernel interface to firmware
cpu_smt: SMT=8

Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew) on 2019-09-16
tags: added: ubuntu-sysdig-smoke-test
tags: added: 4.15
Marcelo Cerri (mhcerri) on 2019-09-17
Changed in ubuntu-kernel-tests:
assignee: nobody → Marcelo Cerri (mhcerri)
Changed in linux-signed-hwe (Ubuntu):
assignee: nobody → Marcelo Cerri (mhcerri)
Changed in sysdig (Ubuntu):
assignee: nobody → Marcelo Cerri (mhcerri)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers