lsds / sgx-lkl

SGX-LKL Library OS for running Linux applications inside of Intel SGX enclaves
MIT License
254 stars 88 forks source link

[Tests] Investigate LTP test build issues #500

Open hukoyu opened 4 years ago

hukoyu commented 4 years ago

When 1000+ independent LTP tests build, a few of them fails. Investigate build failures and report them.

hukoyu commented 4 years ago

@prp @letmaik I created this issue to follow up.

prp commented 4 years ago

@hukoyu when you look here (https://dev.azure.com/sgx-lkl/sgx-lkl/_build/results?buildId=921&view=logs&j=289c1492-6262-5ba1-59e0-a623a2e4156a&t=66dd73f4-5cb1-5a04-1123-cb2adebf7e9d), you will see several compilation failures, which is why LTP2 fails. This only happens sometimes, so I presume that the build environment is corrupted on one of the CI machines?

(cc: @letmaik)

hukoyu commented 4 years ago
2020-06-30T01:21:43.1177610Z [Test #26/359]   Building /ltp/testcases/kernel/syscalls/epoll2/examples               Failed    
2020-06-30T01:21:43.1177913Z _________________________________________
2020-06-30T01:21:43.1178445Z cc -g -I- -I. -I../include -I/usr/src/linux/include -DUNIX -D_DEBUG -DHTTP_BLASTER -o ../bin/epoll-blaster ./epoll-test.c -L../lib -lepoll -lpcl
2020-06-30T01:21:43.1179046Z cc1: note: obsolete option -I- used, please use -iquote instead
2020-06-30T01:21:43.1179533Z ./epoll-test.c:61:17: fatal error: pcl.h: No such file or directory
2020-06-30T01:21:43.1179834Z  #include <pcl.h>
2020-06-30T01:21:43.1180053Z                  ^
2020-06-30T01:21:43.1180272Z compilation terminated.
2020-06-30T01:21:43.1180534Z make: *** [Makefile:37: blaster] Error 1
2020-06-30T01:21:43.1180795Z _________________________________________
2020-06-30T01:21:43.1180988Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1183013Z [Test #32/359]   Building /ltp/testcases/kernel/syscalls/rt_tgsigqueueinfo             Failed    
2020-06-30T01:21:43.1183317Z _________________________________________
2020-06-30T01:21:43.1184273Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -pthread  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  rt_tgsigqueueinfo01.c   -lltp -o rt_tgsigqueueinfo01
2020-06-30T01:21:43.1184903Z rt_tgsigqueueinfo01.c: In function 'sigusr1_handler':
2020-06-30T01:21:43.1185478Z rt_tgsigqueueinfo01.c:42:20: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1186003Z   sigval_rcv = uinfo->_sifields._rt.SI_SIGVAL.sival_ptr;
2020-06-30T01:21:43.1186289Z                     ^~
2020-06-30T01:21:43.1186686Z rt_tgsigqueueinfo01.c: In function 'send_rcv_func':
2020-06-30T01:21:43.1187251Z rt_tgsigqueueinfo01.c:54:7: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1187872Z   uinfo._sifields._rt.SI_SIGVAL.sival_ptr = sigval_send;
2020-06-30T01:21:43.1188250Z        ^
2020-06-30T01:21:43.1188645Z rt_tgsigqueueinfo01.c: In function 'verify_signal_parent_thread':
2020-06-30T01:21:43.1189219Z rt_tgsigqueueinfo01.c:116:7: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1189600Z   uinfo._sifields._rt.SI_SIGVAL.sival_ptr = sigval_send;
2020-06-30T01:21:43.1189840Z        ^
2020-06-30T01:21:43.1190222Z rt_tgsigqueueinfo01.c: In function 'sender_func':
2020-06-30T01:21:43.1190785Z rt_tgsigqueueinfo01.c:133:7: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1191177Z   uinfo._sifields._rt.SI_SIGVAL.sival_ptr = sigval_send;
2020-06-30T01:21:43.1191424Z        ^
2020-06-30T01:21:43.1191663Z make: *** [<builtin>: rt_tgsigqueueinfo01] Error 1
2020-06-30T01:21:43.1191936Z _________________________________________
2020-06-30T01:21:43.1192132Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1218784Z [Test #100/359]  Building /ltp/testcases/kernel/syscalls/fmtmsg                        Failed    
2020-06-30T01:21:43.1219094Z _________________________________________
2020-06-30T01:21:43.1219720Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  fmtmsg01.c   -lltp -o fmtmsg01
2020-06-30T01:21:43.1220288Z fmtmsg01.c: In function 'main':
2020-06-30T01:21:43.1220807Z fmtmsg01.c:133:12: warning: implicit declaration of function 'addseverity' [-Wimplicit-function-declaration]
2020-06-30T01:21:43.1221170Z   ret_val = addseverity(3, "INVALID");
2020-06-30T01:21:43.1221416Z             ^~~~~~~~~~~
2020-06-30T01:21:43.1221917Z /tmp/cceKJEiJ.o: In function `main':
2020-06-30T01:21:43.1222403Z /ltp/testcases/kernel/syscalls/fmtmsg/fmtmsg01.c:133: undefined reference to `addseverity'
2020-06-30T01:21:43.1222934Z /ltp/testcases/kernel/syscalls/fmtmsg/fmtmsg01.c:147: undefined reference to `addseverity'
2020-06-30T01:21:43.1223276Z collect2: error: ld returned 1 exit status
2020-06-30T01:21:43.1223546Z make: *** [<builtin>: fmtmsg01] Error 1
2020-06-30T01:21:43.1223807Z _________________________________________
2020-06-30T01:21:43.1224012Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1226012Z [Test #106/359]  Building /ltp/testcases/kernel/syscalls/timer_create                  Failed    
2020-06-30T01:21:43.1226323Z _________________________________________
2020-06-30T01:21:43.1227061Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -D_GNU_SOURCE -I/ltp/testcases/kernel/syscalls/timer_create/../include -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  timer_create03.c   -lltp -lpthread -lrt -o timer_create03
2020-06-30T01:21:43.1227796Z timer_create03.c: In function 'run':
2020-06-30T01:21:43.1228320Z timer_create03.c:40:5: error: 'struct sigevent' has no member named '_sigev_un'; did you mean 'sigev_value'?
2020-06-30T01:21:43.1228669Z   evp._sigev_un._tid = getpid();
2020-06-30T01:21:43.1228892Z      ^
2020-06-30T01:21:43.1229125Z make: *** [<builtin>: timer_create03] Error 1
2020-06-30T01:21:43.1229391Z _________________________________________
2020-06-30T01:21:43.1229587Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1235246Z [Test #122/359]  Building /ltp/testcases/kernel/syscalls                               Failed    
2020-06-30T01:21:43.1235550Z _________________________________________
2020-06-30T01:21:43.1235983Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/fork'
2020-06-30T01:21:43.1236418Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1236861Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/fork'
2020-06-30T01:21:43.1237330Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/tkill'
2020-06-30T01:21:43.1237917Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1238497Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/tkill'
2020-06-30T01:21:43.1238971Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/mallopt'
2020-06-30T01:21:43.1239399Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1239844Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/mallopt'
2020-06-30T01:21:43.1240317Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/unshare'
2020-06-30T01:21:43.1240749Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1241191Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/unshare'
2020-06-30T01:21:43.1241661Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/recvmsg'
2020-06-30T01:21:43.1242095Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1242539Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/recvmsg'
2020-06-30T01:21:43.1243018Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/rt_sigsuspend'
2020-06-30T01:21:43.1243457Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1243910Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/rt_sigsuspend'
2020-06-30T01:21:43.1244392Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/utime'
2020-06-30T01:21:43.1244826Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1245261Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/utime'
2020-06-30T01:21:43.1245736Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/connect'
2020-06-30T01:21:43.1246167Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1246615Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/connect'
2020-06-30T01:21:43.1247097Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/getpriority'
2020-06-30T01:21:43.1247527Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1247973Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/getpriority'
2020-06-30T01:21:43.1248523Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/set_mempolicy'
2020-06-30T01:21:43.1248959Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1249405Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/set_mempolicy'
2020-06-30T01:21:43.1249896Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/mq_timedreceive'
2020-06-30T01:21:43.1250334Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1250789Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/mq_timedreceive'
2020-06-30T01:21:43.1251270Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/realpath'
2020-06-30T01:21:43.1251694Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1252202Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/realpath'
2020-06-30T01:21:43.1252681Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/fcntl'
2020-06-30T01:21:43.1253110Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1253547Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/fcntl'
2020-06-30T01:21:43.1254028Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/fpathconf'
2020-06-30T01:21:43.1254458Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1254900Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/fpathconf'
2020-06-30T01:21:43.1255371Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/statvfs'
2020-06-30T01:21:43.1255805Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1256249Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/statvfs'
2020-06-30T01:21:43.1256723Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/umount2'
2020-06-30T01:21:43.1257153Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1257596Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/umount2'
2020-06-30T01:21:43.1258068Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/mremap'
2020-06-30T01:21:43.1258564Z make -C ../ipc/lib -f "/ltp/testcases/kernel/syscalls/mremap/../ipc/lib/Makefile" all
2020-06-30T01:21:43.1259059Z make[2]: Entering directory '/ltp/testcases/kernel/syscalls/ipc/lib'
2020-06-30T01:21:43.1259482Z make[2]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1259926Z make[2]: Leaving directory '/ltp/testcases/kernel/syscalls/ipc/lib'
2020-06-30T01:21:43.1260395Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/mremap'
2020-06-30T01:21:43.1260862Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/setfsgid'
2020-06-30T01:21:43.1261294Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1261728Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/setfsgid'
2020-06-30T01:21:43.1262215Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/sched_setscheduler'
2020-06-30T01:21:43.1262659Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1263119Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/sched_setscheduler'
2020-06-30T01:21:43.1263601Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/madvise'
2020-06-30T01:21:43.1264035Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1264481Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/madvise'
2020-06-30T01:21:43.1264946Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/stime'
2020-06-30T01:21:43.1265377Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1265811Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/stime'
2020-06-30T01:21:43.1266274Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/bpf'
2020-06-30T01:21:43.1266701Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1267137Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/bpf'
2020-06-30T01:21:43.1267984Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/io_destroy'
2020-06-30T01:21:43.1268428Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1268875Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/io_destroy'
2020-06-30T01:21:43.1269512Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/ioprio'
2020-06-30T01:21:43.1270140Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1270584Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/ioprio'
2020-06-30T01:21:43.1271053Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/cma'
2020-06-30T01:21:43.1271477Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1271915Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/cma'
2020-06-30T01:21:43.1272377Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/access'
2020-06-30T01:21:43.1272805Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1273250Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/access'
2020-06-30T01:21:43.1273802Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/chroot'
2020-06-30T01:21:43.1274226Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1274677Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/chroot'
2020-06-30T01:21:43.1275147Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/mkdirat'
2020-06-30T01:21:43.1275583Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1276030Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/mkdirat'
2020-06-30T01:21:43.1276514Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/gethostbyname_r'
2020-06-30T01:21:43.1276956Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1277410Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/gethostbyname_r'
2020-06-30T01:21:43.1277894Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/fchmod'
2020-06-30T01:21:43.1278321Z make[1]: Nothing to be done for 'all'.
2020-06-30T01:21:43.1278762Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/fchmod'
2020-06-30T01:21:43.1279251Z make[1]: Entering directory '/ltp/testcases/kernel/syscalls/rt_tgsigqueueinfo'
2020-06-30T01:21:43.1279952Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -pthread  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  rt_tgsigqueueinfo01.c   -lltp -o rt_tgsigqueueinfo01
2020-06-30T01:21:43.1280574Z rt_tgsigqueueinfo01.c: In function 'sigusr1_handler':
2020-06-30T01:21:43.1281140Z rt_tgsigqueueinfo01.c:42:20: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1281669Z   sigval_rcv = uinfo->_sifields._rt.SI_SIGVAL.sival_ptr;
2020-06-30T01:21:43.1281951Z                     ^~
2020-06-30T01:21:43.1282350Z rt_tgsigqueueinfo01.c: In function 'send_rcv_func':
2020-06-30T01:21:43.1282908Z rt_tgsigqueueinfo01.c:54:7: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1283307Z   uinfo._sifields._rt.SI_SIGVAL.sival_ptr = sigval_send;
2020-06-30T01:21:43.1283551Z        ^
2020-06-30T01:21:43.1283956Z rt_tgsigqueueinfo01.c: In function 'verify_signal_parent_thread':
2020-06-30T01:21:43.1284543Z rt_tgsigqueueinfo01.c:116:7: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1284940Z   uinfo._sifields._rt.SI_SIGVAL.sival_ptr = sigval_send;
2020-06-30T01:21:43.1285184Z        ^
2020-06-30T01:21:43.1285561Z rt_tgsigqueueinfo01.c: In function 'sender_func':
2020-06-30T01:21:43.1286127Z rt_tgsigqueueinfo01.c:133:7: error: 'siginfo_t {aka struct <anonymous>}' has no member named '_sifields'; did you mean '__si_fields'?
2020-06-30T01:21:43.1286529Z   uinfo._sifields._rt.SI_SIGVAL.sival_ptr = sigval_send;
2020-06-30T01:21:43.1286768Z        ^
2020-06-30T01:21:43.1287007Z make[1]: *** [<builtin>: rt_tgsigqueueinfo01] Error 1
2020-06-30T01:21:43.1287458Z make[1]: Leaving directory '/ltp/testcases/kernel/syscalls/rt_tgsigqueueinfo'
2020-06-30T01:21:43.1287825Z make: *** [../../../include/mk/generic_trunk_target.inc:93: all] Error 2
2020-06-30T01:21:43.1288118Z _________________________________________
2020-06-30T01:21:43.1288318Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1343820Z [Test #258/359]  Building /ltp/testcases/kernel/syscalls/setxattr                      Failed    
2020-06-30T01:21:43.1344126Z _________________________________________
2020-06-30T01:21:43.1345097Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  setxattr03.c   -lltp -o setxattr03
2020-06-30T01:21:43.1345546Z In file included from setxattr03.c:31:0:
2020-06-30T01:21:43.1345999Z ../../../../include/lapi/fs.h:51:15: error: unknown type name 'loff_t'
2020-06-30T01:21:43.1346329Z  static inline loff_t tst_max_lfs_filesize(void)
2020-06-30T01:21:43.1346577Z                ^~~~~~
2020-06-30T01:21:43.1346989Z ../../../../include/lapi/fs.h: In function 'tst_max_lfs_filesize':
2020-06-30T01:21:43.1347750Z ../../../../include/lapi/fs.h:54:10: error: 'loff_t' undeclared (first use in this function)
2020-06-30T01:21:43.1348225Z   return (loff_t)LLONG_MAX;
2020-06-30T01:21:43.1348453Z           ^~~~~~
2020-06-30T01:21:43.1348772Z ../../../../include/lapi/fs.h:54:10: note: each undeclared identifier is reported only once for each function it appears in
2020-06-30T01:21:43.1349126Z In file included from /usr/include/limits.h:8:0,
2020-06-30T01:21:43.1349415Z                  from /usr/include/fortify/stdlib.h:25,
2020-06-30T01:21:43.1349701Z                  from setxattr03.c:26:
2020-06-30T01:21:43.1350162Z ../../../../include/lapi/fs.h:54:17: error: expected ';' before numeric constant
2020-06-30T01:21:43.1350476Z   return (loff_t)LLONG_MAX;
2020-06-30T01:21:43.1350707Z                  ^
2020-06-30T01:21:43.1350951Z make: *** [<builtin>: setxattr03] Error 1
2020-06-30T01:21:43.1351212Z _________________________________________
2020-06-30T01:21:43.1351408Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1352720Z [Test #262/359]  Building /ltp/testcases/kernel/syscalls/confstr                       Failed    
2020-06-30T01:21:43.1353026Z _________________________________________
2020-06-30T01:21:43.1353627Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  confstr01.c   -lltp -o confstr01
2020-06-30T01:21:43.1354299Z confstr01.c:51:3: error: '_CS_XBS5_ILP32_OFF32_CFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1354690Z   {_CS_XBS5_ILP32_OFF32_CFLAGS, "XBS5_ILP32_OFF32_CFLAGS"},
2020-06-30T01:21:43.1354959Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1355460Z confstr01.c:52:3: error: '_CS_XBS5_ILP32_OFF32_LDFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1355859Z   {_CS_XBS5_ILP32_OFF32_LDFLAGS, "XBS5_ILP32_OFF32_LDFLAGS"},
2020-06-30T01:21:43.1356229Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1356693Z confstr01.c:53:3: error: '_CS_XBS5_ILP32_OFF32_LIBS' undeclared here (not in a function)
2020-06-30T01:21:43.1357080Z   {_CS_XBS5_ILP32_OFF32_LIBS, "XBS5_ILP32_OFF32_LIBS"},
2020-06-30T01:21:43.1357371Z    ^~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1357909Z confstr01.c:54:3: error: '_CS_XBS5_ILP32_OFF32_LINTFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1358282Z   {_CS_XBS5_ILP32_OFF32_LINTFLAGS, "XBS5_ILP32_OFF32_LINTFLAGS"},
2020-06-30T01:21:43.1358589Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1359096Z confstr01.c:55:3: error: '_CS_XBS5_ILP32_OFFBIG_CFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1359681Z   {_CS_XBS5_ILP32_OFFBIG_CFLAGS, "XBS5_ILP32_OFFBIG_CFLAGS"},
2020-06-30T01:21:43.1359952Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1360479Z confstr01.c:56:3: error: '_CS_XBS5_ILP32_OFFBIG_LDFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1360887Z   {_CS_XBS5_ILP32_OFFBIG_LDFLAGS, "XBS5_ILP32_OFFBIG_LDFLAGS"},
2020-06-30T01:21:43.1371857Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1372972Z confstr01.c:57:3: error: '_CS_XBS5_ILP32_OFFBIG_LIBS' undeclared here (not in a function)
2020-06-30T01:21:43.1373518Z   {_CS_XBS5_ILP32_OFFBIG_LIBS, "XBS5_ILP32_OFFBIG_LIBS"},
2020-06-30T01:21:43.1373933Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1374673Z confstr01.c:58:3: error: '_CS_XBS5_ILP32_OFFBIG_LINTFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1375197Z   {_CS_XBS5_ILP32_OFFBIG_LINTFLAGS, "XBS5_ILP32_OFFBIG_LINTFLAGS"},
2020-06-30T01:21:43.1375609Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1376341Z confstr01.c:59:3: error: '_CS_XBS5_LP64_OFF64_CFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1376847Z   {_CS_XBS5_LP64_OFF64_CFLAGS, "XBS5_LP64_OFF64_CFLAGS"},
2020-06-30T01:21:43.1377242Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1377992Z confstr01.c:60:3: error: '_CS_XBS5_LP64_OFF64_LDFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1378513Z   {_CS_XBS5_LP64_OFF64_LDFLAGS, "XBS5_LP64_OFF64_LDFLAGS"},
2020-06-30T01:21:43.1378912Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1379636Z confstr01.c:61:3: error: '_CS_XBS5_LP64_OFF64_LIBS' undeclared here (not in a function)
2020-06-30T01:21:43.1380140Z   {_CS_XBS5_LP64_OFF64_LIBS, "XBS5_LP64_OFF64_LIBS"},
2020-06-30T01:21:43.1380522Z    ^~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1381225Z confstr01.c:62:3: error: '_CS_XBS5_LP64_OFF64_LINTFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1381719Z   {_CS_XBS5_LP64_OFF64_LINTFLAGS, "XBS5_LP64_OFF64_LINTFLAGS"},
2020-06-30T01:21:43.1382001Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1382468Z confstr01.c:63:3: error: '_CS_XBS5_LPBIG_OFFBIG_CFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1382829Z   {_CS_XBS5_LPBIG_OFFBIG_CFLAGS, "XBS5_LPBIG_OFFBIG_CFLAGS"},
2020-06-30T01:21:43.1383101Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1383566Z confstr01.c:64:3: error: '_CS_XBS5_LPBIG_OFFBIG_LDFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1383934Z   {_CS_XBS5_LPBIG_OFFBIG_LDFLAGS, "XBS5_LPBIG_OFFBIG_LDFLAGS"},
2020-06-30T01:21:43.1384211Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1384669Z confstr01.c:65:3: error: '_CS_XBS5_LPBIG_OFFBIG_LIBS' undeclared here (not in a function)
2020-06-30T01:21:43.1385029Z   {_CS_XBS5_LPBIG_OFFBIG_LIBS, "XBS5_LPBIG_OFFBIG_LIBS"},
2020-06-30T01:21:43.1385296Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1385763Z confstr01.c:66:3: error: '_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS' undeclared here (not in a function)
2020-06-30T01:21:43.1386134Z   {_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, "XBS5_LPBIG_OFFBIG_LINTFLAGS"},
2020-06-30T01:21:43.1386422Z    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-06-30T01:21:43.1386687Z make: *** [<builtin>: confstr01] Error 1
2020-06-30T01:21:43.1386954Z _________________________________________
2020-06-30T01:21:43.1387153Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1393129Z [Test #278/359]  Building /ltp/testcases/kernel/syscalls/ioctl                         Failed    
2020-06-30T01:21:43.1393438Z _________________________________________
2020-06-30T01:21:43.1394064Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  ioctl04.c   -lltp -o ioctl04
2020-06-30T01:21:43.1394834Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  ioctl08.c   -lltp -o ioctl08
2020-06-30T01:21:43.1395602Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  ioctl07.c   -lltp -o ioctl07
2020-06-30T01:21:43.1396390Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  ioctl_ns02.c   -lltp -o ioctl_ns02
2020-06-30T01:21:43.1397171Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  ioctl02.c   -lltp -o ioctl02
2020-06-30T01:21:43.1397650Z ioctl02.c:60:20: fatal error: termio.h: No such file or directory
2020-06-30T01:21:43.1397935Z  #include <termio.h>
2020-06-30T01:21:43.1398159Z                     ^
2020-06-30T01:21:43.1398383Z compilation terminated.
2020-06-30T01:21:43.1398631Z make: *** [<builtin>: ioctl02] Error 1
2020-06-30T01:21:43.1398900Z _________________________________________
2020-06-30T01:21:43.1399096Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1404479Z [Test #293/359]  Building /ltp/testcases/kernel/syscalls/accept4                       Failed    
2020-06-30T01:21:43.1404788Z _________________________________________
2020-06-30T01:21:43.1405414Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  accept4_01.c   -lltp -o accept4_01
2020-06-30T01:21:43.1405901Z accept4_01.c:41:21: error: missing binary operator before token "("
2020-06-30T01:21:43.1406188Z  #if !(__GLIBC_PREREQ(2, 10))
2020-06-30T01:21:43.1406422Z                      ^
2020-06-30T01:21:43.1406818Z accept4_01.c: In function 'verify_accept4':
2020-06-30T01:21:43.1407170Z accept4_01.c:117:21: error: missing binary operator before token "("
2020-06-30T01:21:43.1407462Z  #if !(__GLIBC_PREREQ(2, 10))
2020-06-30T01:21:43.1407695Z                      ^
2020-06-30T01:21:43.1407933Z accept4_01.c: At top level:
2020-06-30T01:21:43.1408441Z accept4_01.c:170:1: warning: missing initializer for field 'caps' of 'struct tst_test' [-Wmissing-field-initializers]
2020-06-30T01:21:43.1408775Z  };
2020-06-30T01:21:43.1408960Z  ^
2020-06-30T01:21:43.1409196Z In file included from accept4_01.c:21:0:
2020-06-30T01:21:43.1409642Z ../../../../include/tst_test.h:214:18: note: 'caps' declared here
2020-06-30T01:21:43.1409946Z   struct tst_cap *caps;
2020-06-30T01:21:43.1410176Z                   ^~~~
2020-06-30T01:21:43.1410429Z make: *** [<builtin>: accept4_01] Error 1
2020-06-30T01:21:43.1410697Z _________________________________________
2020-06-30T01:21:43.1410893Z 
hukoyu commented 4 years ago
2020-06-30T01:21:43.1424773Z [Test #324/359]  Building /ltp/testcases/kernel/syscalls/getcontext                    Failed    
2020-06-30T01:21:43.1425070Z _________________________________________
2020-06-30T01:21:43.1425698Z gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition  -I../../../../include -I../../../../include -I../../../../include/old/   -L../../../../lib  getcontext01.c   -lltp -o getcontext01
2020-06-30T01:21:43.1426288Z /tmp/ccHmckgE.o: In function `test_getcontext':
2020-06-30T01:21:43.1426792Z /ltp/testcases/kernel/syscalls/getcontext/getcontext01.c:40: undefined reference to `getcontext'
2020-06-30T01:21:43.1427205Z collect2: error: ld returned 1 exit status
2020-06-30T01:21:43.1427547Z make: *** [<builtin>: getcontext01] Error 1
2020-06-30T01:21:43.1427819Z _________________________________________
2020-06-30T01:21:43.1428015Z 
hukoyu commented 4 years ago

9 out of 359 LTP executables fail to build. I checked all runnable LTP tests cases in .c_binaries_list and none of these failed ones are part of. So technically these 9 failures doesn't affect any LTP test we are running at the moment.

Failed to generate 10 binaries in /ltp/testcases/kernel/syscalls :
[Test #26/359]   Building /ltp/testcases/kernel/syscalls/epoll2/examples 
[Test #32/359]   Building /ltp/testcases/kernel/syscalls/rt_tgsigqueueinfo
[Test #100/359]  Building /ltp/testcases/kernel/syscalls/fmtmsg
[Test #106/359]  Building /ltp/testcases/kernel/syscalls/timer_create

[Test #122/359]  Building /ltp/testcases/kernel/syscalls   #Due to [Test #32/359]
/ltp/testcases/kernel/syscalls/rt_tgsigqueueinfo

[Test #258/359]  Building /ltp/testcases/kernel/syscalls/setxattr
[Test #262/359]  Building /ltp/testcases/kernel/syscalls/confstr
[Test #278/359]  Building /ltp/testcases/kernel/syscalls/ioctl
[Test #293/359]  Building /ltp/testcases/kernel/syscalls/accept4
[Test #324/359]  Building /ltp/testcases/kernel/syscalls/getcontext
paulcallen commented 4 years ago

I believe this should be a p2 as it causes us to miss a number of tests and we cannot triage the individual tests to determine if they are important or not

hukoyu commented 4 years ago

Found 6 build problems with latest lsds/ltp/sgx-lkl (after removing some patches after fixing unblocking bugs) and submitted a PR to fix 6 LTP test build issues: https://github.com/lsds/ltp/pull/74