Open vs-pp opened 2 years ago
<sys/ioctl.h>
doesn't get included since the #if
surrounding it doesn't check for compilation on MacOS.
Quick fix - add || __APPLE__
to each #if
condition.
Files that need changes:
But after that I get another error:
build/genautomata /Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/common.md /Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/config/riscv/riscv.md \
insn-conditions.md > tmp-automata.c
/Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/config/riscv/riscv.md:3146:1: unknown value `V1SF' for attribute `mode'
/Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/config/riscv/riscv.md:3146:1: unknown value `V1SF' for attribute `mode'
/Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/config/riscv/riscv.md:3137:1: unknown value `V1SF' for attribute `mode'
/Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/config/riscv/riscv.md:3137:1: unknown value `V1SF' for attribute `mode'
make[2]: *** [s-attrtab] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh /Users/lukamac/repos/pulp-riscv-gnu-toolchain/build/../riscv-gcc/gcc/../move-if-change tmp-automata.c insn-automata.c
echo timestamp > s-automata
rm cpp.pod gcov-dump.pod gcov.pod gcov-tool.pod gpl.pod gfdl.pod fsf-funding.pod gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [stamps/build-gcc-newlib-stage1] Error 2
I get the following error before build fails with the error above
pulp-riscv-gnu-toolchain/riscv-binutils-gdb/gdb/python/python.c:1744:3: error: no matching function for call to '_PyImport_FixupBuiltin'
_PyImport_FixupBuiltin (gdb_module, "_gdb");
Untested patch for above based on code in cpython repo
PyObject *modules = PyDict_New();
if (modules == NULL)
fprintf (stderr, "_initialize_python: can't make modules dictionary");
_PyImport_FixupBuiltin (gdb_module, "_gdb", modules);
I am compiling on MacOS Catalina...10.15.7
Cloned toolchain from.
Configured using..
Build fails during compiling readline