336 名前:デフォルトの名無しさん [2007/12/18(火) 13:44:38 ] www.mingw.org/MinGWiki/index.php/mingw%20hosted%20cross%20compiler を参考にしてクロスコンパイラを生成しようとしていますが、問題が2つ出てきました。 環境はbuild-system = host-system = i386-pc-mingw32でtarget-system = arm-unknwon-elf (arm7tdmi)です。 1.本当に成功したのかわからない(Build and installing the c compiler) サイトにはmkfixinc.shをi?86-*-mingw32*からi?86-*-armにしろと書いてありましたが、 fixincでmakeエラーになったのでarm-*-elf*に変更してやったらmake installまで成功しました。 しかし、インストール先のフォルダを見ると直下のincludeフォルダが空になっています。 fixincはどうやら、includeファイルを生成するもののようなのですが、これは成功なのでしょうか? 以下スクリプトを一部書き換えたところです。 $SRCDIR/configure \ --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=arm-elf --with-cpu=arm7tdmi -with-newlib --prefix=$prefix --enable-threads --disable-nls --enable-languages=c,c++ --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug 2>&1 | tee gcc_configure.log make all-gcc CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" LDFLAGS=-s | tee make-c-only.log 2>&1 成功するがインストール先フォルダ直下のincludeフォルダは空になっている。 2は次をご覧ください。