proxmark3 icon indicating copy to clipboard operation
proxmark3 copied to clipboard

Compilation Errors / MAC M1 / error: target attribute is not supported on this machine

Open cypher2001 opened this issue 1 year ago • 1 comments

In process of creating fresh files on new release. Previous versions compiled just fine on system.

MAC M1 / Sonoma 14.2.1

make VERBOSE=1 clean && make VERBOSE=1 -j

Finishes but pops 3 errors.

[-] CXX sma_multi.cpp [-] CC ../common_arm/ticks.c In file included from ../common_arm/ticks.c:19:0: ../common_arm/ticks.h:34:1: error: target attribute is not supported on this machine [-Werror=attributes] uint32_t RAMFUNC GetCountUS(void); ^ In file included from ../common_arm/flashmem.c:22:0: ../common_arm/ticks.h:34:1: error: target attribute is not supported on this machine [-Werror=attributes] uint32_t RAMFUNC GetCountUS(void); ^ ../common_arm/ticks.c:253:1: error: target attribute is not supported on this machine [-Werror=attributes] uint32_t RAMFUNC GetCountUS(void) { ^ [-] CC version_pm3.c

cypher2001 avatar Jan 05 '24 11:01 cypher2001

Thanks for reporting, If you are able to find a fix then that would be nice.

Something tells me that your compiler doesn't like the #define RAMFUNC . That where I would have started.

iceman1001 avatar Jan 05 '24 12:01 iceman1001