Author Topic: Building GCC cross-toolchain for Toshiba MeP  (Read 7880 times)

Offline cuevavirus

  • Hot Pockets
  • Useful Idiot
  • *****
  • Posts: 140
    • View Profile
Building GCC cross-toolchain for Toshiba MeP
« on: July 28, 2020, 11:59:34 PM »
The steps were performed on a Ubuntu 18 machine with gcc 7.5.0. If your host environment differs you may have to adjust a few steps. This comes with no libraries, not even libgcc.


Get these from your distro repo

gcc, binutils, make, gmp, mpfr, mpc



Create the directory where you want to install it. Create build directories outside of the source directories. PREFIX is the installation directory.


Code: [Select]
"$BINUTILS_SRC_DIR/configure" --prefix="$PREFIX" --target=mep-elf --disable-shared --disable-nls --disable-werror
make -j$(nproc)
make install


Code: [Select]
"$GCC_SRC_DIR/configure" --prefix="$PREFIX" --enable-languages=c --target=mep-elf --disable-libgcc --disable-libquadmath --disable-libssp --disable-multilib --disable-nls --disable-shared MAKEINFO="$GCC_SRC_DIR/missing"
make -j$(nproc)
make install