http://inaz2.hatenablog.com/entry/2015/12/01/204201
を再現しようとして
http://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/#IDComment1016903189
venkateshさんと同じ症状
ubuntu@ubuntu-xenial:~/i0z0m/build-glibc-aarch64-linux-gnu$ sudo make -j4 csu/subdir_lib
略
/home/ubuntu/i0z0m/build-glibc-aarch64-linux-gnu/csu/check_fds.o
In file included from ../sysdeps/aarch64/nptl/tls.h:47:0,
from ../include/errno.h:27,
from check_fds.c:18:
check_fds.c: In function ‘check_one_fd’:
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:203:17: error: invalid register name for ‘_x0’
register long _x0 asm ("x0");
略
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:211:17: error: invalid register name for ‘_x1’
register long _x1 asm ("x1") = _x1tmp;
略
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:215:17: error: invalid register name for ‘_x2’
略
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:219:17: error: invalid register name for ‘_x3’
略
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:180:22: error: invalid register name for ‘_x8’
略
../o-iterator.mk:9: recipe for target '/home/ubuntu/i0z0m/build-glibc-aarch64-linux-gnu/csu/check_fds.o' failed
make[2]: *** [/home/ubuntu/i0z0m/build-glibc-aarch64-linux-gnu/csu/check_fds.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../sysdeps/aarch64/nptl/tls.h:47:0,
from ../include/link.h:45,
from ../include/dlfcn.h:4,
from ../sysdeps/generic/ldsodefs.h:32,
from ../sysdeps/aarch64/ldsodefs.h:46,
from ../sysdeps/gnu/ldsodefs.h:46,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:22,
from ../sysdeps/unix/sysv/linux/aarch64/ldsodefs.h:22,
from libc-start.c:22:
libc-start.c: In function ‘__libc_start_main’:
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:203:17: error: invalid register name for ‘_x0’
略
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:180:22: error: invalid register name for ‘_x8’
register long _x8 asm ("x8") = (name);
^
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:189:2: note: in expansion of macro ‘INTERNAL_SYSCALL_RAW’
INTERNAL_SYSCALL_RAW(SYS_ify(name), err, nr, args)
^
../sysdeps/unix/sysv/linux/exit-thread.h:36:7: note: in expansion of macro ‘INTERNAL_SYSCALL’
INTERNAL_SYSCALL (exit, err, 1, 0);
^
In file included from ../include/link.h:45:0,
from ../include/dlfcn.h:4,
from ../sysdeps/generic/ldsodefs.h:32,
from ../sysdeps/aarch64/ldsodefs.h:46,
from ../sysdeps/gnu/ldsodefs.h:46,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:22,
from ../sysdeps/unix/sysv/linux/aarch64/ldsodefs.h:22,
from libc-start.c:22:
../sysdeps/aarch64/nptl/tls.h:105:21: error: __builtin_thread_pointer is not supported on this target
((struct pthread *)__builtin_thread_pointer () - 1)
^
libc-start.c:279:30: note: in expansion of macro ‘THREAD_SELF’
struct pthread *self = THREAD_SELF;
^
../o-iterator.mk:9: recipe for target '/home/ubuntu/i0z0m/build-glibc-aarch64-linux-gnu/csu/libc-start.o' failed
make[2]: *** [/home/ubuntu/i0z0m/build-glibc-aarch64-linux-gnu/csu/libc-start.o] Error 1
make[2]: Leaving directory '/home/ubuntu/i0z0m/glibc-2.22/csu'
Makefile:213: recipe for target 'csu/subdir_lib' failed
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/ubuntu/i0z0m/glibc-2.22'
Makefile:9: recipe for target 'csu/subdir_lib' failed
make: *** [csu/subdir_lib] Error 2