Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cypher2001 opened this issue Jan 5, 2024 · 1 comment

Comments

@cypher2001
Copy link

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

@iceman1001
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants