From: "ariga masahiro" <ariga@link-lab.co.jp>
To: <crossgcc@sourceware.org>
Subject: Failed to make h8300 toolchain.
Date: Thu, 18 Jun 2009 07:53:00 -0000 [thread overview]
Message-ID: <78A007A4A5EA470D9430D47221C004A6@ariga> (raw)
[-- Attachment #1: Type: text/plain, Size: 3982 bytes --]
Hello everyone,
I tried to install h8300-elf ToolChain on Cygwin
using next sources.But I was encountered Segmentation errors like below,
and I am now in serious predicament.
Please help me.
Before installing h8300-elf ToolChain,I previously installed eCos source
specifying pre_built sh-elf.
After that I tried to install h8300-elf ToolChain.
<Sources>
binutils-2.19.1.tar.bz2
gcc-4.3.2.tar.bz2
newlib-1.16.0.tar.gz
I decompressed these in /src.
To do installation I made shell scripts.
I append these scripts below,please refer them.
I worked under /tmp/build
/tmp--
|--build-- : here is setup.sh
|--build_binutils : here is binutilsbuild.sh
|--build_gcc : here is buildgcc.sh
First of all I inserted newlib-1.16.0/newlib , newlib-1.16.0/libgloss into
gcc-4.3.2
in order to build in one-time.
$ cd /src
$ mv newlib-1.16.0/newlib gcc-4.3.2
$ mv newlib-1.16.0/libgloss gcc-4.3.2
And I built binutils and succeeded.
$ cd /tmp/build
$ . setup.sh
$ cd build_binutils
$ . binutilsbuild.sh
Next I tried ti build h8300-elf-gcc and encountered next error.
$ cd build_gcc
$ . buildgcc.sh
<error>
/tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/h8300-elf/h8300s/normal/newlib/
-isystem /tmp/build/build_gcc/h8300-elf/h8300s/normal/newlib/targ-include
-isystem
/src/gcc-4.3.2/newlib/libc/include -B/gnutools/h8300-elf/bin/ -B/gnutools/h8300-elf/lib/
-isystem /gnutools/h8300-elf/include -isystem
/gnutools/h8300-elf/sys-include -ms -mn -DPACKAGE_NAME
=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.16.0\" -DPACKAGE_STRING=\"newlib\
1.16.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I/src/gcc-4.3.2/newlib/libm/math -I/src/gcc-4.3.2/newlib/libm/ma
th/../common -O2 -DSMALL_DTOA -DSMALL_MEMORY -fno-builtin -O2 -g -g -O2
-ms -mn -c -o lib_a-wf_lgamma.o `test -f 'wf_lgamma.c' || echo
'/src/gcc-4.3.2/newlib/libm/math/'`wf_lgamma.c
In file included from /src/gcc-4.3.2/newlib/libc/include/math.h:5,
from /src/gcc-4.3.2/newlib/libm/math/../common/fdlibm.h:15,
from /src/gcc-4.3.2/newlib/libm/math/wf_lgamma.c:17:
/src/gcc-4.3.2/newlib/libc/include/sys/reent.h:95: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[8]: *** [lib_a-wf_lgamma.o] Error 1
make[8]: Leaving directory
`/tmp/build/build_gcc/h8300-elf/h8300s/normal/newlib/libm/math'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/tmp/build/build_gcc/h8300-elf/h8300s/normal/newlib/libm'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/tmp/build/build_gcc/h8300-elf/h8300s/normal/newlib'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/tmp/build/build_gcc/h8300-elf/h8300s/normal/newlib'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/tmp/build/build_gcc/h8300-elf/newlib'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/tmp/build/build_gcc/h8300-elf/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/build/build_gcc/h8300-elf/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/tmp/build/build_gcc'
make: *** [all] Error 2
make: Leaving directory `/tmp/build/build_gcc'
link@group129 /tmp/build/build_gcc
-- end of error
-- Shell scripts--
<setup.sh>
export TARGET=h8300-elf
export PREFIX=/gnutools
<binutilsbuild.sh>
/src/binutils-2.19.1/configure --target=$TARGET --prefix=$PREFIX -v 2>&1 |
tee configure.out
make -w all install 2>&1 | tee make.out
<buildgcc.sh>
/src/gcc-4.3.2/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++
--with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/gnutools/sh-elf/include
-v 2>&1 | tee configgcc.out
make -w all install 2>&1 | tee makegcc.txt
I alse send configgcc.out,makegcc.txt.
Please help me.
Masahiro Ariga
[-- Attachment #2: logfiles.tar.gz --]
[-- Type: application/x-gzip, Size: 168753 bytes --]
[-- Attachment #3: Type: text/plain, Size: 71 bytes --]
--
For unsubscribe information see http://sourceware.org/lists.html#faq
next reply other threads:[~2009-06-18 7:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 7:53 ariga masahiro [this message]
2009-06-22 20:45 ` Khem Raj
2009-06-23 1:06 ` ariga masahiro
2009-06-23 18:52 ` Khem Raj
2009-06-24 8:14 ` ariga masahiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=78A007A4A5EA470D9430D47221C004A6@ariga \
--to=ariga@link-lab.co.jp \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).