Announcement

Collapse
No announcement yet.

tiobench install failed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    the log is what i posted before.... in my first and third post

    Comment


    • #12
      Originally posted by misc11 View Post
      the log is what i posted before.... in my first and third post
      Sorry, didn't realize that. Been a few days

      From reviewing what you have there, I am starting to see why you are so lost.

      OK, from my Google-fu I am seeing that the crc32() function is from zlib. Perhaps installing the zlib and zlib-devel packages would be a fix.
      I am generating a crc32 value by using crc32(initial_crc_value,data,data_length); . if I am not using -lz in linker options, I am getting linker error as "undefined reference to crc32". I did...


      I also noticed a Red Hat bugzilla for Fedora, where there was some goofiness that cropped up with package rebuilds, and it turned out to be a borked coreutils package that once fixed fixed all the littany of package build faults. System update?


      On a slight tangential note, have you tried compiling this OUTSIDE of PTS? I don't believe that there should be a difference, but you never know.


      Alternatively, what about forcing a reinstall of the test? You can remove the test located in '~/.phoronix-test-suite/installed-tests/pts' and '~/.phoronix-test-suite/download-cache'. Curious if all of this is over a botched download.

      Comment


      • #13
        hey, thanks for the hints! so thats what i did:

        Perhaps installing the zlib and zlib-devel packages would be a fix.
        ok, both zlib1g and zlib1g-dev are already installed in the latest verion (at least thats the apt-get answer)
        this is what i found about zlib:

        Code:
        misc11@M52 ~ $ apt-cache search ^zlib
        zlib1g - compression library - runtime
        zlib1g-dbg - compression library - development
        zlib1g-dev - compression library - development
        gauche-zlib - zlib binding for Gauche
        libghc-pipes-zlib-dev - Zlib compression and decompression for Pipes streams
        libghc-pipes-zlib-doc - Zlib compression and decompression for Pipes streams; documentation
        libghc-pipes-zlib-prof - Zlib compression and decompression for Pipes streams; profiling libraries
        libzlcore-data - ZLibrary cross-platform development library (support files)
        libzlcore-dev - ZLibrary cross-platform development library (development files)
        libzlcore0.13 - ZLibrary cross-platform development library (shared library)
        libzltext-data - ZLibrary text model/viewer part (support files)
        libzltext-dev - ZLibrary text model/viewer part (development files)
        libzltext0.13 - ZLibrary text model/viewer part (shared library)
        lua-zlib - zlib library for the Lua language
        lua-zlib-dev - zlib development files for the Lua language
        node-zlib - zlib bindings for node.js
        yorick-z - zlib, jpeg and png support for the Yorick language
        zlib-gst - Zlib bindings for GNU Smalltalk
        zlibc - An on-fly auto-uncompressing C library
        zopfli - zlib (gzip, deflate) compatible compressor
        System update?
        it is up to date

        what about forcing a reinstall of the test?
        updated to newset pts version, deleted the files (cache folder was empty). thats the terminal output:

        Code:
        misc11@M52 ~ $ phoronix-test-suite install pts/tiobench
        
        Phoronix Test Suite v7.0.0
        
            To Install: pts/tiobench-1.2.0
        
            Determining File Requirements ...............................................................................
            Searching Download Caches ...................................................................................
        
            1 Test To Install
                1 File To Download [0.03MB]
                1MB Of Disk Space Is Needed
        
            pts/tiobench-1.2.0:
                Test Installation 1 of 1
                1 File Needed [0.03 MB / 1 Minute]
                Downloading: tiobench-0.3.3.tar.gz                                                               [0.03MB]
                    Download Failed: http://softlayer.dl.sourceforge.net/sourceforge/tiobench/tiobench-0.3.3.tar.gz
                    Attempting to download from alternate mirror.
                Downloading: tiobench-0.3.3.tar.gz                                                               [0.03MB]
                Estimated Download Time: 1m .............................................................................
                Installation Size: 0.2 MB
                Installing Test @ 20:18:11
                    The installer exited with a non-zero exit status.
                    ERROR: collect2: error: ld returned 1 exit status
                    LOG: ~/.phoronix-test-suite/installed-tests/pts/tiobench-1.2.0/install-failed.log
        and thats the log (dont know if its different from before):

        Code:
        tiobench-0.3.3/crc32.c
        tiobench-0.3.3/tiotest.c
        tiobench-0.3.3/crc32.h
        tiobench-0.3.3/tiotest.h
        tiobench-0.3.3/Makefile
        tiobench-0.3.3/COPYING
        tiobench-0.3.3/README
        tiobench-0.3.3/TODO
        tiobench-0.3.3/ChangeLog
        tiobench-0.3.3/BUGS
        tiobench-0.3.3/tiobench.pl
        tiobench-0.3.3/tiosum.pl
        tiobench-0.3.3/scripts/
        tiobench-0.3.3/scripts/CVS/
        tiobench-0.3.3/scripts/CVS/Root
        tiobench-0.3.3/scripts/CVS/Repository
        tiobench-0.3.3/scripts/CVS/Entries
        tiobench-0.3.3/scripts/bigbench.sh
        tiobench-0.3.3/scripts/README
        tiobench-0.3.3/scripts/makeimages.pl
        patching file tiotest.c
        Hunk #3 succeeded at 281 with fuzz 1.
        gcc -c -O2 -Wall  tiotest.c -o tiotest.o
        gcc -c -O2 -Wall  crc32.c -o crc32.o
        crc32.c:83:28: warning: 'crctab' is static but used in inline function 'crc32' which is not static
                 crc = (crc << 8) ^ crctab[((crc >> 24) ^ *(cp++)) & 0xFF];
                                    ^
        tiotest.c: In function 'checkIntZero':
        tiotest.c:94:3: warning: format not a string literal and no format arguments [-Wformat-security]
           printf(mess);
           ^
        tiotest.c: In function 'checkLong':
        tiotest.c:104:3: warning: format not a string literal and no format arguments [-Wformat-security]
           printf(mess);
           ^
        tiotest.c: In function 'cleanup_test':
        tiotest.c:386:18: warning: pointer targets in passing argument 1 of 'faligned_free' differ in signedness [-Wpointer-sign]
           faligned_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 faligned_free(caddr_t a, ssize_t size)
                    ^
        tiotest.c: In function 'do_test':
        tiotest.c:555:4: warning: format not a string literal and no format arguments [-Wformat-security]
            fprintf(stderr, debugMessage);
            ^
        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+0x27e): undefined reference to `crc32'
        tiotest.o: In function `do_read_test':
        tiotest.c:(.text+0x2fae): undefined reference to `crc32'
        tiotest.o: In function `do_random_read_test':
        tiotest.c:(.text+0x3345): undefined reference to `crc32'
        collect2: error: ld returned 1 exit status
        Makefile:37: recipe for target 'tiotest' failed
        make: *** [tiotest] Error 1
        have you tried compiling this OUTSIDE of PTS?
        i tried now, i couldnt compile it... (im a noob though, so that could be the problem):

        Code:
        misc11@M52 ~/Downloads/tiobench-0.3.3 $ make
        gcc -c -O2 -Wall  tiotest.c -o tiotest.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 ‘checkIntZero’:
        tiotest.c:94:3: warning: format not a string literal and no format arguments [-Wformat-security]
           printf(mess);
           ^
        tiotest.c: In function ‘checkLong’:
        tiotest.c:104:3: warning: format not a string literal and no format arguments [-Wformat-security]
           printf(mess);
           ^
        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 ‘do_test’:
        tiotest.c:555:4: warning: format not a string literal and no format arguments [-Wformat-security]
            fprintf(stderr, debugMessage);
            ^
        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,
                       ^
        Makefile:34: recipe for target 'tiotest.o' failed
        make: *** [tiotest.o] Error 1

        Comment


        • #14
          Hi,

          I have the same problem on Fedora 25 (x86_64)

          Comment


          • #15
            Sorry I nearly killed my cpu due to failing cooler, so I was stuck to phone for browsing and the sort until today, when I got my goodies from Amazon.

            ldd didnt tell me much:
            [code]
            ldd ./tiotest
            linux-vdso.so.1 => (0x00007fffc7fef000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5712118000)
            libc.so.6 => /lib64/libc.so.6 (0x00007f5711d57000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f5712374000)
            [/code

            But while digging around your output I discovered this:
            https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701420

            I am not sure the proper resolution here. Perhpas Michael has some input on this one. I am thinking that I have a missing library installed that you (well now both of you) don't, since I can compile the PTS version I would wager a guess that the patch is already in there as opposed to the source tarball on the projects site.

            Comment


            • #16
              wow... the bug you found looks totally like its the issue when i try to compile. could an issue with eglibc-2.17 / eglibc-2.13 also cause a problem with the install? the thing is, over 1 year ago i installed tiobench on an older version of linux mint. and everything worked. the benchmark version hasnt changed since then (but OS, kernel, pts version etc). if you tell me how to check which version of eglibc i have installed, then i will check with the version i have now and then i will install the old version of mint and check again. just grasping at straws here.....

              Comment

              Working...
              X