RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
4.08k stars 1.07k forks source link

undefined references to `__aarch64_ldadd8_rel' compiler errors #1368

Closed iceman1001 closed 3 years ago

iceman1001 commented 3 years ago

Compilation problems Try compiling with verbose. make VERBOSE=1 with main makefile or make V=1 with cmake.

flashing problems Have you followed the instructions properly? ie, flashed bootrom seperately first if you are going from Offical repo to RRG/Iceman repo.

-

Describe the bug since latest pull, the repo doesn't compile on Jetson Nano Ubuntu 18, gcc-10

To Reproduce Steps to reproduce the behavior:

  1. git pull
  2. make -j

Expected behavior compilation without errors

Screenshots

[=] LD proxmark3
obj/aiddesfire.o: In function `AIDDFDecodeAndPrint':
aiddesfire.c:(.text+0x398): undefined reference to `__aarch64_ldadd8_rel'
obj/aidsearch.o: In function `AIDSearchFree':
aidsearch.c:(.text+0x1f8): undefined reference to `__aarch64_ldadd8_rel'
obj/aidsearch.o: In function `PrintAIDDescription':
aidsearch.c:(.text+0x6a4): undefined reference to `__aarch64_ldadd8_rel'
obj/cmdhffido.o: In function `json_decref.part.0':
cmdhffido.c:(.text+0x3dc): undefined reference to `__aarch64_ldadd8_rel'
obj/cmdhffido.o: In function `CmdHFFidoRegister':
cmdhffido.c:(.text+0xd18): undefined reference to `__aarch64_ldadd8_rel'
obj/cmdhffido.o:cmdhffido.c:(.text+0x1058): more undefined references to `__aarch64_ldadd8_rel' follow
obj/comms.o: In function `uart_communication':
comms.c:(.text+0x780): undefined reference to `__aarch64_swp1_acq_rel'
obj/crypto/asn1dump.o: In function `asn1_tag_dump_object_id.constprop.0.isra.0':
asn1dump.c:(.text+0x504): undefined reference to `__aarch64_ldadd8_rel'
asn1dump.c:(.text+0x53c): undefined reference to `__aarch64_ldadd8_rel'
obj/emv/cmdemv.o: In function `CmdEMVScan':
cmdemv.c:(.text+0x56f0): undefined reference to `__aarch64_ldadd8_rel'
obj/emv/emvjson.o: In function `JsonSaveTLVElm.part.0':
emvjson.c:(.text+0x930): undefined reference to `__aarch64_ldadd8_acq'
obj/emv/emvjson.o: In function `ParamLoadFromJson':
emvjson.c:(.text+0x14b8): undefined reference to `__aarch64_ldadd8_rel'
emvjson.c:(.text+0x1590): undefined reference to `__aarch64_ldadd8_rel'
obj/fileutils.o: In function `saveFileJSONex':
fileutils.c:(.text+0x18ac): undefined reference to `__aarch64_ldadd8_rel'
obj/fileutils.o: In function `loadFileJSONex':
fileutils.c:(.text+0x44fc): undefined reference to `__aarch64_ldadd8_rel'
obj/fileutils.o: In function `loadFileJSONroot':
fileutils.c:(.text+0x4b10): undefined reference to `__aarch64_ldadd8_rel'
obj/jansson_path.o:jansson_path.c:(.text+0x3e4): more undefined references to `__aarch64_ldadd8_rel' follow
obj/jansson_path.o: In function `json_path_set_new':
jansson_path.c:(.text+0x658): undefined reference to `__aarch64_ldadd8_acq'
jansson_path.c:(.text+0x68c): undefined reference to `__aarch64_ldadd8_rel'
jansson_path.c:(.text+0x72c): undefined reference to `__aarch64_ldadd8_acq'
jansson_path.c:(.text+0x858): undefined reference to `__aarch64_ldadd8_rel'
obj/mifare/mad.o: In function `MAD1DecodeAndPrint':
mad.c:(.text+0x1070): undefined reference to `__aarch64_ldadd8_rel'
obj/mifare/mad.o: In function `MAD2DecodeAndPrint':
mad.c:(.text+0x137c): undefined reference to `__aarch64_ldadd8_rel'
obj/mifare/mad.o: In function `MADDFDecodeAndPrint':
mad.c:(.text+0x148c): undefined reference to `__aarch64_ldadd8_rel'
./deps/hardnested/libhardnested.a(hardnested_bruteforce.o): In function `crack_states_thread':
hardnested_bruteforce.c:(.text+0x184): undefined reference to `__aarch64_ldadd4_acq_rel'
hardnested_bruteforce.c:(.text+0x194): undefined reference to `__aarch64_ldadd8_acq_rel'
./deps/hardnested/libhardnested.a(hardnested_bf_core.o): In function `crack_states_bitsliced_NOSIMD':
hardnested_bf_core.c:(.text+0x9f0): undefined reference to `__aarch64_ldadd8_acq_rel'
collect2: error: ld returned 1 exit status
Makefile:679: recipe for target 'proxmark3' failed
make[1]: *** [proxmark3] Error 1
Makefile:136: recipe for target 'client/all' failed
make: *** [client/all] Error 2
iceman@nano:~/proxmark3$ make VERBOSE=1

Desktop (please complete the following information):

iceman@nano:~/proxmark3$ uname -a
Linux nano 4.9.140-tegra #1 SMP PREEMPT Mon Dec 9 22:47:42 PST 2019 aarch64 aarch64 aarch64 GNU/Linux
iceman1001 commented 3 years ago

Gcc-9 works. Seems to be a GCC-10 related linker bug. https://bugzilla.redhat.com/show_bug.cgi?id=1830472