nesfit / fitcrack

A hashcat-based distributed password cracking system
https://fitcrack.fit.vutbr.cz/
Other
140 stars 30 forks source link

Error compiling #105

Open exploitwritter opened 1 year ago

exploitwritter commented 1 year ago

I am compiling my own docker ima from a raspberry pi, and I am getting the following error when I run docker-compose -f docker-compose-custom-build.yml build specifically when building the CXXLD assimilator file does anyone know what it could be?

745.3   CXXLD    assimilator
746.3 /usr/bin/ld: skipping incompatible ../../server/lib/libprotobuf.a when searching for -lprotobuf
746.3 /usr/bin/ld: cannot find -lprotobuf
746.3 /usr/bin/ld: skipping incompatible ../../server/lib/libgrpc++.a when searching for -lgrpc++
746.3 /usr/bin/ld: cannot find -lgrpc++
746.3 /usr/bin/ld: skipping incompatible ../../server/lib/libgrpc.a when searching for -lgrpc
746.3 /usr/bin/ld: cannot find -lgrpc
746.3 /usr/bin/ld: skipping incompatible ../../server/lib/libgrpc++_reflection.a when searching for -lgrpc++_reflection
746.3 /usr/bin/ld: cannot find -lgrpc++_reflection
746.3 collect2: error: ld returned 1 exit status
746.3 make[2]: Leaving directory '/srv/fitcrack/boinc/sched'
746.3 make[2]: *** [Makefile:1639: assimilator] Error 1
746.3 make[1]: *** [Makefile:684: all-recursive] Error 1
746.3 make[1]: Leaving directory '/srv/fitcrack/boinc'
746.3 make: *** [Makefile:588: all] Error 2
exploitwritter commented 1 year ago

I have tried on several platforms the compilation but it seems to fail because of the same message, I tried to add the following in the Dockerfile in case it was a dependency issue

RUN apt-get install -yq libprotobuf-dev protobuf-compiler
RUN apt-get install -yq libgrpc++-dev libgrpc-dev

But it keeps crashing, I tried on Ubuntu 18:04, 20:04 I don't know if anyone has a stable server build environment to tell me what image I use as a base for the docker and I try to compile the image, or if the creator of the docker image can make it compatible to arm specifically for raspberry's pi, I try to mount a cluster and I want to mount the server on one.

davidbolvansky commented 1 year ago

Last time I tried to build docker image on, well, Apple M1 macbook, I had quite a lot issues, so I believe currently only X86 is supported.

davidbolvansky commented 1 year ago

Aha, in server/lib there are static libraries compiled for x86.

reverting of https://github.com/nesfit/fitcrack/commit/a561d476aea9b4ef64e0d41b004ce08891a13177 should fix this issue..