xfstests failed to build on Cosmic & Disco

Bug #1802486 reported by Po-Hsu Lin on 2018-11-09
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Medium
Colin Ian King

Bug Description

 test1.c:164:35: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
 { "bits", '\0', POPT_ARG_BITSET|POPT_ARGFLAG_DOC_HIDDEN, &aBits, 0,
 ^
 poptconfig.c: In function ‘poptReadConfigFile’:
 poptconfig.c:399:9: warning: variable ‘xx’ set but not used [-Wunused-but-set-variable]
 int xx;
 ^~
 poptint.c:12:28: warning: ‘utf8_skip_data’ defined but not used [-Wunused-const-variable=]
 static const unsigned char utf8_skip_data[256] = {
 ^~~~~~~~~~~~~~
 popt.c: In function ‘execCommand’:
 popt.c:483:9: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
 int rc;
 ^~
 popthelp.c: In function ‘getArgDescrip’:
 popthelp.c:176:27: warning: unused parameter ‘translation_domain’ [-Wunused-parameter]
 /*@null@*/ const char * translation_domain)
 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
 popthelp.c: In function ‘singleOptionDefaultValue’:
 popthelp.c:230:27: warning: unused parameter ‘translation_domain’ [-Wunused-parameter]
 /*@null@*/ const char * translation_domain)
 ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
 popthelp.c: In function ‘singleOptionHelp’:
 popthelp.c:325:9: warning: variable ‘xx’ set but not used [-Wunused-but-set-variable]
 int xx;
 ^~
 popthelp.c: In function ‘singleTableHelp’:
 popthelp.c:606:9: warning: variable ‘xx’ set but not used [-Wunused-but-set-variable]
 int xx;
 ^~
 popthelp.c: In function ‘showHelpIntro’:
 popthelp.c:647:9: warning: variable ‘xx’ set but not used [-Wunused-but-set-variable]
 int xx;
 ^~
 popthelp.c: In function ‘poptPrintHelp’:
 popthelp.c:666:9: warning: variable ‘xx’ set but not used [-Wunused-but-set-variable]
 int xx;
 ^~
 ar: `u' modifier ignored since `D' is the default (see `U')
 configure: WARNING: unrecognized options: --disable-nls
 configure: WARNING: unrecognized options: --disable-nls
 /bin/sh: 1: lsdiff: not found
 ar: creating libaio.a
 config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
 snprintf.c: In function ‘dopr’:
 snprintf.c:319:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
 flags |= DP_F_UP;
 ^
 snprintf.c:320:4: note: here
 case 'x':
 ^~~~
 snprintf.c:341:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
 flags |= DP_F_UP;
 ^
 snprintf.c:342:4: note: here
 case 'e':
 ^~~~
 snprintf.c:350:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
 flags |= DP_F_UP;
 ^
 snprintf.c:351:4: note: here
 case 'g':
 ^~~~
 dbench.c: In function ‘main’:
 dbench.c:469:9: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]
 double t, latency=0;
 ^
 fileio.c: In function ‘nb_writex’:
 fileio.c:344:4: warning: ignoring return value of ‘pread’, declared with attribute warn_unused_result [-Wunused-result]
 pread(ftable[i].fd, &c, 1, offset);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 fileio.c:351:4: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
 ftruncate(ftable[i].fd, offset+1);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 fileio.c: In function ‘nb_cleanup’:
 fileio.c:508:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
 asprintf(&dname, "%s/clients/client%d", child->directory, child->id);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 fileio.c:512:2: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
 asprintf(&dname, "%s%s", child->directory, "/clients");
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 fileio.c: In function ‘nb_deltree’:
 fileio.c:533:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
 asprintf(&fname, "%s/%s", dname, de->d_name);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 child.c: In function ‘child_run’:
 child.c:177:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
 asprintf(&child->cname,"client%d", child->id);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 make: *** [Makefile:30: all] Error 1

Complete build log: https://pastebin.ubuntu.com/p/TCnR2SSrWJ/

Sean Feole (sfeole) wrote :

Failed to build on Disco also,

http://10.246.72.4/test-results/4.19.0-8.9-generic/fozzie__4.19.0-8.9__2018-12-07_12-50-00/xfstests/results/xfstests.setup/debug/xfstests.setup.DEBUG.html

2/07 13:03:24 DEBUG| utils:0153| [stdout] checking for systemd... yes
2275. 12/07 13:03:24 DEBUG| utils:0153| [stdout] checking for systemd system unit dir... /lib/systemd/system
2276. 12/07 13:03:24 DEBUG| utils:0153| [stdout] checking for system crontab dir... /etc/cron.d
2277. 12/07 13:03:25 DEBUG| utils:0153| [stdout] checking for library containing blkid_probe_all... no
2278. 12/07 13:03:25 DEBUG| utils:0153| [stdout] checking for blkid_probe_get_topology... no
2279. 12/07 13:03:25 DEBUG| utils:0153| [stdout]
2280. 12/07 13:03:25 DEBUG| utils:0153| [stdout] FATAL ERROR: could not find a valid BLKID header.
2281. 12/07 13:03:25 DEBUG| utils:0153| [stdout] Install the Block device ID development package.
2282. 12/07 13:03:25 ERROR| utils:0153| [stderr] make: *** [Makefile:30: all] Error 1
2283. 12/07 13:03:25 ERROR| test:0414| Exception escaping from test:
2284. Traceback (most recent call last):
2285. File "/home/ubuntu/autotest/client/shared/test.py", line 387, in _exec
2286. *p_args, **p_dargs)
2287. File "/home/ubuntu/autotest/client/shared/utils.py", line 865, in update_version
2288. install(*args, **dargs)
2289. File "/home/ubuntu/autotest/client/tests/xfstests/xfstests.py", line 195, in setup
2290. utils.make()
2291. File "/home/ubuntu/autotest/client/shared/utils.py", line 2056, in make
2292. return system(cmd, timeout=timeout, ignore_status=ignore_status)
2293. File "/home/ubuntu/autotest/client/shared/utils.py", line 1232, in system
2294. verbose=verbose).exit_status
2295. File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run
2296. "Command returned non-zero exit status")
2297. CmdError: Command failed, rc=2, Command returned non-zero exit status
2298. * Command:
2299. make
2300. Exit status: 2
2301. Duration: 92.0437939167
2302.
2303. stdout:
2304. sed -e "s;@DIR@;$(pwd);" < kvm-xfstests/android-xfstests.in > android-xfstests.sh
2305. chmod +x android-xfstests.sh
2306. sed -e "s;@DIR@;$(pwd);" < kvm-xfstests/gce-xfstests.in > gce-xfstests.sh
2307. chmod +x gce-xfstests.sh
2308. sed -e "s;@DIR@;$(pwd);" < kvm-xfstests/kvm-xfstests.in > kvm-xfstests.sh
2309. chmod +x kvm-xfstests.sh
2310. ./get-all
2311. ./build-all
2312. ----------------- 2018-12-07 13:01:53: Starting build of e2fslibs
2313. Generating configuration file for e2fsprogs version 1.41.14
2314. Release date is December, 2010
2315. checking build system type... i686-pc-linux-gnu
2316. checking host system type... i686-pc-linux-gnu
2317. checking for gcc... gcc
2318. checking whether the C compiler works... yes
2319. checking for C compiler default output file name... a.out
2320. checking for suffix of executables...
2321. checking whether we are cross compiling... no
2322. checking for suffix of object files... o
2323. checking whether we are using the GNU C compiler... yes
2324. checking whether gcc accepts -g... yes
2325. checking for gcc option to accept ISO C89... none needed
2326. checking for dlopen in -ldl... yes
2327. checking for gcc... (cached) gcc
2328.

summary: - xfstests failed to build on Cosmic
+ xfstests failed to build on Cosmic & Disco
tags: added: cosmic disco
Changed in ubuntu-kernel-tests:
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Colin Ian King (colin-king)
Colin Ian King (colin-king) wrote :

Get same issue with latest upstream xfstest-bld repo

FATAL ERROR: could not find a valid BLKID header.
Install the Block device ID development package.
make: *** [Makefile:32: all] Error 1

Colin Ian King (colin-king) wrote :
Changed in ubuntu-kernel-tests:
status: In Progress → Fix Committed
Changed in ubuntu-kernel-tests:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers