交叉编译 glibc2.23-aarch64

weixin_42330265 2018-05-31 05:15:16
make csu/subdir_lib
make -r PARALLELMFLAGS="" -C ../glibc-2.23 objdir=`pwd` csu/subdir_lib
make[1]: Entering directory '/home/dilu/source/glibc-2.23'
make subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory '/home/dilu/source/glibc-2.23/csu'
/bin/sh: 1: cannot create /home/dilu/source/build-glibc/csu/__read_tp.o.T: Permission denied
gcc libc-start.c -c -std=gnu11 -fgnu89-inline -fno-stack-protector -O2 -Wall -Werror -Wundef -Wwrite-strings -fmerge-all-constants -frounding-math -g -Wstrict-prototypes -Wold-style-definition -ftls-model=initial-exec -U_FORTIFY_SOURCE -I../include -I/home/dilu/source/build-glibc/csu -I/home/dilu/source/build-glibc -I../sysdeps/unix/sysv/linux/aarch64 -I../sysdeps/aarch64/nptl -I../sysdeps/unix/sysv/linux/generic -I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/aarch64/fpu -I../sysdeps/aarch64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/aarch64/soft-fp -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -isystem /opt/cross/aarch64-linux/include -D_LIBC_REENTRANT -include /home/dilu/source/build-glibc/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -o /home/dilu/source/build-glibc/csu/libc-start.o -MD -MP -MF /home/dilu/source/build-glibc/csu/libc-start.o.dt -MT /home/dilu/source/build-glibc/csu/libc-start.o
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’
register long _x0 asm ("x0");
^
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:206:3: note: in expansion of macro ‘LOAD_ARGS_0’
LOAD_ARGS_0 () \
^
../sysdeps/unix/sysv/linux/aarch64/sysdep.h:179:8: note: in expansion of macro ‘LOAD_ARGS_1’
LOAD_ARGS_##nr (args) \
^
../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);
^
../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/dilu/source/build-glibc/csu/libc-start.o' failed
make[2]: *** [/home/dilu/source/build-glibc/csu/libc-start.o] Error 1
make[2]: Leaving directory '/home/dilu/source/glibc-2.23/csu'
Makefile:214: recipe for target 'csu/subdir_lib' failed
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory '/home/dilu/source/glibc-2.23'
Makefile:9: recipe for target 'csu/subdir_lib' failed
make: *** [csu/subdir_lib] Error 2

...全文
2070 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_42330265 2018-07-02
  • 打赏
  • 举报
回复
最后更新了binutils-2.29版本编译通过
jklinux 2018-05-31
  • 打赏
  • 举报
回复
/bin/sh: 1: cannot create /home/dilu/source/build-glibc/csu/__read_tp.o.T: Permission denied 用管理员的权限编译试下

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧