Project

General

Profile

Bug #43460

qa: loff_t type missing for fsync-tester

Added by Patrick Donnelly 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Urgent
Category:
-
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
qa-suite
Labels (FS):
qa
Pull request ID:
Crash signature:

Description

2020-01-03T21:37:04.928 INFO:tasks.workunit.client.0.smithi143.stdout:for d in direct_io fs ; do ( cd $d ; make all ) ; done
2020-01-03T21:37:04.930 INFO:tasks.workunit.client.0.smithi143.stdout:make[1]: Entering directory '/home/ubuntu/cephtest/clone.client.0/qa/workunits/direct_io'
2020-01-03T21:37:04.931 INFO:tasks.workunit.client.0.smithi143.stdout:cc -Wall -Wextra -D_GNU_SOURCE direct_io_test.c -o direct_io_test
2020-01-03T21:37:05.081 INFO:tasks.workunit.client.0.smithi143.stdout:cc -Wall -Wextra -D_GNU_SOURCE test_sync_io.c -o test_sync_io
2020-01-03T21:37:05.125 INFO:tasks.workunit.client.0.smithi143.stdout:cc -Wall -Wextra -D_GNU_SOURCE test_short_dio_read.c -o test_short_dio_read
2020-01-03T21:37:05.159 INFO:tasks.workunit.client.0.smithi143.stdout:make[1]: Leaving directory '/home/ubuntu/cephtest/clone.client.0/qa/workunits/direct_io'
2020-01-03T21:37:05.160 INFO:tasks.workunit.client.0.smithi143.stdout:make[1]: Entering directory '/home/ubuntu/cephtest/clone.client.0/qa/workunits/fs'
2020-01-03T21:37:05.161 INFO:tasks.workunit.client.0.smithi143.stdout:cc -Wall -Wextra -D_GNU_SOURCE test_o_trunc.c -o test_o_trunc
2020-01-03T21:37:05.194 INFO:tasks.workunit.client.0.smithi143.stdout:make[1]: Leaving directory '/home/ubuntu/cephtest/clone.client.0/qa/workunits/fs'
2020-01-03T21:37:05.252 DEBUG:teuthology.orchestra.remote:smithi143:/home/ubuntu/cephtest/workunits.list.client.0 is 4KB
2020-01-03T21:37:05.300 INFO:tasks.workunit:Running workunits matching suites/fsync-tester.sh on client.0...
2020-01-03T21:37:05.300 INFO:tasks.workunit:Running workunit suites/fsync-tester.sh...
2020-01-03T21:37:05.301 INFO:teuthology.orchestra.run.smithi143:workunit test suites/fsync-tester.sh> mkdir -p -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && cd -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && CEPH_CLI_TEST_DUP_COMMAND=1 CEPH_REF=eeb610662741c064ea7f05775b4fbfe1c5b95e83 TESTDIR="/home/ubuntu/cephtest" CEPH_ARGS="--cluster ceph" CEPH_ID="0" PATH=$PATH:/usr/sbin CEPH_BASE=/home/ubuntu/cephtest/clone.client.0 CEPH_ROOT=/home/ubuntu/cephtest/clone.client.0 adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 3h /home/ubuntu/cephtest/clone.client.0/qa/workunits/suites/fsync-tester.sh
2020-01-03T21:37:05.327 INFO:tasks.workunit.client.0.smithi143.stderr:+ set -e
2020-01-03T21:37:05.327 INFO:tasks.workunit.client.0.smithi143.stderr:+ wget http://download.ceph.com/qa/fsync-tester.c
2020-01-03T21:37:05.356 INFO:tasks.workunit.client.0.smithi143.stderr:--2020-01-03 21:37:05--  http://download.ceph.com/qa/fsync-tester.c
2020-01-03T21:37:05.357 INFO:tasks.workunit.client.0.smithi143.stderr:Resolving download.ceph.com (download.ceph.com)... 158.69.68.124, 2607:5300:201:2000::3:58a1
2020-01-03T21:37:05.378 INFO:tasks.workunit.client.0.smithi143.stderr:Connecting to download.ceph.com (download.ceph.com)|158.69.68.124|:80... connected.
2020-01-03T21:37:05.400 INFO:tasks.workunit.client.0.smithi143.stderr:HTTP request sent, awaiting response... 200 OK
2020-01-03T21:37:05.400 INFO:tasks.workunit.client.0.smithi143.stderr:Length: 3024 (3.0K) [application/octet-stream]
2020-01-03T21:37:05.402 INFO:tasks.workunit.client.0.smithi143.stderr:Saving to: ‘fsync-tester.c’
2020-01-03T21:37:05.404 INFO:tasks.workunit.client.0.smithi143.stderr:
2020-01-03T21:37:05.404 INFO:tasks.workunit.client.0.smithi143.stderr:     0K ..                                                    100%  462M=0s
2020-01-03T21:37:05.404 INFO:tasks.workunit.client.0.smithi143.stderr:
2020-01-03T21:37:05.405 INFO:tasks.workunit.client.0.smithi143.stderr:2020-01-03 21:37:05 (462 MB/s) - ‘fsync-tester.c’ saved [3024/3024]
2020-01-03T21:37:05.405 INFO:tasks.workunit.client.0.smithi143.stderr:
2020-01-03T21:37:05.405 INFO:tasks.workunit.client.0.smithi143.stderr:+ gcc fsync-tester.c -o fsync-tester
2020-01-03T21:37:05.422 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:33:31: error: unknown type name ‘loff_t’; did you mean ‘off_t’?
2020-01-03T21:37:05.422 INFO:tasks.workunit.client.0.smithi143.stderr: static void random_io(int fd, loff_t total)
2020-01-03T21:37:05.422 INFO:tasks.workunit.client.0.smithi143.stderr:                               ^~~~~~
2020-01-03T21:37:05.422 INFO:tasks.workunit.client.0.smithi143.stderr:                               off_t
2020-01-03T21:37:05.422 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c: In function ‘main’:
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:68:2: error: unknown type name ‘loff_t’; did you mean ‘off_t’?
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:  loff_t total = ((loff_t)256) * 1024 * 1024;
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:  ^~~~~~
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:  off_t
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:68:19: error: ‘loff_t’ undeclared (first use in this function); did you mean ‘off_t’?
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:  loff_t total = ((loff_t)256) * 1024 * 1024;
2020-01-03T21:37:05.423 INFO:tasks.workunit.client.0.smithi143.stderr:                   ^~~~~~
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:                   off_t
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:68:19: note: each undeclared identifier is reported only once for each function it appears in
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:68:26: error: expected ‘)’ before numeric constant
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:  loff_t total = ((loff_t)256) * 1024 * 1024;
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:                 ~        ^~~
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:                          )
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:69:8: error: expected ‘;’ before ‘cur’
2020-01-03T21:37:05.424 INFO:tasks.workunit.client.0.smithi143.stderr:  loff_t cur = 0;
2020-01-03T21:37:05.425 INFO:tasks.workunit.client.0.smithi143.stderr:        ^~~~
2020-01-03T21:37:05.425 INFO:tasks.workunit.client.0.smithi143.stderr:        ;
2020-01-03T21:37:05.425 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:92:9: error: ‘cur’ undeclared (first use in this function)
2020-01-03T21:37:05.425 INFO:tasks.workunit.client.0.smithi143.stderr:   while(cur < total) {
2020-01-03T21:37:05.425 INFO:tasks.workunit.client.0.smithi143.stderr:         ^~~
2020-01-03T21:37:05.426 INFO:tasks.workunit.client.0.smithi143.stderr:fsync-tester.c:113:3: warning: implicit declaration of function ‘random_io’; did you mean ‘random’? [-Wimplicit-function-declaration]
2020-01-03T21:37:05.426 INFO:tasks.workunit.client.0.smithi143.stderr:   random_io(rand_fd, total);
2020-01-03T21:37:05.426 INFO:tasks.workunit.client.0.smithi143.stderr:   ^~~~~~~~~
2020-01-03T21:37:05.426 INFO:tasks.workunit.client.0.smithi143.stderr:   random
2020-01-03T21:37:05.427 DEBUG:teuthology.orchestra.run:got remote process result: 1

From: /ceph/teuthology-archive/pdonnell-2020-01-03_20:54:58-fs-wip-pdonnell-testing-20200103.181716-distro-basic-smithi/4637085/teuthology.log

History

#1 Updated by Patrick Donnelly 11 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 32480

#2 Updated by Patrick Donnelly 11 months ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF