This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
when i compiler cross-compiler for arm on x86_64 machhine. i have do the follow commands
#build linux-kernel-glibc-headers mkdir -p $TARGET_PREFIX/lib mkdir -p $TARGET_PREFIX/usr/lib mkdir -p $TARGET_PREFIX/include
make ARCH=arm menuconfig make ARCH=arm include/asm include/linux/version.h include/asm-arm/.arch
cp -r include/asm-generic/ $TARGET_PREFIX/include/ cp -r include/linux/ $TARGET_PREFIX/include/ cp -r include/asm-arm $TARGET_PREFIX/include/asm
../binutils-2.16.1/configure --target=$TARGET --prefix=$PREFIX --disable-nls --with-sysroot=$TARGET_PREFIX
make make install
#build-glibc-headers make build-glibc-headers ../glibc-2.3.6/configure --prefix="/usr" --host=$TARGET --without-cvs --disable-sanity-checks --with-headers=$TARGET_PREFIX/include/ --enable-hacker-mode
mkdir -p stdio-common touch stdio-common/errlist-compat.c
make cross-compiling=yes install_root=$TARGET_PREFIX prefix="" CFLAGS=-DBOOTSTRAP_GCC install-headers
mkdir $TARGET_PREFIX/include/gnu touch $TARGET_PREFIX/include/gnu/stubs.h
#build gcc-4.1.1 ../gcc-4.1.1/configure --target=$TARGET --prefix=$PREFIX --disable-multilib --with-newlib --without-headers --with-local-prefix=$TARGET_PREFIX --disable-nls --enable-threads=no --enable-symvers=gnu --enable-__cxa_atexit --disable-shared --enable-languges=c
make all-gcc make install-gcc
#build glibc-2.3.6 export libc_cv_forced_unwind=yes export libc_cv_c_cleanup=yes
BUILD_CC=gcc CC=arm-linux-gcc AR=arm-linux-ar RANLIB=arm-linux-ranlib ../glibc-2.3.6/configure --host=$TARGET --build=x86_64-unknown-linux-gnu --prefix="/usr" --enable-kernel=2.4.3 --without-tls --without-__thread --without-cvs --disable-profile --disable-debug --without-gd --enable-shared --enable-add-ons=linuxthreads --with-headers=/root/projects/2410-linux/tools/arm-linux/include/
arm-linux-gcc ../linuxthreads/sysdeps/unix/sysv/linux/raise.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -fPIC -I../include -I. -I/root/projects/2410-linux/build-tools/build-glibc/signal -I.. -I../libio -I/root/projects/2410-linux/build-tools/build-glibc -I../sysdeps/arm/elf -I../linuxthreads/sysdeps/unix/sysv/linux/arm -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/arm -I../sysdeps/unix/sysv/linux/arm -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/arm -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/arm/fpu -I../sysdeps/arm -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /root/projects/2410-linux/tools/lib/gcc/arm-linux/4.1.1/include -isystem /root/projects/2410-linux/tools/arm-linux/include/ -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -DIS_IN_rtld=1 -o /root/projects/2410-linux/build-tools/build-glibc/signal/rtld-raise.os -MD -MP -MF /root/projects/2410-linux/build-tools/build-glibc/signal/rtld-raise.os.dt -MT /root/projects/2410-linux/build-tools/build-glibc/signal/rtld-raise.os ../linuxthreads/sysdeps/unix/sysv/linux/raise.c: In function 'raise': ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32: error: '__pthread_raise' undeclared (first use in this function) ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32: error: (Each undeclared identifier is reported only once ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32: error: for each function it appears in.) ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32: warning: type defaults to 'int' in declaration of '_fn' ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:32: error: called object '*_fn' is not a function ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:34: warning: control reaches end of non-void function make[4]: *** [/root/projects/2410-linux/build-tools/build-glibc/signal/rtld-raise.os] Error 1 make[4]: Leaving directory `/root/projects/2410-linux/build-tools/glibc-2.3.6/signal' make[3]: *** [/root/projects/2410-linux/build-tools/build-glibc/signal/rtld-sigaction.os] Error 2 make[3]: Leaving directory `/root/projects/2410-linux/build-tools/glibc-2.3.6/elf' make[2]: *** [/root/projects/2410-linux/build-tools/build-glibc/elf/rtld-libc.a] Error 2 make[2]: Leaving directory `/root/projects/2410-linux/build-tools/glibc-2.3.6/elf' make[1]: *** [elf/subdir_lib] Error 2 make[1]: Leaving directory `/root/projects/2410-linux/build-tools/glibc-2.3.6' make: *** [lib] Error 2
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |