Package Details: tiobench 0.3.3-2

Git Clone URL: https://aur.archlinux.org/tiobench.git (read-only)
Package Base: tiobench
Description: Portable, fully-threaded I/O benchmark program
Upstream URL: http://sourceforge.net/projects/tiobench/
Licenses: GPL
Submitter: Shanto
Maintainer: None
Last Packager: jbarnett
Votes: 4
Popularity: 0.000142
First Submitted: 2011-09-14 08:19
Last Updated: 2015-06-20 14:33

Latest Comments

jbarnett commented on 2015-06-20 14:33

@NeveHanter

Thanks, I've updated the PKGBUILD to remove that line.

trialuser commented on 2015-06-20 03:25

Thank you, worked!

NeveHanter commented on 2015-06-19 23:21

The problem is that in crc.c there is an inline keyword in crc32 function, it shouldn't be in there.
This makes crc32 available only in current compilation unit so it will be stripped from crc32.o file at the end.

Attaching little patch:

--- crc32.c 2015-06-20 01:19:24.879973435 +0200
+++ crc32.c 2015-06-20 01:19:31.393279156 +0200
@@ -72,7 +72,6 @@
0xA2F33668, 0xBCB4666D, 0xB8757BDA, 0xB5365D03, 0xB1F740B4
};

-inline
unsigned long crc32( const void* buffer,
unsigned long length,
unsigned long crc)

jbarnett commented on 2015-05-31 01:06

Hmm, I'm really not sure what to do here about this, if there is anything I can do on the build side. If anyone can figure this out, please comment here.

trialuser commented on 2015-05-29 16:41

Still no luck, here's build log:

gcc -c -O2 -Wall tiotest.c -o tiotest.o
tiotest.c: In function ‘cleanup_test’:
tiotest.c:386:17: warning: pointer targets in passing argument 1 of ‘aligned_free’ differ in signedness [-Wpointer-sign]
aligned_free( d->threads[i].buffer, d->threads[i].blockSize );
^
tiotest.c:44:12: note: expected ‘caddr_t {aka char *}’ but argument is of type ‘unsigned char *’
static int aligned_free(caddr_t a, ssize_t size)
^
tiotest.c: In function ‘report_random_write_error’:
tiotest.c:888:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t {aka long int}’ [-Wformat=]
"Error in randomwrite, off=%ld, read=%d, seeks=%ld : ",
^
tiotest.c: In function ‘report_read_error’:
tiotest.c:902:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t {aka long int}’ [-Wformat=]
"Error in seek/read, off=%ld, read=%d, seeks=%ld : ",
^
tiotest.c: In function ‘do_write_test’:
tiotest.c:912:17: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
tiotest.c: In function ‘do_random_write_test’:
tiotest.c:1018:18: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
tiotest.c: In function ‘do_read_test’:
tiotest.c:1111:17: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
tiotest.c: In function ‘do_random_read_test’:
tiotest.c:1218:18: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
In file included from tiotest.c:24:0:
tiotest.c: At top level:
crc32.h:22:15: warning: inline function ‘crc32’ declared but never defined
unsigned long crc32( const void* const buffer,
^
gcc -o tiotest tiotest.o crc32.o -lpthread
tiotest.o: In function `initialize_test':
tiotest.c:(.text+0x25e): undefined reference to `crc32'
tiotest.o: In function `do_read_test':
tiotest.c:(.text+0x2cfe): undefined reference to `crc32'
tiotest.o: In function `do_random_read_test':
tiotest.c:(.text+0x302d): undefined reference to `crc32'
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'tiotest' failed
make: *** [tiotest] Error 1
==> ERROR:(B A failure occurred in build().(B
 Aborting...(B

jbarnett commented on 2015-05-28 03:09

Try it now. Had to do with the recent GCC 5.1 update.

trialuser commented on 2015-05-27 23:38

Doesn't compile for me, fails with three undefined references to 'crc32'

jbarnett commented on 2015-05-07 13:23

I took over maintaining the package and have added the fix.

jbarnett commented on 2015-05-07 13:17

Add the following line just before "make" in build():

sed -i 's/aligned_alloc/faligned_alloc/g' tiotest.c

"aligned_alloc" is used by another library somewhere in the installation. This renames it and should allow it to successfully compile.

brando56894 commented on 2014-04-22 00:10

Errors in compilation

==> Starting build()...
gcc -c -O2 -Wall tiotest.c -o tiotest.o
gcc -c -O2 -Wall crc32.c -o crc32.o
tiotest.c:34:15: error: conflicting types for ‘aligned_alloc’
static void * aligned_alloc(ssize_t size)
^
In file included from tiotest.h:36:0,
from tiotest.c:23:
/usr/include/stdlib.h:509:14: note: previous declaration of ‘aligned_alloc’ was here
extern void *aligned_alloc (size_t __alignment, size_t __size)
^
tiotest.c: In function ‘cleanup_test’:
tiotest.c:386:3: warning: pointer targets in passing argument 1 of ‘aligned_free’ differ in signedness [-Wpointer-sign]
aligned_free( d->threads[i].buffer, d->threads[i].blockSize );
^
tiotest.c:44:12: note: expected ‘caddr_t’ but argument is of type ‘unsigned char *’
static int aligned_free(caddr_t a, ssize_t size)
^
tiotest.c: In function ‘report_random_write_error’:
tiotest.c:890:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t’ [-Wformat=]
offset, bytesWritten, wr );
^
tiotest.c: In function ‘report_read_error’:
tiotest.c:904:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘ssize_t’ [-Wformat=]
offset, bytesRead, rd );
^
tiotest.c: In function ‘do_write_test’:
tiotest.c:912:17: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
tiotest.c: In function ‘do_random_write_test’:
tiotest.c:1018:18: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
tiotest.c: In function ‘do_read_test’:
tiotest.c:1111:17: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
tiotest.c: In function ‘do_random_read_test’:
tiotest.c:1218:18: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
char *buf = d->buffer;
^
Makefile:34: recipe for target 'tiotest.o' failed
make: *** [tiotest.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build tiobench.

All comments