Am starting a new mail to avoid confusions in the existing ones. I tried to build the RV32E toolchain as pointed by Jim. Here is what I did,
and after cloning I cd into 'riscv-gcc' and 'riscv-binutils-gdb' directories and checkout riscv-next branch,
Simple programs get built fine. But when I compile my project code using the built toolchain I am getting the error as shown below. The same code works fine with rv32gc toolchain and other arm toolchains. Unfortunately I cannot put the source here. Please let me know if I am not picking the right repositories
temp.c:189:1: internal compiler error: in get_variable_section, at varasm.c:1150
}
^
0xe6e8e7 get_variable_section(tree_node*, bool)
../.././riscv-gcc/gcc/varasm.c:1149
0xe76360 assemble_variable(tree_node*, int, int, int)
../.././riscv-gcc/gcc/varasm.c:2279
0xe7bd99 varpool_node::assemble_decl()
../.././riscv-gcc/gcc/varpool.c:590
0xe7c9b3 varpool_node::assemble_decl()
../.././riscv-gcc/gcc/cgraph.h:1960
0xe7c9b3 symbol_table::output_variables()
../.././riscv-gcc/gcc/varpool.c:756
0x72ef4f symbol_table::compile()
../.././riscv-gcc/gcc/cgraphunit.c:2624
0x73177d symbol_table::compile()
../.././riscv-gcc/gcc/cgraphunit.c:2537
0x73177d symbol_table::finalize_compilation_unit()
../.././riscv-gcc/gcc/cgraphunit.c:2716
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 1