Error from New Build System

66 views
Skip to first unread message

Neelu Kalani

unread,
Oct 14, 2024, 10:47:04 AM10/14/24
to Keystone Enclave Forum
Hello, 

I am trying to build the latest Keystone with a new build system described on this forum post

It seems I am getting an error which is also specified as the breaking build of Keystone in the build system migration document

Can you please provide any insights on what causes this broken build and how to fix it? 

The build.log says the "fence.i" instruction doesn't exist, it's an error coming from sbi_tlb.c. 

The one thing I have changed is the RISC-V toolchain version from 11_x to 12_x through the Buildroot config. 

Could that be causing this? 
Should I bump the opensbi version? 

My goal is to build Keystone with a more recent RISC-V GNU toolchain than 11_x. 

Thanks in advance. 

Regards, 
Neelu 

Neelu Kalani

unread,
Oct 17, 2024, 5:15:10 AM10/17/24
to Keystone Enclave Forum
Just some update from my side. 

The error from sbi_tlb.c with "fence.i" instruction not existing was because the newer toolchains require zfencei and zicsr extensions to be specified explicitly with the march option. Or "g" works as well. 

However, in the end I did not succeed in running keystone with a newer toolchain. At the moment I am not continuing this effort. 
But if anyone has built and run keystone with a more recent toolchain than 11_x, I'll be interested to know! 

Thanks and Regards, 
Neelu 

Reply all
Reply to author
Forward
0 new messages