[Uclinux-h8-devel] Re: 開発環境構築(Linux)について

Back to archive index

赤須正道 akasu****@aks*****
2003年 12月 14日 (日) 19:04:10 JST


相原さんへ

相原さんがもし、H8用のGCCを構築できない・・・ということでしたら
私も同じ悩みでしたね。 私もずっと困っていまして、相原さんと
同じようなサイトに行ったりしてました。 
私が最近、別のMLで得た回答が以下のURLでした。
今はH8のGCCを動かしてます。
(h8300-elf-gdbでシミュレーション動作を確認できてます)

http://www.infonia.ne.jp/~nature/TOPPERS/jsp13h83elf.txt

お試しください。
でも、もし私の勘違いでしたら、ご容赦ください。
−−−−−−−−−−−−
(有)アカス企画 赤須正道


> -----Original Message-----
> From: uclin****@lists*****
> [mailto:uclin****@lists*****]On Behalf Of
> Kazuharu Aihara
> Sent: Saturday, December 13, 2003 3:46 PM
> To: Uclin****@lists*****
> Subject: [Uclinux-h8-devel] 開発環境構築(Linux)について
>
>
>
>  皆さん初めまして.相原と申します.
>
>  出来るだけ自力で解決しようとここ何日か奮闘しましたが,どうしても
> 上手く行かないので,お力を拝借したくポストさせて頂きます.どうぞ宜し
> くお願い致します.
>
>  環境は,RedHad 8
>   rpm -qaでのバージョンは,gcc : 3.2-7,glibc : 2.2.93-5です(関係
>  あるか分かりませんが念のため)
>
>  PUKIWIKIのFrontPage下にあります,「開発環境」を参考にしています.
>   http://uclinux-h8.sourceforge.jp/pukiwiki/pukiwiki.php
>   
> http://uclinux-h8.sourceforge.jp/pukiwiki/pukiwiki.php?%B3%AB%C8%A
> F%B4%C4%B6%AD
>
>  その他,
>   http://park11.wakwak.com/~domo/uClinux.html
>   http://nishimoto-site.net/~h8max/
>  辺りも参考にしております.
>
>
> ・binutils-2.13.2
> (デフォルトですと後々困るか,と思い,取り敢ず/usr/local/uclinux下になる様に)
>
> # ./configure --target=h8300-elf --prefix=/usr/local/uclinux
> #make
> #make install
>
>  binutilsのインストールは特に問題は無いと思います.
>
>
> ・gcc 3.3
> gccは,http://ftp.gnu.org/gnu/gcc/gcc-3.3/から取得(したと記憶しています)
> patchは,gcc-3.3 patch
>  gcc-3.3.diff  16.7 KB  2003-10-22 22:17
> 2bfeedef8913029d73a0e35c20abdb88
> を使いました.
>
> # tar -zxvf gcc-3.3.tar.gz
> #cd gcc-3.3
> # patch -p1 <../gcc-3.3.diff
> patching file gcc/config/float-h8300.h
> patching file gcc/config/h8300/extfloatlib.c
> patching file gcc/config/h8300/float-h8300.h
> patching file gcc/config/h8300/h8300.h
> patching file gcc/config/h8300/t-h8300
> patching file gcc/config/h8300/t-h8300~
> can't find file to patch at input line 417
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff -Nru gcc-3.3/gcc/dp-bit.c gcc-3.3-h8300/gcc/dp-bit.c
> |--- gcc-3.3/gcc/dp-bit.c       2003-07-28 17:02:45.000000000 +0900
> |+++ gcc-3.3-h8300/gcc/dp-bit.c 2003-07-26 20:52:56.000000000 +0900
> --------------------------
> File to patch:         <===と言われてしまう.分からないので[ENTER]
> Skip this patch? [y] y     <===スキップするしかないので[y]
> Skipping patch.
> 1 out of 1 hunk ignored
> #
>  gcc-3.3ですとこの様状況になってしまいました.
>
>
> 取り敢えずこの状態でconfigure
>
> # ./configure --target=h8300-elf --prefix=/usr/local/uclinux
> --with-newlib \
>   --with-headers=/home/uClinux/newlib-1.11.0/newlib/libc/include
>
> Using ggc-page for garbage collection.
> checking whether to enable maintainer-specific portions of Makefiles... no
> Links are now set up to build a cross-compiler for h8300-unknown-elf
>   from i686-pc-linux-gnu.
> updating cache ../config.cache
> creating ./config.status
> creating Makefile
> creating intl/Makefile
> creating fixinc/Makefile
> creating gccbug
> creating mklibgcc
> creating mkheaders
> creating auto-host.h
> #
> という具合に一応Makefileは作られます.続いて
> #make
> すると
>
> dp-bit.c:1:1: unterminated #if
> make[2]: *** [libgcc/./_pack_df.o] エラー 1
> make[2]: 出ます ディレクトリ `/home/uClinux/gcc-3.3/gcc'
> make[1]: *** [stmp-multilib] エラー 2
> make[1]: 出ます ディレクトリ `/home/uClinux/gcc-3.3/gcc'
> make: *** [all-gcc] エラー 2
> [root @ ShuttleX gcc-3.3]#
>
>  dp-bit.c絡みのエラーという事でしょうか.patchが上手くあたっていない
> のが原因でしょうか?
>
>
>
> ※gcc-core-3.3.tar.gzを使い,更に“-enable-languages="c,c++"”を付ける.
> # ./configure --target=h8300-elf --prefix=/usr/local/uclinux
> --with-newlib \
>   --with-headers=/home/uClinux/newlib-1.11.0/newlib/libc/include
> --enable-languages="c,c++"
>
> dp-bit絡みのエラーは表示されない模様
>
> #make
> #make install
>  で正常にインストール出来たかの様に見えるが,/usr/local/uclinux以下の
>  ディレクトリにincludeディレクトリが存在しない,何故?
>
> ※gcc-3.2.1と3.2.1のパッチで試してみました.
>  patch絡みのエラーは表示されませんでした.
> #make
> #make install
>  これといった問題は無いのですが,elf2fltに必要なファイルが
> /usr/local/uclinux下
> に(特にincludeの下は空)存在しない
>
>
>  取り敢ずここまで,です.elf2fltまで行き着かず現在この辺りでうろうろしてお
り
> ます.
>
>  長文失礼致しました.ご助言頂ければ幸いです.それでは失礼致します.
>
>
> --
> Kazuharu Aihara
>  e-mail: mailto:emdes****@din*****
>  WWW: http://www.din.or.jp/~emdes-k/index.html
>
> _______________________________________________
> Uclinux-h8-devel mailing list
> Uclin****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/uclinux-h8-devel
>
>
>




Uclinux-h8-devel メーリングリストの案内
Back to archive index