I'm currently trying to build a toolchain for my OS, and I've got stuck while compiling GCC. I've already got a i686-elf GCC working, and I've got binutils compiled to target my OS.
The issue, however, is when I compile GCC. I get:
Code: Select all
gcc-11.2.0/gcc/configure: line 4543: syntax error near unexpected token `-I"$srcdir"/ada/libgnat'
There are also some warnings earlier:
Code: Select all
gcc-11.2.0/gcc/configure: line 3070: ACX_NONCANONICAL_HOST: command not found
gcc-11.2.0/gcc/configure: line 3073: ACX_NONCANONICAL_TARGET: command not found
gcc-11.2.0/gcc/configure: line 3080: GCC_TOPLEV_SUBDIRS: command not found
Code: Select all
../gcc-11.2.0/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot=$SYSROOT --disable-nls --enable-languages=c
Has anyone built GCC 11.2.0 to target their OS, and had similar problems? What was the solution?
Am I just missing some dependency, or forgot to do an autoconf somewhere?
The wiki article for this topic is pretty outdated (it targets GCC 7.2.0), so I'll probably update that afterwards, if I can get 11.2.0 to build.
Thanks,
Barry