servus all,
i try to build a cross gcc for some days already;
host is windows xp sp3, target should be arm-elf and the build
environment is mingw/msys.
mingw is separately composed of
binutils-2.18.50-20080109-2
gcc-core-3.4.5-20060117-3
mingwrt-3.15.1-mingw32
mingw32-make-3.81-2
mingw-utils-0.3
w32api-3.12-mingw32-dev
msys is composed of
msysCORE-1.0.11-20080826
flex-2.5.33-MSYS-1.0.11-1
crypt-1.1-1-MSYS-1.0.11-1
regex-0.12-MSYS-1.0.11-1
perl-5.6.1-MSYS-1.0.11-1
bison-2.3-MSYS-1.0.11-1
m4-1.4.7-MSYS
additionally i've build
autoconf-2.63
automake-1.10
and install them into "msys/home/install".
source archives for cross gcc are
binutils-2.19
gcc-4.3.3
gmp-4.2.4
mpfr-2.4.1
newlib-1.17.0
"msys/home/install/bin" and mingw bin directory are added to msys PATH
environment variable.
based on this configuration and lots of tutorials from the inet i wrote
a simple shell script (see attachment) for building my cross gcc.
but i've no success. everytime i run the script, i get following errors:
1 | make[3]: Entering directory `/home/widar/src_gcc/gcc-4.3.3_build/libiberty/testsuite'
|
2 | make[3]: Nothing to be done for `install'.
|
3 | make[3]: Leaving directory `/home/widar/src_gcc/gcc-4.3.3_build/libiberty/testsuite'
|
4 | make[2]: Leaving directory `/home/widar/src_gcc/gcc-4.3.3_build/libiberty'
|
5 | /bin/sh: line 3: cd: arm-elf/libstdc++-v3: No such file or directory
|
6 | make[1]: *** [install-target-libstdc++-v3] Error 1
|
7 | make[1]: Leaving directory `/home/widar/src_gcc/gcc-4.3.3_build'
|
8 | make: *** [install] Error 2
|
furthermore i get some STATUS_ACCESS_VIOLATIONS during build process:
1 | make[3]: Entering directory `/home/widar/src_gcc/gcc-4.3.3_build/gcc'
|
2 | /home/widar/src_gcc/gcc-4.3.3_build/./gcc/xgcc -B/home/widar/src_gcc/gcc-4.3.3_build/./gcc/ -nostdinc -B/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/newlib/ -isystem /home/widar/src_gcc/gcc-4.3.3_build/arm-elf/newlib/targ-include -isystem /home/widar/src_gcc/gcc-4.3.3/newlib/libc/include -B/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgloss/arm -L/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgloss/libnosys -L/home/widar/src_gcc/gcc-4.3.3/libgloss/arm -B/home/widar/gcc_arm_elf/arm-elf/bin/ -B/home/widar/gcc_arm_elf/arm-elf/lib/ -isystem /home/widar/gcc_arm_elf/arm-elf/include -isystem /home/widar/gcc_arm_elf/arm-elf/sys-include -O2 -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc -I../../gcc-4.3.3/gcc -I../../gcc-4.3.3/gcc//home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc -I../../gcc-4.3.3/gcc/../include -I../../gcc-4.3.3/gcc/../libcpp/include -I/home/widar/src_gcc/gcc-4.3.3_build/./gmp -I/home/widar/src_gcc/gcc-4.3.3/gmp -I/home/widar/src_gcc/gcc-4.3.3_build/./mpfr -I/home/widar/src_gcc/gcc-4.3.3/mpfr -I../../gcc-4.3.3/gcc/../libdecnumber -I../../gcc-4.3.3/gcc/../libdecnumber/dpd -I../libdecnumber -g -Os -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -Dinhibit_libc \
|
3 | -c ../../gcc-4.3.3/gcc/crtstuff.c -DCRT_BEGIN \
|
4 | -o /home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc/crtbegin.o
|
5 | 0 [main] sh" 3952 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
|
6 | 1449 [main] sh" 3952 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
|
7 | /home/widar/src_gcc/gcc-4.3.3_build/./gcc/xgcc -B/home/widar/src_gcc/gcc-4.3.3_build/./gcc/ -nostdinc -B/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/newlib/ -isystem /home/widar/src_gcc/gcc-4.3.3_build/arm-elf/newlib/targ-include -isystem /home/widar/src_gcc/gcc-4.3.3/newlib/libc/include -B/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgloss/arm -L/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgloss/libnosys -L/home/widar/src_gcc/gcc-4.3.3/libgloss/arm -B/home/widar/gcc_arm_elf/arm-elf/bin/ -B/home/widar/gcc_arm_elf/arm-elf/lib/ -isystem /home/widar/gcc_arm_elf/arm-elf/include -isystem /home/widar/gcc_arm_elf/arm-elf/sys-include -O2 -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc -I../../gcc-4.3.3/gcc -I../../gcc-4.3.3/gcc//home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc -I../../gcc-4.3.3/gcc/../include -I../../gcc-4.3.3/gcc/../libcpp/include -I/home/widar/src_gcc/gcc-4.3.3_build/./gmp -I/home/widar/src_gcc/gcc-4.3.3/gmp -I/home/widar/src_gcc/gcc-4.3.3_build/./mpfr -I/home/widar/src_gcc/gcc-4.3.3/mpfr -I../../gcc-4.3.3/gcc/../libdecnumber -I../../gcc-4.3.3/gcc/../libdecnumber/dpd -I../libdecnumber -g -Os -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -Dinhibit_libc \
|
8 | -c ../../gcc-4.3.3/gcc/crtstuff.c -DCRT_END \
|
9 | -o /home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc/crtend.o
|
10 | 0 [main] sh" 2516 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
|
11 | 14209 [main] sh" 2516 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
|
12 | /home/widar/src_gcc/gcc-4.3.3_build/./gcc/xgcc -B/home/widar/src_gcc/gcc-4.3.3_build/./gcc/ -nostdinc -B/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/newlib/ -isystem /home/widar/src_gcc/gcc-4.3.3_build/arm-elf/newlib/targ-include -isystem /home/widar/src_gcc/gcc-4.3.3/newlib/libc/include -B/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgloss/arm -L/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgloss/libnosys -L/home/widar/src_gcc/gcc-4.3.3/libgloss/arm -B/home/widar/gcc_arm_elf/arm-elf/bin/ -B/home/widar/gcc_arm_elf/arm-elf/lib/ -isystem /home/widar/gcc_arm_elf/arm-elf/include -isystem /home/widar/gcc_arm_elf/arm-elf/sys-include -g -Os -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -Os -I. -I/home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc -I../../gcc-4.3.3/gcc -I../../gcc-4.3.3/gcc//home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc -I../../gcc-4.3.3/gcc/../include -I../../gcc-4.3.3/gcc/../libcpp/include -I/home/widar/src_gcc/gcc-4.3.3_build/./gmp -I/home/widar/src_gcc/gcc-4.3.3/gmp -I/home/widar/src_gcc/gcc-4.3.3_build/./mpfr -I/home/widar/src_gcc/gcc-4.3.3/mpfr -I../../gcc-4.3.3/gcc/../libdecnumber -I../../gcc-4.3.3/gcc/../libdecnumber/dpd -I../libdecnumber \
|
13 | -c -o /home/widar/src_gcc/gcc-4.3.3_build/arm-elf/libgcc/crti.o -x assembler-with-cpp ../../gcc-4.3.3/gcc/config/arm/crti.asm
|
i become desperate.
actually the goal is to create a arm-elf cross gcc with project specific
customizable newlib syscalls and no generally os dependecy or bareboard
support only.
can anybody help me?
thank you,
daniel