emu_inc_common.c: undefined reference to atomic_inc
#1
I'm trying to build hashcat v6.2.1 sources on a remote VPS cloud machine.


Code:
$ make
...
obj/combined.NATIVE.a(emu_inc_common.NATIVE.o): In function `mark_hash':
emu_inc_common.c:(.text+0x610): undefined reference to `atomic_inc'
emu_inc_common.c:(.text+0x672): undefined reference to `atomic_dec'
collect2: error: ld returned 1 exit status
src/Makefile:603: recipe for target 'hashcat' failed

$ lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

Don't know which else details to post.

I need to say that I can successfully build hashcat v6.1.1 but not v6.2.1. Perhaps, I should have been opened this thread in the issue tracker?
Reply
#2
There's no such reference in latest hashcat:

Code:
root@ro:~/xy/hashcat-6.2.1# grep -r atomic_inc * | grep -v hc_atomic_inc | wc -l
0

You sure you ran "make clean"?
Reply
#3
Yeap, "make clean" was the command I didn't think to run before the build.
It works with a clean build.
Sorry.
Reply