Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Phatcat
Copy link
Contributor

@Phatcat Phatcat commented May 5, 2025

Getting this error on ubuntu-arm:

70.52 /usr/src/ember/src/libs/shared/shared/threading/Spinlock.h: In member function 'void ember::Spinlock::lock()':
70.52 /usr/src/ember/src/libs/shared/shared/threading/Spinlock.h:20:27: error: '__yield' was not declared in this scope
70.52    20 | #define YIELD_INSTRUCTION __yield()
70.52       |                           ^~~~~~~
70.52 /usr/src/ember/src/libs/shared/shared/threading/Spinlock.h:54:33: note: in expansion of macro 'YIELD_INSTRUCTION'
70.52    54 |                                 YIELD_INSTRUCTION;
70.52       |

@Phatcat Phatcat changed the title non-mac aarch64 need to use __asm__ volatile("yield" ::: "memory") non-clang aarch64 need to use __asm__ volatile("yield" ::: "memory") May 6, 2025
@Phatcat Phatcat changed the title non-clang aarch64 need to use __asm__ volatile("yield" ::: "memory") [RFC] Have non-clang aarch64 use __asm__ volatile("yield" ::: "memory") May 29, 2025
Getting this error on ubuntu-arm buildrunner:
```
70.52 /usr/src/ember/src/libs/shared/shared/threading/Spinlock.h: In member function 'void ember::Spinlock::lock()':
70.52 /usr/src/ember/src/libs/shared/shared/threading/Spinlock.h:20:27: error: '__yield' was not declared in this scope
70.52    20 | #define YIELD_INSTRUCTION __yield()
70.52       |                           ^~~~~~~
70.52 /usr/src/ember/src/libs/shared/shared/threading/Spinlock.h:54:33: note: in expansion of macro 'YIELD_INSTRUCTION'
70.52    54 |                                 YIELD_INSTRUCTION;
70.52       |
```
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

Successfully merging this pull request may close these issues.

1 participant