This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Please help to build h8300 toolchain
- From: "ariga masahiro" <ariga at link-lab dot co dot jp>
- To: <gcc at gcc dot gnu dot org>
- Date: Thu, 30 Jul 2009 14:33:51 +0900
- Subject: Please help to build h8300 toolchain
Hello,
I urgently need to install h8300 toolchain,or else...
I am struggling to build h8300 toolchain on Cygwin.
First I tried to build using latest GCC versions but all of them resulted in
error,
so I searched Internet and discovered others succeeded version.
They say succeeded in GCC3.3.2 so I am compelled to use GCC3.3.2.
I used next version.
binutils-2.14.tar.bz2
gcc-3.3.2.tar.bz2
newlib-1.11.0.tar.gz
I learned it is necessary to patch gcc for complying to double 64 bits.
I've got patch(gcc_diff-new.txt) for GCC3.3.2 source,and applied it.
To configure,I used next command shell.
--setup.sh
export TARGET=h8300-elf
export PREFIX=/gnutools
--for binuteils
/src/binutils-2.14/configure --target=$TARGET --prefix=$PREFIX --enable-multilib
-v 2>&1 | tee configure.out
make -w all install 2>&1 | tee make.out
--for gcc
/src/gcc-3.3.2/configure --target=$TARGET --prefix=$PREFIX --enable-multilib
--enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-gxx-include-dir=/gnutools/h8300-elf/include
-v 2>&1 | tee configgcc.out
make -w all install 2>&1 | tee makegcc.txt
I succeeded binuteils configure.
When I configured gcc there appeared next error.
-- error begin
/tmp/build/build_gcc/gcc/xgcc -B/tmp/build/build_gcc/gcc/ -nostdinc -B/tmp/build/build_gcc/h8300-elf/newlib/
-isystem /t
mp/build/build_gcc/h8300-elf/newlib/targ-include -isystem
/src/gcc-3.3.2/newlib/libc/include -B/gnutools/h8300-elf/bin/
-B/gnutools/h8300-elf/lib/ -isystem
/gnutools/h8300-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -mh -mn -mint32 -I.
-I/sr
c/gcc-3.3.2/libiberty/../include -W -Wall -Wtraditional -pedantic
/src/gcc-3.3.2/libiberty/concat.c -o concat.o
if [ x"" != x ]; then \
/tmp/build/build_gcc/gcc/xgcc -B/tmp/build/build_gcc/gcc/ -nostdinc
-B/tmp/build/build_gcc/h8300-elf/newlib/ -
isystem /tmp/build/build_gcc/h8300-elf/newlib/targ-include -isystem
/src/gcc-3.3.2/newlib/libc/include -B/gnutools/h8300
-elf/bin/ -B/gnutools/h8300-elf/lib/ -isystem
/gnutools/h8300-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -mh -mn -mint32
-I. -I/src/gcc-3.3.2/libiberty/../include -W -Wall -Wtraditional -pedantic
/src/gcc-3.3.2/libiberty/dyn-string.c -o p
ic/dyn-string.o; \
else true; fi
/tmp/build/build_gcc/gcc/xgcc -B/tmp/build/build_gcc/gcc/ -nostdinc -B/tmp/build/build_gcc/h8300-elf/newlib/
-isystem /t
mp/build/build_gcc/h8300-elf/newlib/targ-include -isystem
/src/gcc-3.3.2/newlib/libc/include -B/gnutools/h8300-elf/bin/
-B/gnutools/h8300-elf/lib/ -isystem
/gnutools/h8300-elf/include -c -DHAVE_CONFIG_H -O2 -g -O2 -mh -mn -mint32 -I.
-I/sr
c/gcc-3.3.2/libiberty/../include -W -Wall -Wtraditional -pedantic
/src/gcc-3.3.2/libiberty/dyn-string.c -o dyn-string.o
/src/gcc-3.3.2/libiberty/dyn-string.c: In function `dyn_string_init':
/src/gcc-3.3.2/libiberty/dyn-string.c:88: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [dyn-string.o] Error 1
make[3]: Leaving directory
`/tmp/build/build_gcc/h8300-elf/h8300h/normal/int32/libiberty'
make[2]: *** [multi-do] Error 1
make[2]: Leaving directory `/tmp/build/build_gcc/h8300-elf/libiberty'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/build/build_gcc/h8300-elf/libiberty'
make: *** [all-target-libiberty] Error 2
make: Leaving directory `/tmp/build/build_gcc'
-- error end
I append the patch and makegcc.txt in compressed form.
As I said I configure on latest Cygwin.
It7s preinstalled gcc version is following.
Although I do not know to change parameters.
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3
--prefix=/u
sr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/share/man --infodir=/usr/s
hare/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext
--enable-version-s
pecific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-li
bgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry
--enable-sjlj-exceptions --enable-hash
-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Please help installing h8 toolchain.
Masahiro Ariga
Attachment:
sendfiles.tar.bz2
Description: Binary data