Jon Dufresne 写道:
I just tried the command "all-target-libgcc" and "install-target-libgcc" for
building libgcc.a , but
the same error it takes: libgcc.a need target crti.o which is generated by
uclibc.


The following was recommended to me by George Boudreau as a list of
configure options for gcc during the static build stage:

--prefix=${TOOLS}    \
--build=${HOST}      \
--host=${HOST}       \
--target=${TARGET}   \
--with-sysroot=${ROOTFS} \
--disable-multilib   \
--disable-nls        \
--disable-shared     \
--enable-languages=c \
--disable-libssp        \
--disable-threads       \
--disable-decimal-float \
--disable-bootstrap  \
--without-headers    \
--with-newlib        \

Perhaps, "--without-headers"  is what you are missing. My guess is
this configures gcc to build without glibc headers. Someone correct me
if I'm wrong. Either way I suggest playing with that list of configure
options
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Thank you Jon , I just removed "--with-newlib" and it worked and generated libgcc.a.
Now I am trapped with uClibc building , uclibc error :

make[1]: `lib/ld-uClibc.so' is up to date.
CC ldso/libdl/libdl.oS
AR cr ldso/libdl/libdl_so.a
STRIP -x -R .note -R .comment ldso/libdl/libdl_so.a
CC libc/sysdeps/linux/arm/brk.os
CC libc/sysdeps/linux/arm/ioperm.os
CC libc/sysdeps/linux/arm/iopl.os
CC libc/sysdeps/linux/arm/mmap.os
CC libc/sysdeps/linux/arm/posix_fadvise.os
CC libc/sysdeps/linux/arm/posix_fadvise64.os
CC libc/sysdeps/linux/arm/sigaction.os
CC libc/sysdeps/linux/arm/__syscall_error.os
CC libc/sysdeps/linux/arm/syscall.os
libc/sysdeps/linux/arm/syscall.c: In function 'syscall':
libc/sysdeps/linux/arm/syscall.c:28: error: '__NR_syscall' undeclared (first use in this function)

This type would be more easier,after all we have the right libgcc.a. Going closing to success!

Thank you.

Binghoo Dang

_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

Reply via email to