10-02-2018, 08:10 AM
(This post was last modified: 10-02-2018, 09:54 AM by jovval.
Edit Reason: Added explanation about CC="gcc-7"
)
(10-01-2018, 02:36 AM)hunderteins Wrote: aarch64 can't be the problem. I just got hashcat-4.2.1.tar.gz, extracted it, installed opencl and compiled it with
$ CFLAGS="-mtune=cortex-a53 -march=armv8-a+crc+crypto" CC=gcc-7 make -j4
$ ls -l hashcat
-rwxr-xr-x 1 user users 730496 Oct 1 10:22 hashcat
on altlinux sisyphus.
On a fresh installation, I did
apt-get install opencl-headers
The following NEW packages will be installed:
opencl-c-headers opencl-clhpp-headers opencl-headers
I then added buster to my /etc/apt/sources.list
deb http://cdn.debian.net/debian/ buster main contrib non-free
deb-src http://cdn.debian.net/debian/ buster main contrib non-free
deb http://security.debian.org/ buster/updates main contrib non-free
deb-src http://security.debian.org/ buster/updates main contrib non-free
deb http://cdn.debian.net/debian/ buster-updates main contrib non-free
deb-src http://cdn.debian.net/debian/ buster-updates main contrib non-free
and did,
apt-get update
apt-get install gcc-7
...
The following NEW packages will be installed:
binutils-aarch64-linux-gnu binutils-common cpp-7 gcc-7 gcc-7-base gcc-8-base libasan4 libbinutils libgcc-7-dev libisl19 liblsan0 libmpfr6 libtsan0
The following packages will be upgraded:
binutils libatomic1 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libcc1-0 libgcc1 libgomp1 libitm1 libmpc3 libubsan0 locales
tar -zxf hashcat-4.2.1.tar.gz
cd hashcat-4.2.1
CFLAGS="-mtune=cortex-a53" CC=gcc-7 make -j4
...
gcc -c -mtune=cortex-a53 -pipe -std=gnu99 -Iinclude/ -IOpenCL/ -Ideps/lzma_sdk/ -O2 -Ideps/OpenCL-Headers/ -DWITH_HWMON deps/lzma_sdk/LzmaDec.c -o obj/LzmaDec.NATIVE.STATIC.o
Compiling hangs and system reboots.
tar -zxf hashcat-4.2.1.tar.gz
cd hashcat-4.2.1
CC=gcc-7 make
...
gcc -c -pipe -std=gnu99 -Iinclude/ -IOpenCL/ -Ideps/lzma_sdk/ -O2 -Ideps/OpenCL-Headers/ -DWITH_HWMON deps/lzma_sdk/LzmaDec.c -o obj/LzmaDec.NATIVE.STATIC.o
same.
I found identical results with CC="gcc-7" (i.e. gcc-7 in quotation marks). I also tried this whole rigamarole with gcc-8.
I have added 1GB of swap to no avail.
What have I done wrong?