-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fail to run “make check” #284
Comments
// add a new line // modify static const int64 BenchTime = Second; to // modify printf("%8d\t%10lld ns/op", n, b->dur/n); to // then PASS |
@kr Same issue on OpenSUSE (42.1).
|
Which C compiler are yall using? |
ping @gzliudan @archon810 . is this still valid issue in beanstalkd 1.10? |
Just retested and found the same issue is still present, this time on OpenSUSE Leap 15.1, which is the latest released OpenSUSE.
|
However, no issues in v1.11:
|
@archon810 thank you a lot. That is good news. Looks like 1.11 is better in this regard. We are not going to fix this in 1.10, please use 1.11. If somebody experience problems with compiling 1.11 please open a new ticket. |
[root@ol71-devel beanstalkd]# make check
cc -Wall -Werror -Wformat=2 -g -c -o testheap.o testheap.c
cc -Wall -Werror -Wformat=2 -g -c -o testjobs.o testjobs.c
cc -Wall -Werror -Wformat=2 -g -c -o testserv.o testserv.c
cc -Wall -Werror -Wformat=2 -g -c -o testutil.o testutil.c
ct/gen testheap.o testjobs.o testserv.o testutil.o >ct/_ctcheck.c.part
mv ct/_ctcheck.c.part ct/_ctcheck.c
cc -Wall -Werror -Wformat=2 -g -c -o ct/_ctcheck.o ct/_ctcheck.c
cc -Wall -Werror -Wformat=2 -g -c -o ct/ct.o ct/ct.c
ct/ct.c:27:1: error: initializer element is not constant
static const int64 BenchTime = Second;
^
ct/ct.c: In function ‘nstime’:
ct/ct.c:47:5: error: implicit declaration of function ‘clock_gettime’ [-Werror=implicit-function-declaration]
clock_gettime(CLOCK_MONOTONIC, &t);
^
ct/ct.c:47:19: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
clock_gettime(CLOCK_MONOTONIC, &t);
^
ct/ct.c:47:19: note: each undeclared identifier is reported only once for each function it appears in
ct/ct.c: In function ‘runbench’:
ct/ct.c:419:9: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64’ [-Werror=format=]
printf("%8d\t%10lld ns/op", n, b->dur/n);
^
cc1: all warnings being treated as errors
make: *** [ct/ct.o] Error 1
[root@ol71-devel beanstalkd]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.3/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)
The text was updated successfully, but these errors were encountered: