Research, development and trades concerning the powerful Proxmark3 device.
Remember; sharing is caring. Bring something back to the community.
"Learn the tools of the trade the hard way." +Fravia
You are not logged in.
Time changes and with it the technology
Proxmark3 @ discord
Users of this forum, please be aware that information stored on this site is not private.
Dear community,
in the version of the PM3 code repository I'm getting a compile error:
~/Githubs/proxmark3$ sudo make PLATFORM=PM3GENERIC clean && sudo make PLATFORM=PM3GENERIC all
...
compiler version: arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620
[=] GEN version.c
[-] CC version.c
[-] CC ram-reset.s
[-] CC flash-reset.s
[-] CC ../common_arm/usb_cdc.c
[-] CC ../common_arm/clocks.c
[-] CC bootrom.c
bootrom.c: In function 'BootROM':
bootrom.c:322:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
(*(uint32_t*)_osimage_entry == 0xffffffffU)) {
^
cc1: all warnings being treated as errors
../common_arm/Makefile.common:109: recipe for target 'obj/bootrom.o' failed
make[1]: *** [obj/bootrom.o] Error 1
Makefile:130: recipe for target 'bootrom/all' failed
make: *** [bootrom/all] Error 2
Any hints what to do ?
Best regards
JD.
Offline
Sounds like your cross compiler is too old. Try a more modern one, I think the v9.2.1 from 2019 should work. Yours is v6.3.1 from 2017
Offline
Hey iceman,
thanks for replying. I used this one, but now the binary isn't found:
[*] MAKE bootrom/all
/bin/sh: 1: arm-none-eabi-gcc: not found
compiler version:
[=] GEN version.c
[-] CC version.c
make[1]: arm-none-eabi-gcc: Command not found
../common_arm/Makefile.common:123: recipe for target 'obj/version.o' failed
make[1]: *** [obj/version.o] Error 127
Makefile:130: recipe for target 'bootrom/all' failed
make: *** [bootrom/all] Error 2
It is surely present in my path:
echo "$PATH"
/home/john/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/john/gcc-arm-none-eabi-10-2020-q4-major/bin
Do I have to edit the common_arm/Makefile.common ?
Regards
JD.
Offline
Try make clean before recompling.
Offline
That 's what I do:
sudo make PLATFORM=PM3GENERIC clean && sudo make PLATFORM=PM3GENERIC all
Any more ideas ?
Thanks in advance.
Offline