Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi, Do you have any destroied files under the directory "arch/nios2/include/asm" ? Please check out 'entry.h’ or 'system.h' especially for the instruction 'rdctl' and 'wrctl'. Kazu --- Quote End --- In entry.h, it seems normal
#ifdef CONFIG_MMU
rdctl r24,estatus I wonder if there could be something wrong with my toolchain? I use the pre-built toolchain and I first didn't include `nios2-linux/toolchain-mmu/x86-linux2/bin` If I do include the aforementioned path then I get a different error. I installed the pre-built toolchain in `opt/nios2/bin` in entry.h the wrctl instruction is just wrctl estatus,r24 Any idea what I could do to make it build cleanly? My PATH is
echo $PATH
/usr/bin:/home/developer/eclipse/java-neon/eclipse:/home/developer/altera/nios2-linux/toolchain-mmu/x86-linux2/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/developer/Downloads/NuSMV-2.6.0-Linux/bin:/snap/bin:/opt/nios2/bin
I also installed gcc 4.2 with the multilib for 4.2. I think I did everything right, still it won't build.