tsc test failed to build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Sultan Alsawaf |
Bug Description
Test compilation failed with:
* Command:
make
Exit status: 2
Duration: 0.0521910190582
stdout:
cc -O -c -o checktsc.o checktsc.c
<builtin>: recipe for target 'checktsc.o' failed
stderr:
In file included from checktsc.c:11:0:
sched.h:23:3: error: conflicting types for ‘cpu_set_t’
} cpu_set_t;
^~~~~~~~~
In file included from /usr/include/
/usr/
} cpu_set_t;
^~~~~~~~~
In file included from checktsc.c:11:0:
sched.h:42:0: warning: "CPU_SET" redefined
#define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp)
In file included from /usr/include/
/usr/
# define CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp)
In file included from checktsc.c:11:0:
sched.h:43:0: warning: "CPU_CLR" redefined
#define CPU_CLR(cpu, cpusetp) __CPU_CLR (cpu, cpusetp)
In file included from /usr/include/
/usr/
# define CPU_CLR(cpu, cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp)
In file included from checktsc.c:11:0:
sched.h:44:0: warning: "CPU_ISSET" redefined
#define CPU_ISSET(cpu, cpusetp) __CPU_ISSET (cpu, cpusetp)
In file included from /usr/include/
/usr/
# define CPU_ISSET(cpu, cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), \
In file included from checktsc.c:11:0:
sched.h:45:0: warning: "CPU_ZERO" redefined
#define CPU_ZERO(cpusetp) __CPU_ZERO (cpusetp)
In file included from /usr/include/
/usr/
# define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp)
checktsc.c: In function ‘set_cpu_affinity’:
checktsc.
if (sched_
In file included from /usr/include/
/usr/
extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
checktsc.c: In function ‘tsc_delta’:
checktsc.
printf("loop %2d: roundtrip = %5Ld\n", i, t1 - t0);
checktsc.
printf("CPU %d - CPU %d = % 5Ld\n", cpu_a, cpu_b, delta);
checktsc.c: In function ‘main’:
checktsc.
sched_
In file included from /usr/include/
/usr/
extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize,
checktsc.
if (sched_
In file included from /usr/include/
/usr/
extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize,
make: *** [checktsc.o] Error 1
tags: | added: tsc |
tags: | added: amd64 eoan linux-generic sru-20190603 |
tags: | added: arm64 |
tags: | added: sru-20190701 |
tags: | added: aws disco |
tags: | added: gcp |
tags: | added: azure |
tags: | added: sru-20190722 |
TSC is failing to build on EOAN-5. 2.0-4.5- generic full log attached
06/12 18:30:34 ERROR| utils:0153| [stderr] ~~~~~~~ ~~~~~~~ ~~~^~~~ ~~~~ getaffinity†™ from incompatible pointer type [-Wincompatible -pointer- types] getaffinity( 0, sizeof cpus, &cpus) < 0) { pthread. h:23, sched.h: 126:21: note: expected ‘cpu_set_t *’ {aka ‘struct <anonymous> *’} but argument is of type ‘cpu_set_t *’ {aka ‘struct <anonymous> *’} ubuntu/ autotest/ client/ shared/ test.py" , line 387, in _exec ubuntu/ autotest/ client/ shared/ utils.py" , line 865, in update_version ubuntu/ autotest/ client/ tests/tsc/ tsc.py" , line 18, in setup ubuntu/ autotest/ client/ shared/ utils.py" , line 2056, in make status= ignore_ status) ubuntu/ autotest/ client/ shared/ utils.py" , line 1232, in system verbose) .exit_status ubuntu/ autotest/ client/ shared/ utils.py" , line 918, in run
06/12 18:30:34 ERROR| utils:0153| [stderr] checktsc.c:373:40: warning: passing argument 3 of ‘sched_
06/12 18:30:34 ERROR| utils:0153| [stderr] if (sched_
06/12 18:30:34 ERROR| utils:0153| [stderr] ^~~~~
06/12 18:30:34 ERROR| utils:0153| [stderr] In file included from /usr/include/
06/12 18:30:34 ERROR| utils:0153| [stderr] from checktsc.c:9:
06/12 18:30:34 ERROR| utils:0153| [stderr] /usr/include/
06/12 18:30:34 ERROR| utils:0153| [stderr] cpu_set_t *__cpuset) __THROW;
06/12 18:30:34 ERROR| utils:0153| [stderr] ~~~~~~~~~~~^~~~~~~~
06/12 18:30:34 ERROR| utils:0153| [stderr] make: *** [<builtin>: checktsc.o] Error 1
06/12 18:30:34 ERROR| test:0414| Exception escaping from test:
Traceback (most recent call last):
File "/home/
*p_args, **p_dargs)
File "/home/
install(*args, **dargs)
File "/home/
utils.make()
File "/home/
return system(cmd, timeout=timeout, ignore_
File "/home/
verbose=
File "/home/
"Command returned non-zero exit status")
CmdError: Command <make > failed, rc=2, Command returned non-zero exit status
* Command:
make
Exit status: 2