Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Install #16

Closed
DivX69 opened this issue Feb 1, 2020 · 4 comments
Closed

Cant Install #16

DivX69 opened this issue Feb 1, 2020 · 4 comments

Comments

@DivX69
Copy link

DivX69 commented Feb 1, 2020

Can you tell me what im doing wrong? Im using Kali Linux 2019
can u tell me how to install it? or what im doing wrong?

root@Kali:~# cd duplicut/
root@Kali:~/duplicut# make release
rm -rf objects/
rm -f gmon.out
rm -f tags
rm -f duplicut
mkdir -p `dirname objects/main.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/main.c -o objects/main.o
mkdir -p `dirname objects/thpool.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/thpool.c -o objects/thpool.o
src/thpool.c: In function ‘thpool_resume’:
src/thpool.c:274:29: warning: unused parameter ‘thpool_p’ [-Wunused-parameter]
  274 | void thpool_resume(thpool_* thpool_p) {
      |                    ~~~~~~~~~^~~~~~~~
src/thpool.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/file.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/file.c -o objects/file.o
mkdir -p `dirname objects/chunk.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/chunk.c -o objects/chunk.o
mkdir -p `dirname objects/line.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/line.c -o objects/line.o
mkdir -p `dirname objects/tag_duplicates.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/tag_duplicates.c -o objects/tag_duplicates.o
mkdir -p `dirname objects/optparse.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/optparse.c -o objects/optparse.o
mkdir -p `dirname objects/config.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/config.c -o objects/config.o
mkdir -p `dirname objects/error.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/error.c -o objects/error.o
mkdir -p `dirname objects/memstate.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/memstate.c -o objects/memstate.o
mkdir -p `dirname objects/meminfo.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/meminfo.c -o objects/meminfo.o
mkdir -p `dirname objects/bytesize.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/bytesize.c -o objects/bytesize.o
mkdir -p `dirname objects/hmap.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/hmap.c -o objects/hmap.o
mkdir -p `dirname objects/hash.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/hash.c -o objects/hash.o
src/hash.c: In function ‘murmur3’:
src/hash.c:24:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   24 |     h = *((unsigned long long*)buf128);
      |          ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hash.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/fasthash.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/fasthash.c -o objects/fasthash.o
src/fasthash.c: In function ‘fasthash64’:
src/fasthash.c:54:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   54 |  case 7: v ^= (uint64_t)pos2[6] << 48;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:55:2: note: here
   55 |  case 6: v ^= (uint64_t)pos2[5] << 40;
      |  ^~~~
src/fasthash.c:55:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   55 |  case 6: v ^= (uint64_t)pos2[5] << 40;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:56:2: note: here
   56 |  case 5: v ^= (uint64_t)pos2[4] << 32;
      |  ^~~~
src/fasthash.c:56:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   56 |  case 5: v ^= (uint64_t)pos2[4] << 32;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:57:2: note: here
   57 |  case 4: v ^= (uint64_t)pos2[3] << 24;
      |  ^~~~
src/fasthash.c:57:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   57 |  case 4: v ^= (uint64_t)pos2[3] << 24;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:58:2: note: here
   58 |  case 3: v ^= (uint64_t)pos2[2] << 16;
      |  ^~~~
src/fasthash.c:58:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   58 |  case 3: v ^= (uint64_t)pos2[2] << 16;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:59:2: note: here
   59 |  case 2: v ^= (uint64_t)pos2[1] << 8;
      |  ^~~~
src/fasthash.c:59:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   59 |  case 2: v ^= (uint64_t)pos2[1] << 8;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:60:2: note: here
   60 |  case 1: v ^= (uint64_t)pos2[0];
      |  ^~~~
src/fasthash.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/murmur3.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/murmur3.c -o objects/murmur3.o
src/murmur3.c: In function ‘MurmurHash3_x86_32’:
src/murmur3.c:110:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
  110 |   case 3: k1 ^= tail[2] << 16;
      |           ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:111:3: note: here
  111 |   case 2: k1 ^= tail[1] << 8;
      |   ^~~~
src/murmur3.c:111:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
  111 |   case 2: k1 ^= tail[1] << 8;
      |           ~~~^~~~~~~~~~~~~~~
src/murmur3.c:112:3: note: here
  112 |   case 1: k1 ^= tail[0];
      |   ^~~~
src/murmur3.c: In function ‘MurmurHash3_x86_128’:
src/murmur3.c:186:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  186 |   case 15: k4 ^= tail[14] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:187:3: note: here
  187 |   case 14: k4 ^= tail[13] << 8;
      |   ^~~~
src/murmur3.c:187:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  187 |   case 14: k4 ^= tail[13] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:188:3: note: here
  188 |   case 13: k4 ^= tail[12] << 0;
      |   ^~~~
src/murmur3.c:189:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  189 |            k4 *= c4; k4  = ROTL32(k4,18); k4 *= c1; h4 ^= k4;
      |                                                     ~~~^~~~~
src/murmur3.c:191:3: note: here
  191 |   case 12: k3 ^= tail[11] << 24;
      |   ^~~~
src/murmur3.c:191:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  191 |   case 12: k3 ^= tail[11] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:192:3: note: here
  192 |   case 11: k3 ^= tail[10] << 16;
      |   ^~~~
src/murmur3.c:192:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  192 |   case 11: k3 ^= tail[10] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:193:3: note: here
  193 |   case 10: k3 ^= tail[ 9] << 8;
      |   ^~~~
src/murmur3.c:193:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  193 |   case 10: k3 ^= tail[ 9] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:194:3: note: here
  194 |   case  9: k3 ^= tail[ 8] << 0;
      |   ^~~~
src/murmur3.c:195:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  195 |            k3 *= c3; k3  = ROTL32(k3,17); k3 *= c4; h3 ^= k3;
      |                                                     ~~~^~~~~
src/murmur3.c:197:3: note: here
  197 |   case  8: k2 ^= tail[ 7] << 24;
      |   ^~~~
src/murmur3.c:197:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  197 |   case  8: k2 ^= tail[ 7] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:198:3: note: here
  198 |   case  7: k2 ^= tail[ 6] << 16;
      |   ^~~~
src/murmur3.c:198:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  198 |   case  7: k2 ^= tail[ 6] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:199:3: note: here
  199 |   case  6: k2 ^= tail[ 5] << 8;
      |   ^~~~
src/murmur3.c:199:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  199 |   case  6: k2 ^= tail[ 5] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:200:3: note: here
  200 |   case  5: k2 ^= tail[ 4] << 0;
      |   ^~~~
src/murmur3.c:201:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  201 |            k2 *= c2; k2  = ROTL32(k2,16); k2 *= c3; h2 ^= k2;
      |                                                     ~~~^~~~~
src/murmur3.c:203:3: note: here
  203 |   case  4: k1 ^= tail[ 3] << 24;
      |   ^~~~
src/murmur3.c:203:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  203 |   case  4: k1 ^= tail[ 3] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:204:3: note: here
  204 |   case  3: k1 ^= tail[ 2] << 16;
      |   ^~~~
src/murmur3.c:204:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  204 |   case  3: k1 ^= tail[ 2] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:205:3: note: here
  205 |   case  2: k1 ^= tail[ 1] << 8;
      |   ^~~~
src/murmur3.c:205:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  205 |   case  2: k1 ^= tail[ 1] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:206:3: note: here
  206 |   case  1: k1 ^= tail[ 0] << 0;
      |   ^~~~
src/murmur3.c: In function ‘MurmurHash3_x64_128’:
src/murmur3.c:276:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  276 |   case 15: k2 ^= (uint64_t)(tail[14]) << 48;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:277:3: note: here
  277 |   case 14: k2 ^= (uint64_t)(tail[13]) << 40;
      |   ^~~~
src/murmur3.c:277:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  277 |   case 14: k2 ^= (uint64_t)(tail[13]) << 40;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:278:3: note: here
  278 |   case 13: k2 ^= (uint64_t)(tail[12]) << 32;
      |   ^~~~
src/murmur3.c:278:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  278 |   case 13: k2 ^= (uint64_t)(tail[12]) << 32;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:279:3: note: here
  279 |   case 12: k2 ^= (uint64_t)(tail[11]) << 24;
      |   ^~~~
src/murmur3.c:279:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  279 |   case 12: k2 ^= (uint64_t)(tail[11]) << 24;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:280:3: note: here
  280 |   case 11: k2 ^= (uint64_t)(tail[10]) << 16;
      |   ^~~~
src/murmur3.c:280:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  280 |   case 11: k2 ^= (uint64_t)(tail[10]) << 16;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:281:3: note: here
  281 |   case 10: k2 ^= (uint64_t)(tail[ 9]) << 8;
      |   ^~~~
src/murmur3.c:281:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  281 |   case 10: k2 ^= (uint64_t)(tail[ 9]) << 8;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:282:3: note: here
  282 |   case  9: k2 ^= (uint64_t)(tail[ 8]) << 0;
      |   ^~~~
src/murmur3.c:283:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  283 |            k2 *= c2; k2  = ROTL64(k2,33); k2 *= c1; h2 ^= k2;
      |                                                     ~~~^~~~~
src/murmur3.c:285:3: note: here
  285 |   case  8: k1 ^= (uint64_t)(tail[ 7]) << 56;
      |   ^~~~
src/murmur3.c:285:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  285 |   case  8: k1 ^= (uint64_t)(tail[ 7]) << 56;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:286:3: note: here
  286 |   case  7: k1 ^= (uint64_t)(tail[ 6]) << 48;
      |   ^~~~
src/murmur3.c:286:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  286 |   case  7: k1 ^= (uint64_t)(tail[ 6]) << 48;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:287:3: note: here
  287 |   case  6: k1 ^= (uint64_t)(tail[ 5]) << 40;
      |   ^~~~
src/murmur3.c:287:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  287 |   case  6: k1 ^= (uint64_t)(tail[ 5]) << 40;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:288:3: note: here
  288 |   case  5: k1 ^= (uint64_t)(tail[ 4]) << 32;
      |   ^~~~
src/murmur3.c:288:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  288 |   case  5: k1 ^= (uint64_t)(tail[ 4]) << 32;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:289:3: note: here
  289 |   case  4: k1 ^= (uint64_t)(tail[ 3]) << 24;
      |   ^~~~
src/murmur3.c:289:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  289 |   case  4: k1 ^= (uint64_t)(tail[ 3]) << 24;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:290:3: note: here
  290 |   case  3: k1 ^= (uint64_t)(tail[ 2]) << 16;
      |   ^~~~
src/murmur3.c:290:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  290 |   case  3: k1 ^= (uint64_t)(tail[ 2]) << 16;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:291:3: note: here
  291 |   case  2: k1 ^= (uint64_t)(tail[ 1]) << 8;
      |   ^~~~
src/murmur3.c:291:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  291 |   case  2: k1 ^= (uint64_t)(tail[ 1]) << 8;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:292:3: note: here
  292 |   case  1: k1 ^= (uint64_t)(tail[ 0]) << 0;
      |   ^~~~
src/murmur3.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/status.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/status.c -o objects/status.o
mkdir -p `dirname objects/user_input.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/user_input.c -o objects/user_input.o
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -O2 -D NDEBUG -o duplicut  objects/main.o  objects/thpool.o  objects/file.o  objects/chunk.o  objects/line.o  objects/tag_duplicates.o  objects/optparse.o  objects/config.o  objects/error.o  objects/memstate.o  objects/meminfo.o  objects/bytesize.o  objects/hmap.o  objects/hash.o  objects/fasthash.o  objects/murmur3.o  objects/status.o  objects/user_input.o -lm -pthread
strip -s duplicut
root@ENiSEC:~/duplicut# make release
rm -rf objects/
rm -f gmon.out
rm -f tags
rm -f duplicut
mkdir -p `dirname objects/main.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/main.c -o objects/main.o
mkdir -p `dirname objects/thpool.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/thpool.c -o objects/thpool.o
src/thpool.c: In function ‘thpool_resume’:
src/thpool.c:274:29: warning: unused parameter ‘thpool_p’ [-Wunused-parameter]
  274 | void thpool_resume(thpool_* thpool_p) {
      |                    ~~~~~~~~~^~~~~~~~
src/thpool.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/file.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/file.c -o objects/file.o
mkdir -p `dirname objects/chunk.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/chunk.c -o objects/chunk.o
mkdir -p `dirname objects/line.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/line.c -o objects/line.o
mkdir -p `dirname objects/tag_duplicates.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/tag_duplicates.c -o objects/tag_duplicates.o
mkdir -p `dirname objects/optparse.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/optparse.c -o objects/optparse.o
mkdir -p `dirname objects/config.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/config.c -o objects/config.o
mkdir -p `dirname objects/error.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/error.c -o objects/error.o
mkdir -p `dirname objects/memstate.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/memstate.c -o objects/memstate.o
mkdir -p `dirname objects/meminfo.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/meminfo.c -o objects/meminfo.o
mkdir -p `dirname objects/bytesize.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/bytesize.c -o objects/bytesize.o
mkdir -p `dirname objects/hmap.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/hmap.c -o objects/hmap.o
mkdir -p `dirname objects/hash.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/hash.c -o objects/hash.o
src/hash.c: In function ‘murmur3’:
src/hash.c:24:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   24 |     h = *((unsigned long long*)buf128);
      |          ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hash.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/fasthash.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/fasthash.c -o objects/fasthash.o
src/fasthash.c: In function ‘fasthash64’:
src/fasthash.c:54:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   54 |  case 7: v ^= (uint64_t)pos2[6] << 48;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:55:2: note: here
   55 |  case 6: v ^= (uint64_t)pos2[5] << 40;
      |  ^~~~
src/fasthash.c:55:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   55 |  case 6: v ^= (uint64_t)pos2[5] << 40;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:56:2: note: here
   56 |  case 5: v ^= (uint64_t)pos2[4] << 32;
      |  ^~~~
src/fasthash.c:56:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   56 |  case 5: v ^= (uint64_t)pos2[4] << 32;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:57:2: note: here
   57 |  case 4: v ^= (uint64_t)pos2[3] << 24;
      |  ^~~~
src/fasthash.c:57:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   57 |  case 4: v ^= (uint64_t)pos2[3] << 24;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:58:2: note: here
   58 |  case 3: v ^= (uint64_t)pos2[2] << 16;
      |  ^~~~
src/fasthash.c:58:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   58 |  case 3: v ^= (uint64_t)pos2[2] << 16;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:59:2: note: here
   59 |  case 2: v ^= (uint64_t)pos2[1] << 8;
      |  ^~~~
src/fasthash.c:59:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   59 |  case 2: v ^= (uint64_t)pos2[1] << 8;
      |          ~~^~~~~~~~~~~~~~~~~~~~~~~~~
src/fasthash.c:60:2: note: here
   60 |  case 1: v ^= (uint64_t)pos2[0];
      |  ^~~~
src/fasthash.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/murmur3.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/murmur3.c -o objects/murmur3.o
src/murmur3.c: In function ‘MurmurHash3_x86_32’:
src/murmur3.c:110:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
  110 |   case 3: k1 ^= tail[2] << 16;
      |           ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:111:3: note: here
  111 |   case 2: k1 ^= tail[1] << 8;
      |   ^~~~
src/murmur3.c:111:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
  111 |   case 2: k1 ^= tail[1] << 8;
      |           ~~~^~~~~~~~~~~~~~~
src/murmur3.c:112:3: note: here
  112 |   case 1: k1 ^= tail[0];
      |   ^~~~
src/murmur3.c: In function ‘MurmurHash3_x86_128’:
src/murmur3.c:186:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  186 |   case 15: k4 ^= tail[14] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:187:3: note: here
  187 |   case 14: k4 ^= tail[13] << 8;
      |   ^~~~
src/murmur3.c:187:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  187 |   case 14: k4 ^= tail[13] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:188:3: note: here
  188 |   case 13: k4 ^= tail[12] << 0;
      |   ^~~~
src/murmur3.c:189:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  189 |            k4 *= c4; k4  = ROTL32(k4,18); k4 *= c1; h4 ^= k4;
      |                                                     ~~~^~~~~
src/murmur3.c:191:3: note: here
  191 |   case 12: k3 ^= tail[11] << 24;
      |   ^~~~
src/murmur3.c:191:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  191 |   case 12: k3 ^= tail[11] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:192:3: note: here
  192 |   case 11: k3 ^= tail[10] << 16;
      |   ^~~~
src/murmur3.c:192:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  192 |   case 11: k3 ^= tail[10] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:193:3: note: here
  193 |   case 10: k3 ^= tail[ 9] << 8;
      |   ^~~~
src/murmur3.c:193:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  193 |   case 10: k3 ^= tail[ 9] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:194:3: note: here
  194 |   case  9: k3 ^= tail[ 8] << 0;
      |   ^~~~
src/murmur3.c:195:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  195 |            k3 *= c3; k3  = ROTL32(k3,17); k3 *= c4; h3 ^= k3;
      |                                                     ~~~^~~~~
src/murmur3.c:197:3: note: here
  197 |   case  8: k2 ^= tail[ 7] << 24;
      |   ^~~~
src/murmur3.c:197:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  197 |   case  8: k2 ^= tail[ 7] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:198:3: note: here
  198 |   case  7: k2 ^= tail[ 6] << 16;
      |   ^~~~
src/murmur3.c:198:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  198 |   case  7: k2 ^= tail[ 6] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:199:3: note: here
  199 |   case  6: k2 ^= tail[ 5] << 8;
      |   ^~~~
src/murmur3.c:199:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  199 |   case  6: k2 ^= tail[ 5] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:200:3: note: here
  200 |   case  5: k2 ^= tail[ 4] << 0;
      |   ^~~~
src/murmur3.c:201:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  201 |            k2 *= c2; k2  = ROTL32(k2,16); k2 *= c3; h2 ^= k2;
      |                                                     ~~~^~~~~
src/murmur3.c:203:3: note: here
  203 |   case  4: k1 ^= tail[ 3] << 24;
      |   ^~~~
src/murmur3.c:203:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  203 |   case  4: k1 ^= tail[ 3] << 24;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:204:3: note: here
  204 |   case  3: k1 ^= tail[ 2] << 16;
      |   ^~~~
src/murmur3.c:204:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  204 |   case  3: k1 ^= tail[ 2] << 16;
      |            ~~~^~~~~~~~~~~~~~~~~
src/murmur3.c:205:3: note: here
  205 |   case  2: k1 ^= tail[ 1] << 8;
      |   ^~~~
src/murmur3.c:205:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  205 |   case  2: k1 ^= tail[ 1] << 8;
      |            ~~~^~~~~~~~~~~~~~~~
src/murmur3.c:206:3: note: here
  206 |   case  1: k1 ^= tail[ 0] << 0;
      |   ^~~~
src/murmur3.c: In function ‘MurmurHash3_x64_128’:
src/murmur3.c:276:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  276 |   case 15: k2 ^= (uint64_t)(tail[14]) << 48;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:277:3: note: here
  277 |   case 14: k2 ^= (uint64_t)(tail[13]) << 40;
      |   ^~~~
src/murmur3.c:277:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  277 |   case 14: k2 ^= (uint64_t)(tail[13]) << 40;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:278:3: note: here
  278 |   case 13: k2 ^= (uint64_t)(tail[12]) << 32;
      |   ^~~~
src/murmur3.c:278:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  278 |   case 13: k2 ^= (uint64_t)(tail[12]) << 32;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:279:3: note: here
  279 |   case 12: k2 ^= (uint64_t)(tail[11]) << 24;
      |   ^~~~
src/murmur3.c:279:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  279 |   case 12: k2 ^= (uint64_t)(tail[11]) << 24;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:280:3: note: here
  280 |   case 11: k2 ^= (uint64_t)(tail[10]) << 16;
      |   ^~~~
src/murmur3.c:280:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  280 |   case 11: k2 ^= (uint64_t)(tail[10]) << 16;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:281:3: note: here
  281 |   case 10: k2 ^= (uint64_t)(tail[ 9]) << 8;
      |   ^~~~
src/murmur3.c:281:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  281 |   case 10: k2 ^= (uint64_t)(tail[ 9]) << 8;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:282:3: note: here
  282 |   case  9: k2 ^= (uint64_t)(tail[ 8]) << 0;
      |   ^~~~
src/murmur3.c:283:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
  283 |            k2 *= c2; k2  = ROTL64(k2,33); k2 *= c1; h2 ^= k2;
      |                                                     ~~~^~~~~
src/murmur3.c:285:3: note: here
  285 |   case  8: k1 ^= (uint64_t)(tail[ 7]) << 56;
      |   ^~~~
src/murmur3.c:285:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  285 |   case  8: k1 ^= (uint64_t)(tail[ 7]) << 56;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:286:3: note: here
  286 |   case  7: k1 ^= (uint64_t)(tail[ 6]) << 48;
      |   ^~~~
src/murmur3.c:286:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  286 |   case  7: k1 ^= (uint64_t)(tail[ 6]) << 48;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:287:3: note: here
  287 |   case  6: k1 ^= (uint64_t)(tail[ 5]) << 40;
      |   ^~~~
src/murmur3.c:287:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  287 |   case  6: k1 ^= (uint64_t)(tail[ 5]) << 40;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:288:3: note: here
  288 |   case  5: k1 ^= (uint64_t)(tail[ 4]) << 32;
      |   ^~~~
src/murmur3.c:288:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  288 |   case  5: k1 ^= (uint64_t)(tail[ 4]) << 32;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:289:3: note: here
  289 |   case  4: k1 ^= (uint64_t)(tail[ 3]) << 24;
      |   ^~~~
src/murmur3.c:289:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  289 |   case  4: k1 ^= (uint64_t)(tail[ 3]) << 24;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:290:3: note: here
  290 |   case  3: k1 ^= (uint64_t)(tail[ 2]) << 16;
      |   ^~~~
src/murmur3.c:290:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  290 |   case  3: k1 ^= (uint64_t)(tail[ 2]) << 16;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:291:3: note: here
  291 |   case  2: k1 ^= (uint64_t)(tail[ 1]) << 8;
      |   ^~~~
src/murmur3.c:291:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
  291 |   case  2: k1 ^= (uint64_t)(tail[ 1]) << 8;
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/murmur3.c:292:3: note: here
  292 |   case  1: k1 ^= (uint64_t)(tail[ 0]) << 0;
      |   ^~~~
src/murmur3.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
mkdir -p `dirname objects/status.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/status.c -o objects/status.o
mkdir -p `dirname objects/user_input.o`
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -c src/user_input.c -o objects/user_input.o
cc  -Iinclude -Wall -Wextra -Wdisabled-optimization -Winline -Wdouble-promotion -Wunknown-pragmas -Wno-unknown-warning-option -mtune=native -ffast-math -O2 -D NDEBUG -O2 -D NDEBUG -o duplicut  objects/main.o  objects/thpool.o  objects/file.o  objects/chunk.o  objects/line.o  objects/tag_duplicates.o  objects/optparse.o  objects/config.o  objects/error.o  objects/memstate.o  objects/meminfo.o  objects/bytesize.o  objects/hmap.o  objects/hash.o  objects/fasthash.o  objects/murmur3.o  objects/status.o  objects/user_input.o -lm -pthread
strip -s duplicut
@nil0x42
Copy link
Owner

nil0x42 commented Feb 4, 2020

From what i see from your logs, duplicut has been correctly compiled.
Your compiler displays a lot of warnings, so i'm gonna try to compile on the same distro as you, but as your compiler wrote no erroirs (only warnings), duplicut should be working.

Just run ./duplicut --help

@nil0x42
Copy link
Owner

nil0x42 commented Feb 4, 2020

Can you send me the output of gcc --version and uname -a ?

@DivX69
Copy link
Author

DivX69 commented Feb 4, 2020

Thank you for the answer. I tried the command ./duplicut --help and i seems to work, however i was irritated cause of the errors, i thought something went wrong, but it works.

as you requested:

root@Kali:# gcc --version
gcc (Debian 9.2.1-25) 9.2.1 20200123
Copyright (C) 2019 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.

root@Kali:# uname -a
Linux Kali 5.4.0-kali3-amd64 #1 SMP Debian 5.4.13-1kali1 (2020-01-20) x86_64 GNU/Linux
root@Kali:#

nil0x42 added a commit that referenced this issue Sep 7, 2020
The implicit fallthrough on murmur3 hash function's switch/case
is a wanted behavior, so we better ignore this warning as
it might be confising for users building the project.
Fixes #16
@nil0x42
Copy link
Owner

nil0x42 commented Sep 7, 2020

Hi @DivX69 , i just added -Wno-implicit-fallthrough to makefile (commit d1de202)
So this warning message can stop confusing users.
Closing issue, feel free to report any problem 👍

@nil0x42 nil0x42 closed this as completed Sep 7, 2020
nil0x42 added a commit that referenced this issue Sep 8, 2020
The implicit fallthrough on murmur3 hash function's switch/case
is a wanted behavior, so we better ignore this warning as
it might be confising for users building the project.
Fixes #16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants