lemire / FastPFor

The FastPFOR C++ library: Fast integer compression
Apache License 2.0
873 stars 123 forks source link

Segmentation fault (Core dumped) #19

Closed mounamouna closed 9 years ago

mounamouna commented 9 years ago

I have Ubuntu 13.0 in Vmware player. I installed FastPFor library by executing: Cmake . make After that, I tried to run the example.cpp but this error was occured: Segmentation fault( Core dumped). What is the problem and how can i correct it?????,

searchivarius commented 9 years ago

example.cpp is not an executable.

mounamouna commented 9 years ago

I write in the terminal: make example.cpp the result: Segmentation fault( Core dumped)

searchivarius commented 9 years ago

Please, check the README. You don't need to type ``make example.cpp''.

lemire commented 9 years ago

@mounamouna

I think that you mean that you typed:

        $ cmake .
        $ make
        ./example

and then you got a segmentation fault.

If that is the case, please follow the following instructions:

        $  uname -a
        $ g++ --version
        $ cat /proc/cpuinfo | grep model
        $ cmake .
        $ make
        $ ./unit
        (if unit tests do not complete successfully, please report the error)

If you get a segmentation fault, please type:

        $ gdb ./unit
        gdb> run
        (example will stop at the segmentation fault if any)
        gdb> where
        gdb> list

Then and only then...

        $ gdb ./example
        gdb> run
        (example will stop at the segmentation fault if any)
        gdb> where
        gdb> list

Please provide a complete output including everything you typed and everything that appeared on screen.

mounamouna commented 9 years ago

uname -a Linux ubuntu 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:04:15 UTC 2014 i686 i686 i686 GNU/Linux mouna@ubuntu:~/FastPFor-master$ g++ --version g++ (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mouna@ubuntu:~/FastPFor-master$ cat /proc/cpuinfo | grep model model : 42 model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz mouna@ubuntu:~/FastPFor-master$ cmake . -- TEST TEST -- CMAKE_CXX_COMPILER_ID: GNU -- CMAKE_C_COMPILER: 4.8 -- CXX_COMPILER_VERSION: 4.8 -- SSE 4.2 support detected -- Snappy was not found. codecssnappy and inmemorybenchmarksnappy targets are not available. -- Configuring done -- Generating done -- Build files have been written to: /home/mouna/FastPFor-master mouna@ubuntu:~/FastPFor-master$ make [ 40%] Built target FastPFor [ 46%] Built target benchbitpacking [ 53%] Built target codecs [ 60%] Built target csv2maropu [ 66%] Built target entropy Scanning dependencies of target example [ 73%] Building CXX object CMakeFiles/example.dir/example.cpp.o Linking CXX executable example [ 73%] Built target example [ 80%] Built target gapstats [ 86%] Built target inmemorybenchmark [ 93%] Built target partitionbylength [100%] Built target unit mouna@ubuntu:~/FastPFor-master$ ./unit Segmentation fault (core dumped) mouna@ubuntu:~/FastPFor-master$ ./unit Segmentation fault (core dumped) mouna@ubuntu:~/FastPFor-master$ gdb ./unit GNU gdb (GDB) 7.6.1-ubuntu Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /home/mouna/FastPFor-master/unit...done. (gdb) run Starting program: /home/mouna/FastPFor-master/./unit

Program received signal SIGSEGV, Segmentation fault. 0x08083bca in FastPForLib::VarIntG8IU::VarIntG8IU() () (gdb) where

0 0x08083bca in FastPForLib::VarIntG8IU::VarIntG8IU() ()

1 0x08067291 in FastPForLib::initializefactory() ()

2 0x08067d64 in _GLOBAL__sub_I__ZN10vsencoding10BitsWriterC2EPj ()

3 0x080d9292 in __libc_csu_init ()

4 0xb7cd889a in __libc_start_main (main=0x8064940
, argc=1,

ubp_av=0xbfffec44, init=0x80d9240 <__libc_csu_init>, 
fini=0x80d92b0 <__libc_csu_fini>, rtld_fini=0xb7fed5f0 <_dl_fini>, 
stack_end=0xbfffec3c) at libc-start.c:219

5 0x08067f63 in _start ()

(gdb) list 1 ../sysdeps/i386/dl-procinfo.c: No such file or directory.

lemire commented 9 years ago

@mounamouna

Very useful thank you. This code should run on your machine and you do what is needed. So this looks like a bug. Unfortunately, I cannot reproduce it and nobody else here can either.

We need more information. So the next logical step is to build the software in debug mode. This should help.

We now know that the segmentation fault seems to happen in the constructor of VarIntG8IU(). Let us narrow it down.

Please do the following:

    $ git pull
    (please sync with the very latest version as to enable debugging was difficult previously)
    $ cmake -DCMAKE_BUILD_TYPE=Debug .
    $ make
    $ gdb ./unit
    gdb> run
    (unit will stop at the segmentation fault if any)
    gdb> where
    gdb> list

Please note that your help is necessary at this point.

mounamouna commented 9 years ago

git pull fatal: Not a git repository (or any of the parent directories): .git mouna@ubuntu:~$ cd FastPFor-master mouna@ubuntu:~/FastPFor-master$ cmake -DCMAKE_BUILD_TYPE=Debug -- TEST TEST -- CMAKE_CXX_COMPILER_ID: GNU -- CMAKE_C_COMPILER: 4.8 -- CXX_COMPILER_VERSION: 4.8 -- SSE 4.2 support detected -- Snappy was not found. codecssnappy and inmemorybenchmarksnappy targets are not available. -- Configuring done -- Generating done -- Build files have been written to: /home/mouna/FastPFor-master mouna@ubuntu:~/FastPFor-master$ make [ 40%] Built target FastPFor [ 46%] Built target benchbitpacking [ 53%] Built target codecs [ 60%] Built target csv2maropu [ 66%] Built target entropy [ 73%] Built target example [ 80%] Built target gapstats [ 86%] Built target inmemorybenchmark [ 93%] Built target partitionbylength [100%] Built target unit mouna@ubuntu:~/FastPFor-master$ gdb ./unit GNU gdb (GDB) 7.6.1-ubuntu Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /home/mouna/FastPFor-master/unit...done. (gdb) run Starting program: /home/mouna/FastPFor-master/./unit

Program received signal SIGSEGV, Segmentation fault. 0x08083bca in FastPForLib::VarIntG8IU::VarIntG8IU() () (gdb) where

0 0x08083bca in FastPForLib::VarIntG8IU::VarIntG8IU() ()

1 0x08067291 in FastPForLib::initializefactory() ()

2 0x08067d64 in _GLOBAL__sub_I__ZN10vsencoding10BitsWriterC2EPj ()

3 0x080d9292 in __libc_csu_init ()

4 0xb7cd889a in __libc_start_main (main=0x8064940
, argc=1,

ubp_av=0xbfffec44, init=0x80d9240 <__libc_csu_init>, 
fini=0x80d92b0 <__libc_csu_fini>, rtld_fini=0xb7fed5f0 <_dl_fini>, 
stack_end=0xbfffec3c) at libc-start.c:219

5 0x08067f63 in _start ()

(gdb) list 1 ../sysdeps/i386/dl-procinfo.c: No such file or directory.

lemire commented 9 years ago

@mounamouna

Normally one acquires the code from this project for GitHub. As things stand, it is difficult to tell which code you are testing.

Please recover the latest version of the code like so:

      $ git clone https://github.com/lemire/FastPFor.git
      $ cd FastPFor
      $ cmake -DCMAKE_BUILD_TYPE=Debug .
      $ make
      $ gdb ./unit
      gdb> run
           (unit will stop at the segmentation fault if any)
      gdb> where
      gdb> list

and work from there. By issuing a "git pull" in the future will allow you to recover the latest version of the code from GitHub.

As a further sanity test, please run...

      $ ulimit -s
      the answer should 8192
mounamouna commented 9 years ago

Sir , this error was appeared: mouna@ubuntu:~/FastPFor$ make Scanning dependencies of target FastPFor [ 5%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o [ 11%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o [ 17%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o [ 23%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o [ 29%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o [ 35%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o Linking CXX static library libFastPFor.a [ 35%] Built target FastPFor Scanning dependencies of target benchbitpacking [ 41%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o Linking CXX executable benchbitpacking [ 41%] Built target benchbitpacking Scanning dependencies of target codecs [ 47%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o In file included from /home/mouna/FastPFor/headers/codecfactory.h:13:0, from /home/mouna/FastPFor/src/codecs.cpp:15: /home/mouna/FastPFor/headers/vsencoding.h: In member function ‘const uint32_t* vsencoding::VSEncodingBlocks::decodeVS(uint32_t, const uint32t, uint32t, uint32t)’: /home/mouna/FastPFor/headers/vsencoding.h:636:48: error: ‘asm’ operand has impossible constraints /__vseblockscopy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:640:85: error: ‘asm’ operand has impossible constraints / FIXME: Is it better to do memcpy() firstly? /__vseblocks_zero32(out);

     ^

/home/mouna/FastPFor/headers/vsencoding.h:650:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:654:36: error: ‘asm’ operand has impossible constraints __vseblocks_zero32(out); ^ /home/mouna/FastPFor/headers/vsencoding.h:664:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:668:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ /home/mouna/FastPFor/headers/vsencoding.h:677:45: error: ‘asm’ operand has impossible constraints __vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:681:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ make[2]: * [CMakeFiles/codecs.dir/src/codecs.cpp.o] Error 1 make[1]: * [CMakeFiles/codecs.dir/all] Error 2 make: *\ [all] Error 2

2015-04-17 14:41 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

Normally one acquires the code from this project for GitHub. As things stand, it is difficult to tell which code you are testing.

Please recover the latest version of the code like so:

  $ git clone https://github.com/lemire/FastPFor.git
  $ cd FastPFor
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make
  $ gdb ./unit
  gdb> run
       (unit will stop at the segmentation fault if any)
  gdb> where
  gdb> list

and work from there. By issuing a "git pull" in the future will allow you to recover the latest version of the code from GitHub.

As a further sanity test, please run...

  $ ulimit -s
  the answer should 8192

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-93978217.

mounamouna commented 9 years ago

Please Sir, Can you help me! what is the problem ?? How can i correct this error : /home/mouna/FastPFor/headers/vsencoding.h:636:48: error: ‘asm’ operand has impossible constraints ??? It's urgent ? Thanks in advance.

2015-04-25 19:32 GMT+02:00 Mouna Gassara gas.mouna@gmail.com:

Sir , this error was appeared: mouna@ubuntu:~/FastPFor$ make Scanning dependencies of target FastPFor [ 5%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o [ 11%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o [ 17%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o [ 23%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o [ 29%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o [ 35%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o Linking CXX static library libFastPFor.a [ 35%] Built target FastPFor Scanning dependencies of target benchbitpacking [ 41%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o Linking CXX executable benchbitpacking [ 41%] Built target benchbitpacking Scanning dependencies of target codecs [ 47%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o In file included from /home/mouna/FastPFor/headers/codecfactory.h:13:0, from /home/mouna/FastPFor/src/codecs.cpp:15: /home/mouna/FastPFor/headers/vsencoding.h: In member function ‘const uint32_t* vsencoding::VSEncodingBlocks::decodeVS(uint32_t, const uint32t, uint32t, uint32t)’: /home/mouna/FastPFor/headers/vsencoding.h:636:48: error: ‘asm’ operand has impossible constraints /__vseblockscopy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:640:85: error: ‘asm’ operand has impossible constraints / FIXME: Is it better to do memcpy() firstly? /__vseblocks_zero32(out);

       ^

/home/mouna/FastPFor/headers/vsencoding.h:650:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:654:36: error: ‘asm’ operand has impossible constraints __vseblocks_zero32(out); ^ /home/mouna/FastPFor/headers/vsencoding.h:664:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:668:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ /home/mouna/FastPFor/headers/vsencoding.h:677:45: error: ‘asm’ operand has impossible constraints __vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:681:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ make[2]: * [CMakeFiles/codecs.dir/src/codecs.cpp.o] Error 1 make[1]: * [CMakeFiles/codecs.dir/all] Error 2 make: *\ [all] Error 2

2015-04-17 14:41 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

Normally one acquires the code from this project for GitHub. As things stand, it is difficult to tell which code you are testing.

Please recover the latest version of the code like so:

  $ git clone https://github.com/lemire/FastPFor.git
  $ cd FastPFor
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make
  $ gdb ./unit
  gdb> run
       (unit will stop at the segmentation fault if any)
  gdb> where
  gdb> list

and work from there. By issuing a "git pull" in the future will allow you to recover the latest version of the code from GitHub.

As a further sanity test, please run...

  $ ulimit -s
  the answer should 8192

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-93978217.

mounamouna commented 9 years ago

I find that my gcc version (4.8) has a problem with these instructions :

define **vseblocks_copy16(src, dest) \

__asm volatile**( \ "movdqu %4, %%xmm0\n\t" \ "movdqu %5, %%xmm1\n\t" \ "movdqu %6, %%xmm2\n\t" \ "movdqu %7, %%xmm3\n\t" \ "movdqu %%xmm0, %0\n\t" \ "movdqu %%xmm1, %1\n\t" \ "movdqu %%xmm2, %2\n\t" \ "movdqu %%xmm3, %3\n\t" \ :"=m" (dest[0]), "=m" (dest[4]), "=m" (dest[8]), "=m" (dest[12]) \ :"m" (src[0]), "m" (src[4]), "m" (src[8]), "m" (src[12]) \ :"memory", "%xmm0", "%xmm1", "%xmm2", "%xmm3")

define **vseblocks_zero32(dest) \

__asm volatile**( \ "pxor %%xmm0, %%xmm0\n\t" \ "movdqu %%xmm0, %0\n\t" \ "movdqu %%xmm0, %1\n\t" \ "movdqu %%xmm0, %2\n\t" \ "movdqu %%xmm0, %3\n\t" \ "movdqu %%xmm0, %4\n\t" \ "movdqu %%xmm0, %5\n\t" \ "movdqu %%xmm0, %6\n\t" \ "movdqu %%xmm0, %7\n\t" \ :"=m" (dest[0]), "=m" (dest[4]), "=m" (dest[8]), "=m" (dest[12]) , \ "=m" (dest[16]), "=m" (dest[20]), "=m" (dest[24]), "=m" (dest[28]) \ ::"memory", "%xmm0")

endif

How can I modify this part of code for adapting it to gcc-4.8 ?

2015-04-26 9:58 GMT+02:00 Mouna Gassara gas.mouna@gmail.com:

Please Sir, Can you help me! what is the problem ?? How can i correct this error : /home/mouna/FastPFor/headers/vsencoding.h:636:48: error: ‘asm’ operand has impossible constraints ??? It's urgent ? Thanks in advance.

2015-04-25 19:32 GMT+02:00 Mouna Gassara gas.mouna@gmail.com:

Sir , this error was appeared: mouna@ubuntu:~/FastPFor$ make Scanning dependencies of target FastPFor [ 5%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o [ 11%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o [ 17%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o [ 23%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o [ 29%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o [ 35%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o Linking CXX static library libFastPFor.a [ 35%] Built target FastPFor Scanning dependencies of target benchbitpacking [ 41%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o Linking CXX executable benchbitpacking [ 41%] Built target benchbitpacking Scanning dependencies of target codecs [ 47%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o In file included from /home/mouna/FastPFor/headers/codecfactory.h:13:0, from /home/mouna/FastPFor/src/codecs.cpp:15: /home/mouna/FastPFor/headers/vsencoding.h: In member function ‘const uint32_t* vsencoding::VSEncodingBlocks::decodeVS(uint32_t, const uint32t, uint32t, uint32t)’: /home/mouna/FastPFor/headers/vsencoding.h:636:48: error: ‘asm’ operand has impossible constraints /__vseblockscopy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:640:85: error: ‘asm’ operand has impossible constraints / FIXME: Is it better to do memcpy() firstly? /__vseblocks_zero32(out);

       ^

/home/mouna/FastPFor/headers/vsencoding.h:650:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:654:36: error: ‘asm’ operand has impossible constraints __vseblocks_zero32(out); ^ /home/mouna/FastPFor/headers/vsencoding.h:664:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:668:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ /home/mouna/FastPFor/headers/vsencoding.h:677:45: error: ‘asm’ operand has impossible constraints __vseblocks_copy16(pblk[B], out); ^ /home/mouna/FastPFor/headers/vsencoding.h:681:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ make[2]: * [CMakeFiles/codecs.dir/src/codecs.cpp.o] Error 1 make[1]: * [CMakeFiles/codecs.dir/all] Error 2 make: *\ [all] Error 2

2015-04-17 14:41 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

Normally one acquires the code from this project for GitHub. As things stand, it is difficult to tell which code you are testing.

Please recover the latest version of the code like so:

  $ git clone https://github.com/lemire/FastPFor.git
  $ cd FastPFor
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make
  $ gdb ./unit
  gdb> run
       (unit will stop at the segmentation fault if any)
  gdb> where
  gdb> list

and work from there. By issuing a "git pull" in the future will allow you to recover the latest version of the code from GitHub.

As a further sanity test, please run...

  $ ulimit -s
  the answer should 8192

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-93978217.

lemire commented 9 years ago

@mounamouna

You have not commented on this change in the nature of the problem. It would be nice if you could explain this change: how could the code compile before? That seems a bit suspicious.

You are using GCC 4.8 under Linux. We are also using GCC 4.8 and this code is fine. This is a conventional piece of assembly that abides by the specification, as far as I can tell.

Please give me a complete print out of everything you did from the beginning as I requested: (Please, you need to give us a complete print out...)

      $ mkdir newtmp
      $ cd newtmp
      $ uname -a
      $ gcc --version
      $ ulimit -s
      (the answer should 8192)
      $ git clone https://github.com/lemire/FastPFor.git
      $ cd FastPFor
      $ cmake -DCMAKE_BUILD_TYPE=Debug .
      $ make VERBOSE=1
      $ gdb ./unit
      gdb> run
           (unit will stop at the segmentation fault if any)
      gdb> where
      gdb> list

The output should be as follows... notice that in this particular instance, I am using GCC 4.8 and the code builds and run just fine:

$ mkdir newtmp
$ cd newtmp/
/newtmp$ uname -a
Linux haswell 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
/newtmp$  gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
/newtmp$  ulimit -s
8192
/newtmp$ git clone https://github.com/lemire/FastPFor.git
Cloning into 'FastPFor'...
remote: Counting objects: 1586, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 1586 (delta 1), reused 0 (delta 0), pack-reused 1580
Receiving objects: 100% (1586/1586), 720.98 KiB | 0 bytes/s, done.
Resolving deltas: 100% (971/971), done.
Checking connectivity... done.
/newtmp$ cd FastPFor
/newtmp/FastPFor$ cmake -DCMAKE_BUILD_TYPE=Debug .
-- CMAKE_BUILD_TYPE: Debug
-- The CXX compiler identification is GNU 4.8.2
-- The C compiler identification is GNU 4.8.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- TEST TEST
-- Performing Test SUPPORT_SSE42
-- Performing Test SUPPORT_SSE42 - Success
-- Performing Test SUPPORT_AVX
-- Performing Test SUPPORT_AVX - Success
-- Performing Test SUPPORT_AVX2
-- Performing Test SUPPORT_AVX2 - Success
-- CMAKE_CXX_COMPILER_ID: GNU
-- CMAKE_C_COMPILER: 4.8
-- CXX_COMPILER_VERSION: 4.8
-- SSE 4.2 support detected
-- Snappy was not found. codecssnappy and inmemorybenchmarksnappy targets are not available.
-- Configuring done
-- Generating done
-- Build files have been written to: newtmp/FastPFor
/newtmp/FastPFor$ make VERBOSE=1
/usr/bin/cmake -Hnewtmp/FastPFor -Bnewtmp/FastPFor --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start newtmp/FastPFor/CMakeFiles newtmp/FastPFor/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `newtmp/FastPFor'
make -f CMakeFiles/FastPFor.dir/build.make CMakeFiles/FastPFor.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/FastPFor.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/FastPFor.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/FastPFor.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/FastPFor.dir/depend.internal".
Scanning dependencies of target FastPFor
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/FastPFor.dir/build.make CMakeFiles/FastPFor.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 1
[  6%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o -c newtmp/FastPFor/src/bitpacking.cpp
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 2
[ 13%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o -c newtmp/FastPFor/src/bitpackingaligned.cpp
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 3
[ 20%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o -c newtmp/FastPFor/src/bitpackingunaligned.cpp
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 4
[ 26%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o -c newtmp/FastPFor/src/horizontalbitpacking.cpp
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 5
[ 33%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o -c newtmp/FastPFor/src/simdunalignedbitpacking.cpp
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 6
[ 40%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o -c newtmp/FastPFor/src/simdbitpacking.cpp
Linking CXX static library libFastPFor.a
/usr/bin/cmake -P CMakeFiles/FastPFor.dir/cmake_clean_target.cmake
/usr/bin/cmake -E cmake_link_script CMakeFiles/FastPFor.dir/link.txt --verbose=1
/usr/bin/ar cr libFastPFor.a  CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o
/usr/bin/ranlib libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  1 2 3 4 5 6
[ 40%] Built target FastPFor
make -f CMakeFiles/benchbitpacking.dir/build.make CMakeFiles/benchbitpacking.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/depend.internal".
Scanning dependencies of target benchbitpacking
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/benchbitpacking.dir/build.make CMakeFiles/benchbitpacking.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 7
[ 46%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o -c newtmp/FastPFor/src/benchbitpacking.cpp
Linking CXX executable benchbitpacking
/usr/bin/cmake -E cmake_link_script CMakeFiles/benchbitpacking.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o  -o benchbitpacking -rdynamic libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  7
[ 46%] Built target benchbitpacking
make -f CMakeFiles/codecs.dir/build.make CMakeFiles/codecs.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/codecs.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/codecs.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/codecs.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/codecs.dir/depend.internal".
Scanning dependencies of target codecs
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/codecs.dir/build.make CMakeFiles/codecs.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 8
[ 53%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/codecs.dir/src/codecs.cpp.o -c newtmp/FastPFor/src/codecs.cpp
Linking CXX executable codecs
/usr/bin/cmake -E cmake_link_script CMakeFiles/codecs.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/codecs.dir/src/codecs.cpp.o  -o codecs -rdynamic libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  8
[ 53%] Built target codecs
make -f CMakeFiles/csv2maropu.dir/build.make CMakeFiles/csv2maropu.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/csv2maropu.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/csv2maropu.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/csv2maropu.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/csv2maropu.dir/depend.internal".
Scanning dependencies of target csv2maropu
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/csv2maropu.dir/build.make CMakeFiles/csv2maropu.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 9
[ 60%] Building CXX object CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o -c newtmp/FastPFor/src/csv2maropu.cpp
Linking CXX executable csv2maropu
/usr/bin/cmake -E cmake_link_script CMakeFiles/csv2maropu.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o  -o csv2maropu -rdynamic
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  9
[ 60%] Built target csv2maropu
make -f CMakeFiles/entropy.dir/build.make CMakeFiles/entropy.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/entropy.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/entropy.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/entropy.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/entropy.dir/depend.internal".
Scanning dependencies of target entropy
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/entropy.dir/build.make CMakeFiles/entropy.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 10
[ 66%] Building CXX object CMakeFiles/entropy.dir/src/entropy.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/entropy.dir/src/entropy.cpp.o -c newtmp/FastPFor/src/entropy.cpp
Linking CXX executable entropy
/usr/bin/cmake -E cmake_link_script CMakeFiles/entropy.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/entropy.dir/src/entropy.cpp.o  -o entropy -rdynamic libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  10
[ 66%] Built target entropy
make -f CMakeFiles/example.dir/build.make CMakeFiles/example.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/example.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/example.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/example.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/example.dir/depend.internal".
Scanning dependencies of target example
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/example.dir/build.make CMakeFiles/example.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 11
[ 73%] Building CXX object CMakeFiles/example.dir/example.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/example.dir/example.cpp.o -c newtmp/FastPFor/example.cpp
Linking CXX executable example
/usr/bin/cmake -E cmake_link_script CMakeFiles/example.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/example.dir/example.cpp.o  -o example -rdynamic libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  11
[ 73%] Built target example
make -f CMakeFiles/gapstats.dir/build.make CMakeFiles/gapstats.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/gapstats.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/gapstats.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/gapstats.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/gapstats.dir/depend.internal".
Scanning dependencies of target gapstats
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/gapstats.dir/build.make CMakeFiles/gapstats.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 12
[ 80%] Building CXX object CMakeFiles/gapstats.dir/src/gapstats.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/gapstats.dir/src/gapstats.cpp.o -c newtmp/FastPFor/src/gapstats.cpp
Linking CXX executable gapstats
/usr/bin/cmake -E cmake_link_script CMakeFiles/gapstats.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/gapstats.dir/src/gapstats.cpp.o  -o gapstats -rdynamic
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  12
[ 80%] Built target gapstats
make -f CMakeFiles/inmemorybenchmark.dir/build.make CMakeFiles/inmemorybenchmark.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/depend.internal".
Scanning dependencies of target inmemorybenchmark
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/inmemorybenchmark.dir/build.make CMakeFiles/inmemorybenchmark.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 13
[ 86%] Building CXX object CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o -c newtmp/FastPFor/src/inmemorybenchmark.cpp
Linking CXX executable inmemorybenchmark
/usr/bin/cmake -E cmake_link_script CMakeFiles/inmemorybenchmark.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o  -o inmemorybenchmark -rdynamic libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  13
[ 86%] Built target inmemorybenchmark
make -f CMakeFiles/partitionbylength.dir/build.make CMakeFiles/partitionbylength.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/partitionbylength.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/partitionbylength.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/partitionbylength.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/partitionbylength.dir/depend.internal".
Scanning dependencies of target partitionbylength
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/partitionbylength.dir/build.make CMakeFiles/partitionbylength.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 14
[ 93%] Building CXX object CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o -c newtmp/FastPFor/src/partitionbylength.cpp
Linking CXX executable partitionbylength
/usr/bin/cmake -E cmake_link_script CMakeFiles/partitionbylength.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o  -o partitionbylength -rdynamic
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  14
[ 93%] Built target partitionbylength
make -f CMakeFiles/unit.dir/build.make CMakeFiles/unit.dir/depend
make[2]: Entering directory `newtmp/FastPFor'
cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/unit.dir/DependInfo.cmake --color=
Dependee "newtmp/FastPFor/CMakeFiles/unit.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/unit.dir/depend.internal".
Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/unit.dir/depend.internal".
Scanning dependencies of target unit
make[2]: Leaving directory `newtmp/FastPFor'
make -f CMakeFiles/unit.dir/build.make CMakeFiles/unit.dir/build
make[2]: Entering directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 15
[100%] Building CXX object CMakeFiles/unit.dir/src/unit.cpp.o
/usr/bin/c++    -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers    -o CMakeFiles/unit.dir/src/unit.cpp.o -c newtmp/FastPFor/src/unit.cpp
Linking CXX executable unit
/usr/bin/cmake -E cmake_link_script CMakeFiles/unit.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wcast-align -ggdb  -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed    CMakeFiles/unit.dir/src/unit.cpp.o  -o unit -rdynamic libFastPFor.a
make[2]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles  15
[100%] Built target unit
make[1]: Leaving directory `newtmp/FastPFor'
/usr/bin/cmake -E cmake_progress_start newtmp/FastPFor/CMakeFiles 0
/newtmp/FastPFor$ gdb ./unit
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./unit...done.
(gdb) run
Starting program: newtmp/FastPFor/unit
testing... b = 0
testing... b = 1
testing... b = 2
testing... b = 3
testing... b = 4
testing... b = 5
testing... b = 6
testing... b = 7
testing... b = 8
testing... b = 9
testing... b = 10
testing... b = 11
testing... b = 12
testing... b = 13
testing... b = 14
testing... b = 15
testing... b = 16
testing... b = 17
testing... b = 18
testing... b = 19
testing... b = 20
testing... b = 21
testing... b = 22
testing... b = 23
testing... b = 24
testing... b = 25
testing... b = 26
testing... b = 27
testing... b = 28
 testing large zipfian arrays...

length = 32
BP32+VariableByte encoding ... decoding ... ok!
JustCopy encoding ... decoding ... ok!
FastBinaryPacking16+VariableByte encoding ... decoding ... ok!
FastBinaryPacking32+VariableByte encoding ... decoding ... ok!
FastBinaryPacking8+VariableByte encoding ... decoding ... ok!
FastPFor128+VariableByte encoding ... decoding ... ok!
FastPFor256+VariableByte encoding ... decoding ... ok!
NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
PFor+VariableByte encoding ... decoding ... ok!
PFor2008+VariableByte encoding ... decoding ... ok!
SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!
SIMDFastPFor128+VariableByte encoding ... decoding ... ok!
SIMDFastPFor256+VariableByte encoding ... decoding ... ok!
SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDPFor+VariableByte encoding ... decoding ... ok!
SIMDSimplePFor+VariableByte encoding ... decoding ... ok!
Simple8b encoding ... decoding ... ok!
Simple8b_RLE encoding ... decoding ... ok!
SimplePFor+VariableByte encoding ... decoding ... ok!
VariableByte encoding ... decoding ... ok!
VarIntG8IU encoding ... decoding ... ok!
varintgb encoding ... decoding ... ok!
VByte encoding ... decoding ... ok!
VSEncoding encoding ... decoding ... ok!

length = 1024
BP32+VariableByte encoding ... decoding ... ok!
JustCopy encoding ... decoding ... ok!
FastBinaryPacking16+VariableByte encoding ... decoding ... ok!
FastBinaryPacking32+VariableByte encoding ... decoding ... ok!
FastBinaryPacking8+VariableByte encoding ... decoding ... ok!
FastPFor128+VariableByte encoding ... decoding ... ok!
FastPFor256+VariableByte encoding ... decoding ... ok!
NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
PFor+VariableByte encoding ... decoding ... ok!
PFor2008+VariableByte encoding ... decoding ... ok!
SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!
SIMDFastPFor128+VariableByte encoding ... decoding ... ok!
SIMDFastPFor256+VariableByte encoding ... decoding ... ok!
SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDPFor+VariableByte encoding ... decoding ... ok!
SIMDSimplePFor+VariableByte encoding ... decoding ... ok!
Simple8b encoding ... decoding ... ok!
Simple8b_RLE encoding ... decoding ... ok!
SimplePFor+VariableByte encoding ... decoding ... ok!
VariableByte encoding ... decoding ... ok!
VarIntG8IU encoding ... decoding ... ok!
varintgb encoding ... decoding ... ok!
VByte encoding ... decoding ... ok!
VSEncoding encoding ... decoding ... ok!

length = 32768
BP32+VariableByte encoding ... decoding ... ok!
JustCopy encoding ... decoding ... ok!
FastBinaryPacking16+VariableByte encoding ... decoding ... ok!
FastBinaryPacking32+VariableByte encoding ... decoding ... ok!
FastBinaryPacking8+VariableByte encoding ... decoding ... ok!
FastPFor128+VariableByte encoding ... decoding ... ok!
FastPFor256+VariableByte encoding ... decoding ... ok!
NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
PFor+VariableByte encoding ... decoding ... ok!
PFor2008+VariableByte encoding ... decoding ... ok!
SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!
SIMDFastPFor128+VariableByte encoding ... decoding ... ok!
SIMDFastPFor256+VariableByte encoding ... decoding ... ok!
SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDPFor+VariableByte encoding ... decoding ... ok!
SIMDSimplePFor+VariableByte encoding ... decoding ... ok!
Simple8b encoding ... decoding ... ok!
Simple8b_RLE encoding ... decoding ... ok!
SimplePFor+VariableByte encoding ... decoding ... ok!
VariableByte encoding ... decoding ... ok!
VarIntG8IU encoding ... decoding ... ok!
varintgb encoding ... decoding ... ok!
VByte encoding ... decoding ... ok!
VSEncoding encoding ... decoding ... ok!

length = 1048576
BP32+VariableByte encoding ... decoding ... ok!
JustCopy encoding ... decoding ... ok!
FastBinaryPacking16+VariableByte encoding ... decoding ... ok!
FastBinaryPacking32+VariableByte encoding ... decoding ... ok!
FastBinaryPacking8+VariableByte encoding ... decoding ... ok!
FastPFor128+VariableByte encoding ... decoding ... ok!
FastPFor256+VariableByte encoding ... decoding ... ok!
NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
PFor+VariableByte encoding ... decoding ... ok!
PFor2008+VariableByte encoding ... decoding ... ok!
SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!
SIMDFastPFor128+VariableByte encoding ... decoding ... ok!
SIMDFastPFor256+VariableByte encoding ... decoding ... ok!
SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!
SIMDPFor+VariableByte encoding ... decoding ... ok!
SIMDSimplePFor+VariableByte encoding ... decoding ... ok!
Simple8b encoding ... decoding ... ok!
Simple8b_RLE encoding ... decoding ... ok!
SimplePFor+VariableByte encoding ... decoding ... ok!
VariableByte encoding ... decoding ... ok!
VarIntG8IU encoding ... decoding ... ok!
varintgb encoding ... decoding ... ok!
VByte encoding ... decoding ... ok!
VSEncoding encoding ... decoding ... ok!
mounamouna commented 9 years ago

mouna@ubuntu:~$ mkdir newtmp mouna@ubuntu:~$ cd newtmp mouna@ubuntu:~/newtmp$ uname -a Linux ubuntu 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:04:15 UTC 2014 i686 i686 i686 GNU/Linux mouna@ubuntu:~/newtmp$ gcc -version gcc: error: unrecognized command line option ‘-version’ gcc: fatal error: no input files compilation terminated. mouna@ubuntu:~/newtmp$ gcc --version gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mouna@ubuntu:~/newtmp$ ulimit -s 8192 mouna@ubuntu:~/newtmp$ git clone https://github.com/lemire/FastPFor.git Cloning into 'FastPFor'... remote: Counting objects: 1586, done. remote: Compressing objects: 100% (6/6), done. remote: Total 1586 (delta 1), reused 0 (delta 0), pack-reused 1580 Receiving objects: 100% (1586/1586), 720.98 KiB | 83.00 KiB/s, done. Resolving deltas: 100% (971/971), done. Checking connectivity... done mouna@ubuntu:~/newtmp$ cd FastPFor mouna@ubuntu:~/newtmp/FastPFor$ cmake -DCMAKE_BUILD_TYPE=Debug . -- CMAKE_BUILD_TYPE: Debug -- The CXX compiler identification is GNU 4.8.1 -- The C compiler identification is GNU 4.8.1 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- TEST TEST -- Performing Test SUPPORT_SSE42 -- Performing Test SUPPORT_SSE42 - Success -- Performing Test SUPPORT_AVX -- Performing Test SUPPORT_AVX - Success -- Performing Test SUPPORT_AVX2 -- Performing Test SUPPORT_AVX2 - Success -- CMAKE_CXX_COMPILER_ID: GNU -- CMAKE_C_COMPILER: 4.8 -- CXX_COMPILER_VERSION: 4.8 -- SSE 4.2 support detected -- Snappy was found. Building additional targets codecssnappy and inmemorybenchmarksnappy. -- Configuring done -- Generating done -- Build files have been written to: /home/mouna/newtmp/FastPFor mouna@ubuntu:~/newtmp/FastPFor$ make VERBOSE=1 /usr/bin/cmake -H/home/mouna/newtmp/FastPFor -B/home/mouna/newtmp/FastPFor --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/mouna/newtmp/FastPFor/CMakeFiles /home/mouna/newtmp/FastPFor/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory /home/mouna/newtmp/FastPFor' make -f CMakeFiles/FastPFor.dir/build.make CMakeFiles/FastPFor.dir/depend make[2]: Entering directory/home/mouna/newtmp/FastPFor' cd /home/mouna/newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor/CMakeFiles/FastPFor.dir/DependInfo.cmake --color= Dependee "/home/mouna/newtmp/FastPFor/CMakeFiles/FastPFor.dir/DependInfo.cmake" is newer than depender "/home/mouna/newtmp/FastPFor/CMakeFiles/FastPFor.dir/depend.internal". Dependee "/home/mouna/newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/mouna/newtmp/FastPFor/CMakeFiles/FastPFor.dir/depend.internal". Scanning dependencies of target FastPFor make[2]: Leaving directory /home/mouna/newtmp/FastPFor' make -f CMakeFiles/FastPFor.dir/build.make CMakeFiles/FastPFor.dir/build make[2]: Entering directory/home/mouna/newtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 1 [ 5%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o -c /home/mouna/newtmp/FastPFor/src/bitpacking.cpp /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 2 [ 11%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o -c /home/mouna/newtmp/FastPFor/src/bitpackingaligned.cpp /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 3 [ 17%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o -c /home/mouna/newtmp/FastPFor/src/bitpackingunaligned.cpp /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 4 [ 23%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o -c /home/mouna/newtmp/FastPFor/src/horizontalbitpacking.cpp /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 5 [ 29%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o -c /home/mouna/newtmp/FastPFor/src/simdunalignedbitpacking.cpp /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 6 [ 35%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o -c /home/mouna/newtmp/FastPFor/src/simdbitpacking.cpp Linking CXX static library libFastPFor.a /usr/bin/cmake -P CMakeFiles/FastPFor.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/FastPFor.dir/link.txt --verbose=1 /usr/bin/ar cr libFastPFor.a CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o /usr/bin/ranlib libFastPFor.a make[2]: Leaving directory /home/mouna/newtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 1 2 3 4 5 6 [ 35%] Built target FastPFor make -f CMakeFiles/benchbitpacking.dir/build.make CMakeFiles/benchbitpacking.dir/depend make[2]: Entering directory/home/mouna/newtmp/FastPFor' cd /home/mouna/newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/DependInfo.cmake --color= Dependee "/home/mouna/newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/DependInfo.cmake" is newer than depender "/home/mouna/newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/depend.internal". Dependee "/home/mouna/newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/mouna/newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/depend.internal". Scanning dependencies of target benchbitpacking make[2]: Leaving directory /home/mouna/newtmp/FastPFor' make -f CMakeFiles/benchbitpacking.dir/build.make CMakeFiles/benchbitpacking.dir/build make[2]: Entering directory/home/mouna/newtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 7 [ 41%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o -c /home/mouna/newtmp/FastPFor/src/benchbitpacking.cpp Linking CXX executable benchbitpacking /usr/bin/cmake -E cmake_link_script CMakeFiles/benchbitpacking.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o -o benchbitpacking -rdynamic libFastPFor.a make[2]: Leaving directory /home/mouna/newtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 7 [ 41%] Built target benchbitpacking make -f CMakeFiles/codecs.dir/build.make CMakeFiles/codecs.dir/depend make[2]: Entering directory/home/mouna/newtmp/FastPFor' cd /home/mouna/newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor /home/mouna/newtmp/FastPFor/CMakeFiles/codecs.dir/DependInfo.cmake --color= Dependee "/home/mouna/newtmp/FastPFor/CMakeFiles/codecs.dir/DependInfo.cmake" is newer than depender "/home/mouna/newtmp/FastPFor/CMakeFiles/codecs.dir/depend.internal". Dependee "/home/mouna/newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/mouna/newtmp/FastPFor/CMakeFiles/codecs.dir/depend.internal". Scanning dependencies of target codecs make[2]: Leaving directory /home/mouna/newtmp/FastPFor' make -f CMakeFiles/codecs.dir/build.make CMakeFiles/codecs.dir/build make[2]: Entering directory/home/mouna/newtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report /home/mouna/newtmp/FastPFor/CMakeFiles 8 [ 47%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -I/home/mouna/newtmp/FastPFor/headers -I/usr/local/include -o CMakeFiles/codecs.dir/src/codecs.cpp.o -c /home/mouna/newtmp/FastPFor/src/codecs.cpp In file included from /home/mouna/newtmp/FastPFor/headers/codecfactory.h:13:0, from /home/mouna/newtmp/FastPFor/src/codecs.cpp:15: /home/mouna/newtmp/FastPFor/headers/vsencoding.h: In member function ‘const uint32_t* vsencoding::VSEncodingBlocks::decodeVS(uint32_t, const uint32t, uint32t, uint32t)’: /home/mouna/newtmp/FastPFor/headers/vsencoding.h:636:48: error: ‘asm’ operand has impossible constraints /__vseblockscopy16(pblk[B], out); ^ /home/mouna/newtmp/FastPFor/headers/vsencoding.h:640:85: error: ‘asm’ operand has impossible constraints / FIXME: Is it better to do memcpy() firstly? /__vseblocks_zero32(out);

     ^

/home/mouna/newtmp/FastPFor/headers/vsencoding.h:650:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/newtmp/FastPFor/headers/vsencoding.h:654:36: error: ‘asm’ operand has impossible constraints __vseblocks_zero32(out); ^ /home/mouna/newtmp/FastPFor/headers/vsencoding.h:664:45: error: ‘asm’ operand has impossible constraints vseblocks_copy16(pblk[B], out); ^ /home/mouna/newtmp/FastPFor/headers/vsencoding.h:668:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ /home/mouna/newtmp/FastPFor/headers/vsencoding.h:677:45: error: ‘asm’ operand has impossible constraints __vseblocks_copy16(pblk[B], out); ^ /home/mouna/newtmp/FastPFor/headers/vsencoding.h:681:36: error: ‘asm’ operand has impossible constraints vseblocks_zero32(out); ^ make[2]: * [CMakeFiles/codecs.dir/src/codecs.cpp.o] Error 1 make[2]: Leaving directory `/home/mouna/newtmp/FastPFor' make[1]: * [CMakeFiles/codecs.dir/all] Error 2 make[1]: Leaving directory`/home/mouna/newtmp/FastPFor' make: *\ [all] Error 2

2015-04-27 15:34 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

  • In a previous comment, you indicated using GCC 4.8 under Linux and it compiled. Your problem was a crash of the compiled code.
  • Right now, it appears that your code does not to compile at all.

You have not commented on this change in the nature of the problem. It would be nice if you could explain this change: how could the code compile before? That seems a bit suspicious.

You are using GCC 4.8 under Linux. We are also using GCC 4.8 and this code is fine. This is a conventional piece of assembly that abides by the specification, as far as I can tell.

Please give me a complete print out of everything you did from the beginning as I requested: (Please, you need to give us a complete print out...)

  $ mkdir newtmp
  $ cd newtmp
  $ uname -a
  $ gcc -version
  $ ulimit -s
  (the answer should 8192)
  $ git clone https://github.com/lemire/FastPFor.git
  $ cd FastPFor
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make VERBOSE=1
  $ gdb ./unit
  gdb> run
       (unit will stop at the segmentation fault if any)
  gdb> where
  gdb> list

The output should be as follows... notice that in this particular instance, I am using GCC 4.8 and the code builds and run just fine:

$ mkdir newtmp $ cd newtmp/ /newtmp$ uname -a Linux haswell 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux /newtmp$ gcc --version gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. /newtmp$ ulimit -s 8192 /newtmp$ git clone https://github.com/lemire/FastPFor.git Cloning into 'FastPFor'... remote: Counting objects: 1586, done. remote: Compressing objects: 100% (6/6), done. remote: Total 1586 (delta 1), reused 0 (delta 0), pack-reused 1580 Receiving objects: 100% (1586/1586), 720.98 KiB | 0 bytes/s, done. Resolving deltas: 100% (971/971), done. Checking connectivity... done. /newtmp$ cd FastPFor /newtmp/FastPFor$ cmake -DCMAKE_BUILD_TYPE=Debug . -- CMAKE_BUILD_TYPE: Debug -- The CXX compiler identification is GNU 4.8.2 -- The C compiler identification is GNU 4.8.2 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- TEST TEST -- Performing Test SUPPORT_SSE42 -- Performing Test SUPPORT_SSE42 - Success -- Performing Test SUPPORT_AVX -- Performing Test SUPPORT_AVX - Success -- Performing Test SUPPORT_AVX2 -- Performing Test SUPPORT_AVX2 - Success -- CMAKE_CXX_COMPILER_ID: GNU -- CMAKE_C_COMPILER: 4.8 -- CXX_COMPILER_VERSION: 4.8 -- SSE 4.2 support detected -- Snappy was not found. codecssnappy and inmemorybenchmarksnappy targets are not available. -- Configuring done -- Generating done -- Build files have been written to: newtmp/FastPFor /newtmp/FastPFor$ make VERBOSE=1 /usr/bin/cmake -Hnewtmp/FastPFor -Bnewtmp/FastPFor --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start newtmp/FastPFor/CMakeFiles newtmp/FastPFor/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory newtmp/FastPFor'make -f CMakeFiles/FastPFor.dir/build.make CMakeFiles/FastPFor.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/FastPFor.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/FastPFor.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/FastPFor.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/FastPFor.dir/depend.internal".Scanning dependencies of target FastPFormake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/FastPFor.dir/build.make CMakeFiles/FastPFor.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 1 [ 6%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o -c newtmp/FastPFor/src/bitpacking.cpp /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 2 [ 13%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o -c newtmp/FastPFor/src/bitpackingaligned.cpp /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 3 [ 20%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o -c newtmp/FastPFor/src/bitpackingunaligned.cpp /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 4 [ 26%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o -c newtmp/FastPFor/src/horizontalbitpacking.cpp /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 5 [ 33%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o -c newtmp/FastPFor/src/simdunalignedbitpacking.cpp /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 6 [ 40%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o -c newtmp/FastPFor/src/simdbitpacking.cpp Linking CXX static library libFastPFor.a /usr/bin/cmake -P CMakeFiles/FastPFor.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/FastPFor.dir/link.txt --verbose=1 /usr/bin/ar cr libFastPFor.a CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o /usr/bin/ranlib libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 1 2 3 4 5 6[ 40%] Built target FastPFormake -f CMakeFiles/benchbitpacking.dir/build.make CMakeFiles/benchbitpacking.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/benchbitpacking.dir/depend.internal".Scanning dependencies of target benchbitpackingmake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/benchbitpacking.dir/build.make CMakeFiles/benchbitpacking.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 7 [ 46%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o -c newtmp/FastPFor/src/benchbitpacking.cpp Linking CXX executable benchbitpacking /usr/bin/cmake -E cmake_link_script CMakeFiles/benchbitpacking.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o -o benchbitpacking -rdynamic libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 7[ 46%] Built target benchbitpackingmake -f CMakeFiles/codecs.dir/build.make CMakeFiles/codecs.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/codecs.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/codecs.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/codecs.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/codecs.dir/depend.internal".Scanning dependencies of target codecsmake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/codecs.dir/build.make CMakeFiles/codecs.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 8 [ 53%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/codecs.dir/src/codecs.cpp.o -c newtmp/FastPFor/src/codecs.cpp Linking CXX executable codecs /usr/bin/cmake -E cmake_link_script CMakeFiles/codecs.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/codecs.dir/src/codecs.cpp.o -o codecs -rdynamic libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 8[ 53%] Built target codecsmake -f CMakeFiles/csv2maropu.dir/build.make CMakeFiles/csv2maropu.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/csv2maropu.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/csv2maropu.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/csv2maropu.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/csv2maropu.dir/depend.internal".Scanning dependencies of target csv2maropumake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/csv2maropu.dir/build.make CMakeFiles/csv2maropu.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 9 [ 60%] Building CXX object CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o -c newtmp/FastPFor/src/csv2maropu.cpp Linking CXX executable csv2maropu /usr/bin/cmake -E cmake_link_script CMakeFiles/csv2maropu.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o -o csv2maropu -rdynamic make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 9[ 60%] Built target csv2maropumake -f CMakeFiles/entropy.dir/build.make CMakeFiles/entropy.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/entropy.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/entropy.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/entropy.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/entropy.dir/depend.internal".Scanning dependencies of target entropymake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/entropy.dir/build.make CMakeFiles/entropy.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 10 [ 66%] Building CXX object CMakeFiles/entropy.dir/src/entropy.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/entropy.dir/src/entropy.cpp.o -c newtmp/FastPFor/src/entropy.cpp Linking CXX executable entropy /usr/bin/cmake -E cmake_link_script CMakeFiles/entropy.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/entropy.dir/src/entropy.cpp.o -o entropy -rdynamic libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 10[ 66%] Built target entropymake -f CMakeFiles/example.dir/build.make CMakeFiles/example.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/example.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/example.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/example.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/example.dir/depend.internal".Scanning dependencies of target examplemake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/example.dir/build.make CMakeFiles/example.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 11 [ 73%] Building CXX object CMakeFiles/example.dir/example.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/example.dir/example.cpp.o -c newtmp/FastPFor/example.cpp Linking CXX executable example /usr/bin/cmake -E cmake_link_script CMakeFiles/example.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/example.dir/example.cpp.o -o example -rdynamic libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 11[ 73%] Built target examplemake -f CMakeFiles/gapstats.dir/build.make CMakeFiles/gapstats.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/gapstats.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/gapstats.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/gapstats.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/gapstats.dir/depend.internal".Scanning dependencies of target gapstatsmake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/gapstats.dir/build.make CMakeFiles/gapstats.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 12 [ 80%] Building CXX object CMakeFiles/gapstats.dir/src/gapstats.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/gapstats.dir/src/gapstats.cpp.o -c newtmp/FastPFor/src/gapstats.cpp Linking CXX executable gapstats /usr/bin/cmake -E cmake_link_script CMakeFiles/gapstats.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/gapstats.dir/src/gapstats.cpp.o -o gapstats -rdynamic make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 12[ 80%] Built target gapstatsmake -f CMakeFiles/inmemorybenchmark.dir/build.make CMakeFiles/inmemorybenchmark.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/inmemorybenchmark.dir/depend.internal".Scanning dependencies of target inmemorybenchmarkmake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/inmemorybenchmark.dir/build.make CMakeFiles/inmemorybenchmark.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 13 [ 86%] Building CXX object CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o -c newtmp/FastPFor/src/inmemorybenchmark.cpp Linking CXX executable inmemorybenchmark /usr/bin/cmake -E cmake_link_script CMakeFiles/inmemorybenchmark.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o -o inmemorybenchmark -rdynamic libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 13[ 86%] Built target inmemorybenchmarkmake -f CMakeFiles/partitionbylength.dir/build.make CMakeFiles/partitionbylength.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/partitionbylength.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/partitionbylength.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/partitionbylength.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/partitionbylength.dir/depend.internal".Scanning dependencies of target partitionbylengthmake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/partitionbylength.dir/build.make CMakeFiles/partitionbylength.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 14 [ 93%] Building CXX object CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o -c newtmp/FastPFor/src/partitionbylength.cpp Linking CXX executable partitionbylength /usr/bin/cmake -E cmake_link_script CMakeFiles/partitionbylength.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o -o partitionbylength -rdynamic make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 14[ 93%] Built target partitionbylengthmake -f CMakeFiles/unit.dir/build.make CMakeFiles/unit.dir/dependmake[2]: Entering directorynewtmp/FastPFor'cd newtmp/FastPFor && /usr/bin/cmake -E cmake_depends "Unix Makefiles" newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor newtmp/FastPFor/CMakeFiles/unit.dir/DependInfo.cmake --color=Dependee "newtmp/FastPFor/CMakeFiles/unit.dir/DependInfo.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/unit.dir/depend.internal".Dependee "newtmp/FastPFor/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "newtmp/FastPFor/CMakeFiles/unit.dir/depend.internal".Scanning dependencies of target unitmake[2]: Leaving directory newtmp/FastPFor'make -f CMakeFiles/unit.dir/build.make CMakeFiles/unit.dir/buildmake[2]: Entering directorynewtmp/FastPFor' /usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 15 [100%] Building CXX object CMakeFiles/unit.dir/src/unit.cpp.o /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed -Inewtmp/FastPFor/headers -o CMakeFiles/unit.dir/src/unit.cpp.o -c newtmp/FastPFor/src/unit.cpp Linking CXX executable unit /usr/bin/cmake -E cmake_link_script CMakeFiles/unit.dir/link.txt --verbose=1 /usr/bin/c++ -Wall -Wcast-align -ggdb -lm -lrt -std=c++11 -DHAVE_CXX0X -march=native -Wl,--no-as-needed CMakeFiles/unit.dir/src/unit.cpp.o -o unit -rdynamic libFastPFor.a make[2]: Leaving directory newtmp/FastPFor'/usr/bin/cmake -E cmake_progress_report newtmp/FastPFor/CMakeFiles 15[100%] Built target unitmake[1]: Leaving directorynewtmp/FastPFor'/usr/bin/cmake -E cmake_progress_start newtmp/FastPFor/CMakeFiles 0/newtmp/FastPFor$ gdb ./unitGNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1Copyright (C) 2014 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.htmlThis is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. Type "show copying"and "show warranty" for details.This GDB was configured as "x86_64-linux-gnu".Type "show configuration" for configuration details.For bug reporting instructions, please see:http://www.gnu.org/software/gdb/bugs/.Find the GDB manual and other documentation resources online at:http://www.gnu.org/software/gdb/documentation/.For help, type "help".Type "apropos word" to search for commands related to "word"...Reading symbols from ./unit...done.(gdb) runStarting program: newtmp/FastPFor/unittesting... b = 0testing... b = 1testing... b = 2testing... b = 3testing... b = 4testing... b = 5testing... b = 6testing... b = 7testing... b = 8testing... b = 9testing... b = 10testing... b = 11testing... b = 12testing... b = 13testing... b = 14testing... b = 15testing... b = 16testing... b = 17testing... b = 18testing... b = 19testing... b = 20testing... b = 21testing... b = 22testing... b = 23testing... b = 24testing... b = 25testing... b = 26testing... b = 27testing... b = 28 testing large zipfian arrays...length = 32BP32+VariableByte encoding ... decoding ... ok!JustCopy encoding ... decoding ... ok!FastBinaryPacking16+VariableByte encoding ... decoding ... ok!FastBinaryPacking32+VariableByte encoding ... decoding ... ok!FastBinaryPacking8+VariableByte encoding ... decoding ... ok!FastPFor128+VariableByte encoding ... decoding ... ok!FastPFor256+VariableByte encoding ... decoding ... ok!NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!PFor+VariableByte encoding ... decoding ... ok!PFor2008+VariableByte encoding ... decoding ... ok!SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!SIMDFastPFor128+VariableByte encoding ... decoding ... ok!SIMDFastPFor256+VariableByte encoding ... decoding ... ok!SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDPFor+VariableByte encoding ... decoding ... ok!SIMDSimplePFor+VariableByte encoding ... decoding ... ok!Simple8b encoding ... decoding ... ok!Simple8b_RLE encoding ... decoding ... ok!SimplePFor+VariableByte encoding ... decoding ... ok!VariableByte encoding ... decoding ... ok!VarIntG8IU encoding ... decoding ... ok!varintgb encoding ... decoding ... ok!VByte encoding ... decoding ... ok!VSEncoding encoding ... decoding ... ok!length = 1024BP32+VariableByte encoding ... decoding ... ok!JustCopy encoding ... decoding ... ok!FastBinaryPacking16+VariableByte encoding ... decoding ... ok!FastBinaryPacking32+VariableByte encoding ... decoding ... ok!FastBinaryPacking8+VariableByte encoding ... decoding ... ok!FastPFor128+VariableByte encoding ... decoding ... ok!FastPFor256+VariableByte encoding ... decoding ... ok!NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!PFor+VariableByte encoding ... decoding ... ok!PFor2008+VariableByte encoding ... decoding ... ok!SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!SIMDFastPFor128+VariableByte encoding ... decoding ... ok!SIMDFastPFor256+VariableByte encoding ... decoding ... ok!SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDPFor+VariableByte encoding ... decoding ... ok!SIMDSimplePFor+VariableByte encoding ... decoding ... ok!Simple8b encoding ... decoding ... ok!Simple8b_RLE encoding ... decoding ... ok!SimplePFor+VariableByte encoding ... decoding ... ok!VariableByte encoding ... decoding ... ok!VarIntG8IU encoding ... decoding ... ok!varintgb encoding ... decoding ... ok!VByte encoding ... decoding ... ok!VSEncoding encoding ... decoding ... ok!length = 32768BP32+VariableByte encoding ... decoding ... ok!JustCopy encoding ... decoding ... ok!FastBinaryPacking16+VariableByte encoding ... decoding ... ok!FastBinaryPacking32+VariableByte encoding ... decoding ... ok!FastBinaryPacking8+VariableByte encoding ... decoding ... ok!FastPFor128+VariableByte encoding ... decoding ... ok!FastPFor256+VariableByte encoding ... decoding ... ok!NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!PFor+VariableByte encoding ... decoding ... ok!PFor2008+VariableByte encoding ... decoding ... ok!SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!SIMDFastPFor128+VariableByte encoding ... decoding ... ok!SIMDFastPFor256+VariableByte encoding ... decoding ... ok!SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDPFor+VariableByte encoding ... decoding ... ok!SIMDSimplePFor+VariableByte encoding ... decoding ... ok!Simple8b encoding ... decoding ... ok!Simple8b_RLE encoding ... decoding ... ok!SimplePFor+VariableByte encoding ... decoding ... ok!VariableByte encoding ... decoding ... ok!VarIntG8IU encoding ... decoding ... ok!varintgb encoding ... decoding ... ok!VByte encoding ... decoding ... ok!VSEncoding encoding ... decoding ... ok!length = 1048576BP32+VariableByte encoding ... decoding ... ok!JustCopy encoding ... decoding ... ok!FastBinaryPacking16+VariableByte encoding ... decoding ... ok!FastBinaryPacking32+VariableByte encoding ... decoding ... ok!FastBinaryPacking8+VariableByte encoding ... decoding ... ok!FastPFor128+VariableByte encoding ... decoding ... ok!FastPFor256+VariableByte encoding ... decoding ... ok!NewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!OPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!PFor+VariableByte encoding ... decoding ... ok!PFor2008+VariableByte encoding ... decoding ... ok!SIMDBinaryPacking+VariableByte encoding ... decoding ... ok!SIMDFastPFor128+VariableByte encoding ... decoding ... ok!SIMDFastPFor256+VariableByte encoding ... decoding ... ok!SIMDNewPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDOPTPFor<4,Simple16>+VariableByte encoding ... decoding ... ok!SIMDPFor+VariableByte encoding ... decoding ... ok!SIMDSimplePFor+VariableByte encoding ... decoding ... ok!Simple8b encoding ... decoding ... ok!Simple8b_RLE encoding ... decoding ... ok!SimplePFor+VariableByte encoding ... decoding ... ok!VariableByte encoding ... decoding ... ok!VarIntG8IU encoding ... decoding ... ok!varintgb encoding ... decoding ... ok!VByte encoding ... decoding ... ok!VSEncoding encoding ... decoding ... ok!

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96653573.

lemire commented 9 years ago

@mounamouna

Have you found out why you were able to compile the code before?

I just noticed that you appear to be running a 32-bit OS. Is there any particular reason for this choice? This software assumes a recent 64-bit system. You should still be able to cross-compile a 64-bit binary, but this may require some work on your part. The simplest path would be to use a 64-bit system.

I would be interested in the output of this command:

               $  gcc -march=native -dM -E - < /dev/null
lemire commented 9 years ago

I am going to close this issue since I do not think it is reasonable to support 32-bit systems.

Thanks for all your feedback and sorry for not catching up earlier on the issue.

Please upgrade to a 64-bit system. If the problem still persists, I will be glad to help further.

mounamouna commented 9 years ago

Sir, I don't compile this code before. mouna@ubuntu:~$ gcc -march=native -dM -E - < /dev/null

define DBL_MIN_EXP (-1021)

define UINT_LEAST16_MAX 65535

define **ATOMIC_ACQUIRE 2

define __FLT_MIN** 1.17549435082228750797e-38F

define UINT_LEAST8_TYPE unsigned char

define **INTMAX_C(c) c ## LL

define __CHAR_BIT** 8

define UINT8_MAX 255

define WINT_MAX 4294967295U

define ORDER_LITTLE_ENDIAN 1234

define SIZE_MAX 4294967295U

define SSE4_1 1

define WCHAR_MAX 2147483647L

define **GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1

define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1

define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1

define __DBL_DENORM_MIN** ((double)4.94065645841246544177e-324L)

define **GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1

define __GCC_ATOMIC_CHAR_LOCK_FREE 2

define __FLT_EVAL_METHOD** 2

define unix 1

define **GCC_ATOMIC_CHAR32_T_LOCK_FREE 2

define __UINT_FAST64_MAX** 18446744073709551615ULL

define SIG_ATOMIC_TYPE int

define DBL_MIN_10_EXP (-307)

define FINITE_MATH_ONLY 0

define GNUC_PATCHLEVEL 1

define UINT_FAST8_MAX 255

define DEC64_MAX_EXP 385

define **INT8_C(c) c

define __UINT_LEAST64_MAX** 18446744073709551615ULL

define SHRT_MAX 32767

define LDBL_MAX 1.18973149535723176502e+4932L

define POPCNT 1

define UINT_LEAST8_MAX 255

define **GCC_ATOMIC_BOOL_LOCK_FREE 2

define __UINTMAX_TYPE** long long unsigned int

define **linux 1

define __DEC32_EPSILON** 1E-6DF

define **unix 1

define __UINT32_MAX** 4294967295U

define LDBL_MAX_EXP 16384

define WINT_MIN 0U

define linux 1

define SCHAR_MAX 127

define WCHAR_MIN (-WCHAR_MAX - 1)

define **INT64_C(c) c ## LL

define __DBL_DIG** 15

define **GCC_ATOMIC_POINTER_LOCK_FREE 2

define __SIZEOF_INT** 4

define SIZEOF_POINTER 4

define USER_LABEL_PREFIX

define STDC_HOSTED 1

define LDBL_HAS_INFINITY 1

define FLT_EPSILON 1.19209289550781250000e-7F

define LDBL_MIN 3.36210314311209350626e-4932L

define DEC32_MAX 9.999999E96DF

define INT32_MAX 2147483647

define SIZEOF_LONG 4

define STDC_IEC_559 1

define STDC_ISO_10646 201103L

define **UINT16_C(c) c

define _PREDEFS_H

define __DECIMAL_DIG** 21

define gnu_linux 1

define LDBL_HAS_QUIET_NAN 1

define GNUC 4

define MMX 1

define FLT_HAS_DENORM 1

define SIZEOF_LONG_DOUBLE 12

define **corei7 1

define __BIGGEST_ALIGNMENT** 16

define DBL_MAX ((double)1.79769313486231570815e+308L)

define INT_FAST32_MAX 2147483647

define DBL_HAS_INFINITY 1

define SSE4_2 1

define DEC32_MIN_EXP (-94)

define INT_FAST16_TYPE int

define LDBL_HAS_DENORM 1

define DEC128_MAX 9.999999999999999999999999999999999E6144DL

define INT_LEAST32_MAX 2147483647

define DEC32_MIN 1E-95DF

define DBL_MAX_EXP 1024

define DEC128_EPSILON 1E-33DL

define **ATOMIC_HLE_RELEASE 131072

define __PTRDIFF_MAX** 2147483647

define STDC_NO_THREADS 1

define **ATOMIC_HLE_ACQUIRE 65536

define __LONG_LONG_MAX** 9223372036854775807LL

define SIZEOF_SIZE_T 4

define SIZEOF_WINT_T 4

define **GCC_HAVE_DWARF2_CFI_ASM 1

define __GXX_ABI_VERSION 1002

define __FLT_MIN_EXP** (-125)

define INT_FAST64_TYPE long long int

define DBL_MIN ((double)2.22507385850720138309e-308L)

define PCLMUL 1

define tune_corei7 1

define DECIMAL_BID_FORMAT 1

define DEC128_MIN 1E-6143DL

define REGISTER_PREFIX

define UINT16_MAX 65535

define DBL_HAS_DENORM 1

define UINT8_TYPE unsigned char

define NO_INLINE 1

define **i386 1

define __FLT_MANT_DIG** 24

define VERSION "4.8.1"

define **UINT64_C(c) c ## ULL

define _STDC_PREDEF_H 1

define __GCC_ATOMIC_INT_LOCK_FREE 2

define __FLOAT_WORD_ORDER ORDER_LITTLE_ENDIAN**

define STDC_IEC_559_COMPLEX 1

define **INT32_C(c) c

define __DEC64_EPSILON** 1E-15DD

define ORDER_PDP_ENDIAN 3412

define DEC128_MIN_EXP (-6142)

define code_model_32 1

define INT_FAST32_TYPE int

define UINT_LEAST16_TYPE short unsigned int

define unix 1

define INT16_MAX 32767

define i386 1

define SIZE_TYPE unsigned int

define UINT64_MAX 18446744073709551615ULL

define INT8_TYPE signed char

define ELF 1

define FLT_RADIX 2

define INT_LEAST16_TYPE short int

define LDBL_EPSILON 1.08420217248550443401e-19L

define **UINTMAX_C(c) c ## ULL

define __SIG_ATOMIC_MAX** 2147483647

define **GCC_ATOMIC_WCHAR_T_LOCK_FREE 2

define __SIZEOF_PTRDIFF_T** 4

define DEC32_SUBNORMAL_MIN 0.000001E-95DF

define INT_FAST16_MAX 2147483647

define UINT_FAST32_MAX 4294967295U

define UINT_LEAST64_TYPE long long unsigned int

define FLT_HAS_QUIET_NAN 1

define FLT_MAX_10_EXP 38

define LONG_MAX 2147483647L

define DEC128_SUBNORMAL_MIN 0.000000000000000000000000000000001E-6143DL

define FLT_HAS_INFINITY 1

define UINT_FAST16_TYPE unsigned int

define DEC64_MAX 9.999999999999999E384DD

define CHAR16_TYPE short unsigned int

define **PRAGMA_REDEFINE_EXTNAME 1

define __INT_LEAST16_MAX** 32767

define DEC64_MANT_DIG 16

define INT64_MAX 9223372036854775807LL

define UINT_LEAST32_MAX 4294967295U

define **GCC_ATOMIC_LONG_LOCK_FREE 2

define __INT_LEAST64_TYPE** long long int

define INT16_TYPE short int

define INT_LEAST8_TYPE signed char

define DEC32_MAX_EXP 97

define INT_FAST8_MAX 127

define INTPTR_MAX 2147483647

define linux 1

define SSE2 1

define SSSE3 1

define LDBL_MANT_DIG 64

define DBL_HAS_QUIET_NAN 1

define SIG_ATOMIC_MIN (-SIG_ATOMIC_MAX - 1)

define INTPTR_TYPE int

define UINT16_TYPE short unsigned int

define WCHAR_TYPE long int

define SIZEOF_FLOAT 4

define UINTPTR_MAX 4294967295U

define DEC64_MIN_EXP (-382)

define INT_FAST64_MAX 9223372036854775807LL

define **GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1

define __FLT_DIG** 6

define UINT_FAST64_TYPE long long unsigned int

define INT_MAX 2147483647

define INT64_TYPE long long int

define FLT_MAX_EXP 128

define DBL_MANT_DIG 53

define INT_LEAST64_MAX 9223372036854775807LL

define **GCC_ATOMIC_CHAR16_T_LOCK_FREE 2

define __DEC64_MIN** 1E-383DD

define WINT_TYPE unsigned int

define UINT_LEAST32_TYPE unsigned int

define SIZEOF_SHORT 2

define SSE 1

define LDBL_MIN_EXP (-16381)

define INT_LEAST8_MAX 127

define SSP 1

define LDBL_MAX_10_EXP 4932

define **ATOMIC_RELAXED 0

define __DBL_EPSILON** ((double)2.22044604925031308085e-16L)

define **UINT8_C(c) c

define __INT_LEAST32_TYPE** int

define SIZEOF_WCHAR_T 4

define UINT64_TYPE long long unsigned int

define corei7 1

define INT_FAST8_TYPE signed char

define DBL_DECIMAL_DIG 17

define FXSR 1

define DEC_EVAL_METHOD 2

define ORDER_BIG_ENDIAN 4321

define **UINT32_C(c) c ## U

define __INTMAX_MAX** 9223372036854775807LL

define BYTE_ORDER ORDER_LITTLE_ENDIAN

define FLT_DENORM_MIN 1.40129846432481707092e-45F

define INT8_MAX 127

define UINT_FAST32_TYPE unsigned int

define CHAR32_TYPE unsigned int

define FLT_MAX 3.40282346638528859812e+38F

define INT32_TYPE int

define SIZEOF_DOUBLE 8

define FLT_MIN_10_EXP (-37)

define INTMAX_TYPE long long int

define i386 1

define DEC128_MAX_EXP 6145

define **ATOMIC_CONSUME 1

define __GNUC_MINOR** 8

define UINTMAX_MAX 18446744073709551615ULL

define DEC32_MANT_DIG 7

define DBL_MAX_10_EXP 308

define LDBL_DENORM_MIN 3.64519953188247460253e-4951L

define **INT16_C(c) c

define __STDC** 1

define PTRDIFF_TYPE int

define **ATOMIC_SEQ_CST 5

define __UINT32_TYPE** unsigned int

define UINTPTR_TYPE unsigned int

define DEC64_SUBNORMAL_MIN 0.000000000000001E-383DD

define DEC128_MANT_DIG 34

define LDBL_MIN_10_EXP (-4931)

define SIZEOF_LONG_LONG 8

define **GCC_ATOMIC_LLONG_LOCK_FREE 2

define __LDBL_DIG** 18

define FLT_DECIMAL_DIG 9

define UINT_FAST16_MAX 4294967295U

define GNUC_GNU_INLINE 1

define **GCC_ATOMIC_SHORT_LOCK_FREE 2

define __SSE3** 1

define UINT_FAST8_TYPE unsigned char

define __ATOMIC_ACQ_REL 4

define __ATOMIC_RELEASE 3

Please Sir, can you help me. For my thesis work, I installed NS3 simulator in this system in order to implement a proactive solution for ip traceback in wireless mesh networks. So i couldn't change completly the system but i want to integrate this package FastPFor in my ns3 implementation because i need to compress two successive ipv4 addresses in one address(using this library and another technics). How can i transform my system to 64-bit system, if possible??

Thanks in advance.

2015-04-27 17:28 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

Have you found out why you were able to compile the code before?

I just noticed that you appear to be running a 32-bit OS. Is there any particular reason for this choice? This software assumes a recent 64-bit system. You should still be able to cross-compile a 64-bit binary, but this may require some work on your part. The simplest path would be to use a 64-bit system.

I would be interested in the output of this command:

           $  gcc -march=native -dM -E - < /dev/null

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96709111.

lemire commented 9 years ago

I don't compile this code before.

It sure looks like what you describe doing there:

https://github.com/lemire/FastPFor/issues/19#issuecomment-93853901

For my thesis work, I installed NS3 simulator in this system in order to implement a proactive solution for ip traceback in wireless mesh networks. So i couldn't change completly the system but i want to integrate this package FastPFor in my ns3 implementation because i need to compress two successive ipv4 addresses in one address(using this library and another technics). How can i transform my system to 64-bit system, if possible??

Is your NS3 implementation requiring you to have a 32-bit system? I would think not.

The simplest thing would be reinstall your operating system, and choose a 64-bit version of Ubuntu. Frankly, you have to go out of your way to install a 32-bit Ubuntu these days. Unless you have old hardware (or old binary software), it makes little sense to have a 32-bit version of Ubuntu. You do not appear to have old hardware... so why are you using a 32-bit version of Ubuntu?

mounamouna commented 9 years ago

I think #19 (comment) https://github.com/lemire/FastPFor/issues/19#issuecomment-93853901 is another version of FastPFor (I will try to find it), but the newest one given by "git clone https://github.com/lemire/FastPFor.git" don't work for me. I installed ubuntu 13.0 in Vmware Player (in windows 7). Initially, i don't care about the system type 32-bit or 64-bit just i think about installing NS3 simulator in my machine. The installation of this simulator was very difficult and took a lot of time.

2015-04-27 18:41 GMT+02:00 Daniel Lemire notifications@github.com:

I don't compile this code before.

It sure looks like what you describe doing there:

19 (comment)

https://github.com/lemire/FastPFor/issues/19#issuecomment-93853901

For my thesis work, I installed NS3 simulator in this system in order to implement a proactive solution for ip traceback in wireless mesh networks. So i couldn't change completly the system but i want to integrate this package FastPFor in my ns3 implementation because i need to compress two successive ipv4 addresses in one address(using this library and another technics). How can i transform my system to 64-bit system, if possible??

Is your NS3 implementation requiring you to have a 32-bit system? I would think not.

The simplest thing would be reinstall your operating system, and choose a 64-bit version of Ubuntu. Frankly, you have to go out of your way to install a 32-bit Ubuntu these days. Unless you have old hardware (or old binary software), it makes little sense to have a 32-bit version of Ubuntu. You do not appear to have old hardware... so why are you using a 32-bit version of Ubuntu?

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96734559.

mounamouna commented 9 years ago

I find FastPFor -master version: mouna@ubuntu:~$ cd FastPFor-master mouna@ubuntu:~/FastPFor-master$ cmake -DCMAKE_BUILD_TYPE=Debug . -- The CXX compiler identification is GNU 4.8.1 -- The C compiler identification is GNU 4.8.1 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- TEST TEST -- Performing Test SUPPORT_SSE42 -- Performing Test SUPPORT_SSE42 - Success -- Performing Test SUPPORT_AVX -- Performing Test SUPPORT_AVX - Success -- Performing Test SUPPORT_AVX2 -- Performing Test SUPPORT_AVX2 - Success -- CMAKE_CXX_COMPILER_ID: GNU -- CMAKE_C_COMPILER: 4.8 -- CXX_COMPILER_VERSION: 4.8 -- SSE 4.2 support detected -- Snappy was found. Building additional targets codecssnappy and inmemorybenchmarksnappy. -- Configuring done -- Generating done -- Build files have been written to: /home/mouna/FastPFor-master mouna@ubuntu:~/FastPFor-master$ make Scanning dependencies of target FastPFor [ 5%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpacking.cpp.o [ 11%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingaligned.cpp.o [ 17%] Building CXX object CMakeFiles/FastPFor.dir/src/bitpackingunaligned.cpp.o [ 23%] Building CXX object CMakeFiles/FastPFor.dir/src/horizontalbitpacking.cpp.o [ 29%] Building CXX object CMakeFiles/FastPFor.dir/src/simdunalignedbitpacking.cpp.o [ 35%] Building CXX object CMakeFiles/FastPFor.dir/src/simdbitpacking.cpp.o Linking CXX static library libFastPFor.a [ 35%] Built target FastPFor Scanning dependencies of target benchbitpacking [ 41%] Building CXX object CMakeFiles/benchbitpacking.dir/src/benchbitpacking.cpp.o Linking CXX executable benchbitpacking [ 41%] Built target benchbitpacking Scanning dependencies of target codecs [ 47%] Building CXX object CMakeFiles/codecs.dir/src/codecs.cpp.o Linking CXX executable codecs [ 47%] Built target codecs Scanning dependencies of target codecssnappy [ 52%] Building CXX object CMakeFiles/codecssnappy.dir/src/codecs.cpp.o Linking CXX executable codecssnappy [ 52%] Built target codecssnappy Scanning dependencies of target csv2maropu [ 58%] Building CXX object CMakeFiles/csv2maropu.dir/src/csv2maropu.cpp.o Linking CXX executable csv2maropu [ 58%] Built target csv2maropu Scanning dependencies of target entropy [ 64%] Building CXX object CMakeFiles/entropy.dir/src/entropy.cpp.o Linking CXX executable entropy [ 64%] Built target entropy Scanning dependencies of target example [ 70%] Building CXX object CMakeFiles/example.dir/example.cpp.o Linking CXX executable example [ 70%] Built target example Scanning dependencies of target gapstats [ 76%] Building CXX object CMakeFiles/gapstats.dir/src/gapstats.cpp.o Linking CXX executable gapstats [ 76%] Built target gapstats Scanning dependencies of target inmemorybenchmark [ 82%] Building CXX object CMakeFiles/inmemorybenchmark.dir/src/inmemorybenchmark.cpp.o Linking CXX executable inmemorybenchmark [ 82%] Built target inmemorybenchmark Scanning dependencies of target inmemorybenchmarksnappy [ 88%] Building CXX object CMakeFiles/inmemorybenchmarksnappy.dir/src/inmemorybenchmark.cpp.o Linking CXX executable inmemorybenchmarksnappy [ 88%] Built target inmemorybenchmarksnappy Scanning dependencies of target partitionbylength [ 94%] Building CXX object CMakeFiles/partitionbylength.dir/src/partitionbylength.cpp.o Linking CXX executable partitionbylength [ 94%] Built target partitionbylength Scanning dependencies of target unit [100%] Building CXX object CMakeFiles/unit.dir/src/unit.cpp.o Linking CXX executable unit [100%] Built target unit mouna@ubuntu:~/FastPFor-master$ gdb ./unit GNU gdb (GDB) 7.6.1-ubuntu Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /home/mouna/FastPFor-master/unit...done. (gdb) run Starting program: /home/mouna/FastPFor-master/./unit

Program received signal SIGSEGV, Segmentation fault. 0x08083bca in FastPForLib::VarIntG8IU::VarIntG8IU() () (gdb) where

0 0x08083bca in FastPForLib::VarIntG8IU::VarIntG8IU() ()

1 0x08067291 in FastPForLib::initializefactory() ()

2 0x08067d64 in _GLOBAL__sub_I__ZN10vsencoding10BitsWriterC2EPj ()

3 0x080d9292 in __libc_csu_init ()

4 0xb7cd889a in __libc_start_main (main=0x8064940
, argc=1,

ubp_av=0xbfffec04, init=0x80d9240 <__libc_csu_init>,
fini=0x80d92b0 <__libc_csu_fini>, rtld_fini=0xb7fed5f0 <_dl_fini>,
stack_end=0xbfffebfc) at libc-start.c:219

5 0x08067f63 in _start ()

(gdb) list 1 ../sysdeps/i386/dl-procinfo.c: No such file or directory.

What is the problem???

2015-04-27 19:06 GMT+02:00 Mouna Gassara gas.mouna@gmail.com:

I think #19 (comment) https://github.com/lemire/FastPFor/issues/19#issuecomment-93853901 is another version of FastPFor (I will try to find it), but the newest one given by "git clone https://github.com/lemire/FastPFor.git" don't work for me. I installed ubuntu 13.0 in Vmware Player (in windows 7). Initially, i don't care about the system type 32-bit or 64-bit just i think about installing NS3 simulator in my machine. The installation of this simulator was very difficult and took a lot of time.

2015-04-27 18:41 GMT+02:00 Daniel Lemire notifications@github.com:

I don't compile this code before.

It sure looks like what you describe doing there:

19 (comment)

https://github.com/lemire/FastPFor/issues/19#issuecomment-93853901

For my thesis work, I installed NS3 simulator in this system in order to implement a proactive solution for ip traceback in wireless mesh networks. So i couldn't change completly the system but i want to integrate this package FastPFor in my ns3 implementation because i need to compress two successive ipv4 addresses in one address(using this library and another technics). How can i transform my system to 64-bit system, if possible??

Is your NS3 implementation requiring you to have a 32-bit system? I would think not.

The simplest thing would be reinstall your operating system, and choose a 64-bit version of Ubuntu. Frankly, you have to go out of your way to install a 32-bit Ubuntu these days. Unless you have old hardware (or old binary software), it makes little sense to have a 32-bit version of Ubuntu. You do not appear to have old hardware... so why are you using a 32-bit version of Ubuntu?

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96734559.

lemire commented 9 years ago

@mounamouna

I am able to cross-compile a 32-bit binary on my 64-bit OS (using GCC's -m32 flag). I am thus perfectly able to reproduce your problems now. If you type cmake -DCMAKE_BUILD_TYPE=Debug ., you end up with the compilation error your just described. If you just do cmake ., then you end up with a segmentation fault in FastPForLib::VarIntG8IU::VarIntG8IU() ().

So it seems like everything is explained: the problem is with the fact that you have a 32-bit system. You need to upgrade to a 64-bit system.

Thanks for the bug report, we have upgraded the documentation to make sure that people know that a 32-bit system is required.

The installation of this simulator was very difficult and took a lot of time.

I am sure it was.

Supporting 32-bit systems in FastPFor would be very difficult and take a lot of time.

So it seems like either you upgrade your system to a 64-bit system... which, I am sure, is going to take you a couple of days... or you find someone willing to spend the necessary time to make FastPFor run on 32-bit systems. As I just wrote, I do not consider this task to be a reasonable one... but you might find someone who is willing to spend the time. Of course, it might help if you were willing to pay for the work in question.

Good luck!

mounamouna commented 9 years ago

Thank you sir. I have to resolve my problems lonely ;)

2015-04-27 19:48 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

I am able to cross-compile a 32-bit binary on my 64-bit OS (using GCC's -m32 flag). I am thus perfectly able to reproduce your problems now. If you type cmake -DCMAKE_BUILD_TYPE=Debug ., you end up with the compilation error your just described. If you just do cmake ., then you end up with a segmentation fault in FastPForLib::VarIntG8IU::VarIntG8IU() ().

So it seems like everything is explained: the problem is with the fact that you have a 32-bit system. You need to upgrade to a 64-bit system.

Thanks for the bug report, we have upgraded the documentation to make sure that people know that a 32-bit system is required.

The installation of this simulator was very difficult and took a lot of time.

I am sure it was.

Supporting 32-bit systems in FastPFor would be very difficult and take a lot of time.

So it seems like either you upgrade your system to a 64-bit system... which, I am sure, is going to take you a couple of days... or you find someone willing to spend the necessary time to make FastPFor run on 32-bit systems. As I just wrote, I do not consider this task to be a reasonable one... but you might find someone who is willing to spend the time. Of course, it might help if you were willing to pay for the work in question.

Good luck!

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96755488.

lemire commented 9 years ago

@mounamouna

What is the problem???

You have a 32-bit system. This is not supported.

I have modified the cmake script so that it warns you if you do not have a 64-bit system.

mounamouna commented 9 years ago

The problem is that i have to reinstall all things Ubuntu NS3 eclipse . . . FastPFor :( Return to the step zero

2015-04-27 19:56 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

What is the problem???

You have a 32-bit system. This is not supported.

I have modified the cmake script so that it warns you if you do not have a 64-bit version.

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96758632.

lemire commented 9 years ago

@mounamouna

You can use simpler libraries...

https://github.com/lemire/simdcomp

mounamouna commented 9 years ago

mouna@ubuntu:~$ cd simdcomp-master mouna@ubuntu:~/simdcomp-master$ make cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -c ./src/simdbitpacking.c -Iinclude cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -c ./src/simdintegratedbitpacking.c -Iinclude cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -c ./src/simdcomputil.c -Iinclude cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -c ./src/simdpackedsearch.c -Iinclude cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -c ./src/simdpackedselect.c -Iinclude cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -o unit ./src/unit.c -Iinclude simdbitpacking.o simdintegratedbitpacking.o simdcomputil.o simdpackedsearch.o simdpackedselect.o ./src/unit.c: In function ‘test_simdpackedselect_advanced’: ./src/unit.c:277:49: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-optimizations] buffer[i] = ((uint32_t)(1431655765 * i + 0xFFFFFFFF)) ; ^ ./src/unit.c:276:9: note: containing loop for (i = 0; i < 128; i++) { ^ ./src/unit.c:277:49: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-optimizations] buffer[i] = ((uint32_t)(1431655765 * i + 0xFFFFFFFF)) ; ^ ./src/unit.c:276:9: note: containing loop for (i = 0; i < 128; i++) { ^ cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -o unit_chars ./src/unit_chars.c -Iinclude simdbitpacking.o simdintegratedbitpacking.o simdcomputil.o simdpackedsearch.o simdpackedselect.o cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -o libsimdcomp.so.0.0.3 simdbitpacking.o simdintegratedbitpacking.o simdcomputil.o simdpackedsearch.o simdpackedselect.o -shared mouna@ubuntu:~/simdcomp-master$ make test ./unit gap = 1 make: *\ [test] Segmentation fault (core dumped)

bad luck for me :(

2015-04-27 21:37 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

You can use simpler libraries...

https://github.com/lemire/simdcomp

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96791434.

lemire commented 9 years ago

@mounamouna

Please have a look at the actual line 277 in unit.c of the project your refer to :

https://github.com/lemire/simdcomp/blob/master/src/unit.c#L277

mounamouna commented 9 years ago

I modified this line but the same error: mouna@ubuntu:~/simdcomp-master$ make cc -fPIC -std=c89 -O3 -march=native -Wall -Wextra -pedantic -o unit ./src/unit.c -Iinclude simdbitpacking.o simdintegratedbitpacking.o simdcomputil.o simdpackedsearch.o simdpackedselect.o mouna@ubuntu:~/simdcomp-master$ make test ./unit gap = 1 make: *\ [test] Segmentation fault (core dumped)

2015-04-27 22:09 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

Please have a look at the actual line 277 in unit.c of the project your refer to :

https://github.com/lemire/simdcomp/blob/master/src/unit.c#L277

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96800794.

lemire commented 9 years ago

@mounamouna

I am not sure you understand how this is supposed to work. I recommend you read up on GitHub and how it works. You should probably familiarize yourself with the culture of open source as well.

lemire commented 9 years ago

@mounamouna

Just a few pointers on the culture of GitHub:

About open source:

mounamouna commented 9 years ago

just one question: it is compatible with my 32-bit system??

2015-04-27 23:50 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

I am not sure you understand how this is supposed to work. I recommend you read up on GitHub and how it works. You should probably familiarize yourself with the culture of open source as well.

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96831093.

searchivarius commented 9 years ago

Probably not, but as Daniel pointed out, we have no time/desire/incentives to figure this out. In that, reinstalling your virtual system takes very little time.

mounamouna commented 9 years ago

I am sorry Sir for wasting your time. You are a gentil man.

2015-04-28 0:03 GMT+02:00 Mouna Gassara gas.mouna@gmail.com:

just one question: it is compatible with my 32-bit system??

2015-04-27 23:50 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna

I am not sure you understand how this is supposed to work. I recommend you read up on GitHub and how it works. You should probably familiarize yourself with the culture of open source as well.

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96831093.

lemire commented 9 years ago

@mounamouna The C library simdcomp should run on a 32-bit system. It is very simple C code with nothing fancy. Of course, you need to run it from a fresh clone, not some hand-modified version. It is also probably entirely useless to compress IP addresses, but that is another story.

As @searchivarius pointed out, reinstalling your virtual system so that it is 64-bit (as it should IMHO) takes very little time compared to the effort needed to make complex 64-bit code run on 32-bit systems. Compared to the effort needed to test and integrate something like FastPFor in a software implementation... installing a 64-bit OS is a walk in the park.

mounamouna commented 9 years ago

Thank you Sir.

2015-04-28 0:31 GMT+02:00 Daniel Lemire notifications@github.com:

@mounamouna https://github.com/mounamouna The C library simdcomp should run on a 32-bit system. It is very simple C code with nothing fancy. Of course, you need to run from a fresh clone, not some hand-modified version. It is also probably entirely useless to compress IP addresses, but that is another story.

As @searchivarius https://github.com/searchivarius pointed out, reinstalling your virtual system so that it is 64-bit (as it should IMHO) takes very little time compared to the effort needed to make complex 64-bit code run on 32-bit systems. Compared to the effort needed to test and integrate something like FastPFor in a software implementation... installing a 64-bit OS is a walk in the park.

— Reply to this email directly or view it on GitHub https://github.com/lemire/FastPFor/issues/19#issuecomment-96839120.