自分の環境はDebianで、H8用のクロスコンパイラの環境を設定したいです。
gccのバージョンは11.2.0です。
binutilsはすでにbuild, makeしたのですが、gccのほうがうまくいきません。gccの./configure ... がうまくいきませんでした。どうすれば解決しますか?下に実行結果と参考リンク先を載せておきます。
terminal
1~/gcc-11.2.0/build$ ../configure --target=h8300-elf --disable-nls --disable-threads --disable-shared --enable-languages=c --disable-werror 2checking build system type... x86_64-pc-linux-gnu 3checking host system type... x86_64-pc-linux-gnu 4checking target system type... h8300-unknown-elf 5checking for a BSD-compatible install... /usr/bin/install -c 6checking whether ln works... yes 7checking whether ln -s works... yes 8checking for a sed that does not truncate output... /bin/sed 9checking for gawk... gawk 10checking for libatomic support... no 11checking for libitm support... no 12checking for libsanitizer support... no 13checking for libvtv support... no 14checking for libhsail-rt support... no 15checking for libphobos support... no 16checking for gcc... gcc 17checking whether the C compiler works... yes 18checking for C compiler default output file name... a.out 19checking for suffix of executables... 20checking whether we are cross compiling... no 21checking for suffix of object files... o 22checking whether we are using the GNU C compiler... yes 23checking whether gcc accepts -g... yes 24checking for gcc option to accept ISO C89... none needed 25checking for g++... g++ 26checking whether we are using the GNU C++ compiler... yes 27checking whether g++ accepts -g... yes 28checking whether g++ accepts -static-libstdc++ -static-libgcc... yes 29checking for gnatbind... no 30checking for gnatmake... no 31checking whether compiler driver understands Ada... no 32checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 33checking whether g++ supports C++11 features by default... yes 34checking for objdir... .libs 35checking for the correct version of gmp.h... no 36configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+. 37Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify 38their locations. Source code for these libraries can be found at 39their respective hosting sites as well as at 40https://gcc.gnu.org/pub/gcc/infrastructure/. See also 41http://gcc.gnu.org/install/prerequisites.html for additional info. If 42you obtained GMP, MPFR and/or MPC from a vendor distribution package, 43make sure that you have installed both the libraries and the header 44files. They may be located in separate packages. 45~/gcc-11.2.0/build$ make 46make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。