Proxmark3 community

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

  • Logged in as ikarus
  • Last visit: Today 11:22:42

Announcement

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.

#1 2021-05-17 09:08:26

JohnDoePM
Contributor
Registered: 2018-07-08
Posts: 48

Actual git repository -> compile error in version c56d3dd

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

#2 2021-05-17 15:48:59

iceman
Administrator
Registered: 2013-04-25
Posts: 9,468
Website

Re: Actual git repository -> compile error in version c56d3dd

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

#3 2021-05-18 09:21:02

JohnDoePM
Contributor
Registered: 2018-07-08
Posts: 48

Re: Actual git repository -> compile error in version c56d3dd

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

#4 2021-05-18 10:03:10

iceman
Administrator
Registered: 2013-04-25
Posts: 9,468
Website

Re: Actual git repository -> compile error in version c56d3dd

Try make clean before recompling.

Offline

#5 2021-05-18 10:13:07

JohnDoePM
Contributor
Registered: 2018-07-08
Posts: 48

Re: Actual git repository -> compile error in version c56d3dd

That 's what I do:

sudo make PLATFORM=PM3GENERIC clean && sudo make PLATFORM=PM3GENERIC all

Any more ideas ?
Thanks in advance.

Offline

Quick reply

Write your message and submit

Board footer

Powered by FluxBB