-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Building Spindle TestSuite on non-x86_64 architectures (aarch64) fails with a compile error
testsuite/symbind_test.c:139:2: error: #error Need rel type for architecture
139 | #error Need rel type for architecture
| ^~~~~
Root cause:
REL_TYPE is defined in the architecture guard block but not for other architectures:
Spindle/testsuite/symbind_test.c
Lines 136 to 138 in e731f24
| #if defined(__x86_64) | |
| #define REL_TYPE ElfW(Rela) | |
| #else |
Suggested fix
Add the appropriate architecture type constant for other architectures in the guard block.
#if defined(__x86_64) || || defined(__aarch64__)
#define REL_TYPE ElfW(Rela)
#else
#error Need rel type for architecture
#endif
Environment
- Spindle: devel branch (commit 4174224)
- OS: Rocky Linux 10.1 (Red Quartz)
- Compiler: GCC 15 (gnu15 toolchain)
- Affected file: testsuite/symbind_test.c
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels