クロスコンパイラの環境設定

219 views
Skip to first unread message

soujiro0725

unread,
Aug 24, 2011, 8:20:53 PM8/24/11
to KOZOS友の会
最近「12ステップで…」を始めました。マイコンは初めてではありません。

パソコン環境は
Ubuntu8.04Hardy
gcc4.2.3
binutils-2.21.1

gccとbinutilsはインストール済みだったので、ダウングレードし、書籍にあるバージョンを再インストールを試みました。再インストールせずと
も環境設定が可能ならば、それに越したことはないんですが…


binutilsをインストールしようとすると…


[@soichi ~/Download/binutils-2.19.1]$ ./configure --target=h8300-elf --
disable-nls
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... h8300-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error:
in `/home/soichi/Download/binutils-2.19.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
[@soichi ~/Download/binutils-2.19.1]$ make
make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.


となってしまいます。gcc-3.4.6も同様です。
なにが問題でしょうか?


SAKAI Hiroaki

unread,
Sep 1, 2011, 7:12:58 PM9/1/11
to kozos_t...@googlegroups.com, hsa...@saturn.dti.ne.jp
坂井です.遅いお返事ですみません.

以下ですが,configureスクリプトでのCコンパイラのチェックで
エラーになっているのが気になります.

以下を教えていただければと思います.

・「既にインストール済み」とありますが,「既にインストール済み」だったのは
Ubuntu上で動作するホスト用gccでしょうか? それともH8用クロスgccでしょうか?

・「ダウングレード」とありますが,具体的にどのような作業を行ったのでしょうか?

・config.logに詳細なエラーが出ているようです.これを見せていただくことは
可能でしょうか?

・Ubuntu上で gcc -v を行った結果をいただけますでしょうか.

今さらの返信になってしまっていたらごめんなさい.


<1d4a2ada-3af7-4237...@p37g2000prp.googlegroups.com>の記事において
souji...@gmail.comさんは書きました。

Reply all
Reply to author
Forward
0 new messages