Forums: Help (Thread #8599)

MinGWでつくるgccについて (2005-09-03 12:19 by Anonymous #16216)

miwです、お世話になります。

beshioさんに教えていただいた、
http://www.kikaiken.org/lib/junk/h8dev-doc-linux/index.html
からgcc3.4.1をCygwin上で動かして、いまのところうまく3052のRAMでHOSを動かせています。
しかし、Cygwinをいれてからでないとコンパイルできないとか、gcc3.4.1自体ののコンパイルに時間がかかるのが難点ですね。

そこで、m-araiさんのようにMinGWをつかって素のWin上で動作するようにgcc3.1.4自体をコンパイルしたいと考えております。
m-araiさんのHPを参考にさせていただきたいのですが、パッチへのリンク
http://www.engr.uconn.edu/~tmahar/avrgcc/avrgcc-patches.htm
http://www.engr.uconn.edu/~tmahar/avrgcc/gcc-20020610-mingw32_patch.tar.gz
がなくなっております。

すみませんが、これらのパッチをいただけないでしょうか?よろしくお願いします。

Reply to #16216×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MinGWでつくるgccについて (2005-09-03 21:38 by m-arai #16227)

探してみたのですが、ちょっと見つかりません。

が、件のパッチは、無いライブラリ関数や定数定義を
0にするだけのものだったはずです。
ということで、適当にmake、undeclaredを地道に
潰してみました。

3.4.1では、

gcc/collect2.hに

#define vfork() 0
#define pipe(x) 0
#define kill(x,y) 0

gcc/fixinc/server.hに

#define SIGQUIT 0
#define SIGALRM 0
#define SIGKILL 0
#define SIGPIPE 0
#define F_DUPFD 0
#define fcntl(x,y,z) 0
#define vfork() 0
#define fork() 0
#define pipe(x) 0
#define kill(x,y) 0
#define alarm(x) 0
#define wait(x) 0

を加えることで、一応gcc+newlibのmakeは最後まで
通るようです。
4.0.1は、そういった小細工は無しで通りました。
以上、ご参考まで。

makeが完走しても実際の動作に問題があるとか、
どうしても件のパッチが欲しいというお話でしたら、
少し時間が必要になると思います。
ゴミの山を探索して、昔焼いたCDかDVDを掘り出さねば
ならないでしょう。

不具合だったら、探し当てたとしてそれが解決に
なるとは限りませんけど。なにしろ古いものですから。
Reply to #16216

Reply to #16227×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MinGWでつくるgccについて (2005-09-04 15:45 by Anonymous #16243)

miwです。

m-arai様、ありがとうございます。
とりあえずやってみました。
が、他の設定?かなにかで別件のエラーがでてしまいました。他のライブラリ(flexやbison)もいれてみたんですけど、残念です。
今,別のPCで一からやりなおしてます。
こっちに期待してます。

Reply to #16227

Reply to #16243×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MinGWでつくるgccについて (2005-09-04 19:26 by m-arai #16248)

もしlibgcc2のコンパイルで、サーチパスに入っている
筈のヘッダファイルに関してNo such file or directory
で止まるのでしたら、
gcc/Makefileの745行目辺りの
INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
から-I$(@D)を削除してみてください。

ちなみに、手元の環境ではbisonもflexも入っていません。

「他の設定?かなにかで別件のエラー」では、残念
ですが、これ以上何も書けることはありません。
Reply to #16243

Reply to #16248×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MinGWでつくるgccについて (2005-09-05 13:42 by Anonymous #16265)

Miwです。

m-arai様:
まさしく、その問題がでておりました。
さきほど、うまくコンパイルできました。
また、動作も大丈夫そうです。

ただ、h8300-hms-gcc --version とすると、文字化けして表示されちゃいますが、まあいいか。
ありがとうございました。
Reply to #16216

Reply to #16265×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MinGWでつくるgccについて (2005-09-05 21:53 by m-arai #16268)

最後の部分は独り言のようですが、一応。

EUC-JPに対応したターミナルなら次のように表示された
筈です。
C:/msys/1.0/local/h8300-hms/bin/../lib/gcc/h8300-hms/3.4.1/specs から spec を読み込み中
コンフィグオプション: ../gcc-3.4.1/configure --target=h8300-hms --prefix=/usr/local/h8300-hms --enable-languages=c --with-newlib
スレッドモデル: single
gcc バージョン 3.4.1

環境変数LANGをCにでもしておけば、
Reading specs from C:/msys/1.0/local/h8300-hms/bin/../lib/gcc/h8300-hms/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --target=h8300-hms --prefix=/usr/local/h8300-hms --enable-languages=c --with-newlib
Thread model: single
gcc version 3.4.1

となります。
Reply to #16265

Reply to #16268×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MinGWでつくるgccについて (2005-09-06 00:03 by miw #16274)

miwです。

Cygwinでやったときは、そのまま英語がでていたので気にならなかったのですが、msysだと日本語がはいってたんですね。LANG=Cでやってみます。
Reply to #16268

Reply to #16274×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login