Iam trying to compile glibc for arm-linux. I got the follwing error message:
../sysdeps/unix/sysv/linux/arm/sigaction.c: In function `__libc_sigaction': ../sysdeps/unix/sysv/linux/arm/sigaction.c:98: error: asm-specifier for variable `_a1' conflicts with asm clobber list ../sysdeps/unix/sysv/linux/arm/sigaction.c:137: error: asm-specifier for variable `_a1' conflicts with asm clobber list
The piece of code refers to is in the file sysdeps/unix/sysv/linux/arm/sysdeps.h within the following macro:
#define INLINE_SYSCALL(name, nr, args...) \ ({ unsigned int _sys_result; \ { \ /*Offending line of code */ \ register int _a1 asm ( "a1" ); \ LOAD_ARGS_##nr (args) \ asm volatile ("swi %1 @ syscall " #name \ : "=r" (_a1) \ : "i" (SYS_ify(name)) ASM_ARGS_##nr \ : "a1", "memory"); \ _sys_result = _a1; \ } \ if (_sys_result >= (unsigned int) -4095) \ { \ __set_errno (-_sys_result); \ _sys_result = (unsigned int) -1; \ } \ (int) _sys_result; })
Any ideas on how to get around this ?
John Eigelaar