keystone-enclave / keystone

Keystone Enclave (QEMU + HiFive Unleashed)
Other
462 stars 133 forks source link

ncurses 6.1 Configuring configure: error: C compiler cannot create executables #265

Open TATAyu0413 opened 2 years ago

TATAyu0413 commented 2 years ago

Describe the bug make[3]: “/home/yu/Desktop/keystone-qemu/keystone/buildroot”

ncurses 6.1 Configuring configure: error: C compiler cannot create executables package/pkg-generic.mk:231: recipe for target '/home/yu/Desktop/keystone-qemu/keystone/build/buildroot.build/build/ncurses-6.1/.stamp_configured' failed make[4]: [/home/yu/Desktop/keystone-qemu/keystone/build/buildroot.build/build/ncurses-6.1/.stamp_configured] Error 77 Makefile:84: recipe for target '_all' failed make[3]: [_all] Error 2 make[3]:“/home/yu/Desktop/keystone-qemu/keystone/buildroot” CMakeFiles/buildroot.dir/build.make:63: recipe for target 'CMakeFiles/buildroot' failed make[2]: [CMakeFiles/buildroot] Error 2 make[2]: “/home/yu/Desktop/keystone-qemu/keystone/build” CMakeFiles/Makefile2:264: recipe for target 'CMakeFiles/buildroot.dir/all' failed make[1]: [CMakeFiles/buildroot.dir/all] Error 2 make[1]: “/home/yu/Desktop/keystone-qemu/keystone/build” Makefile:86: recipe for target 'all' failed make: *** [all] Error 2

Build Failure (1) Results of git submodule status 9624a001f9d4314f8bcc9219df717d4c41fb5373 ../buildroot (2020.11) 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 ../linux (v5.7) 0a1597bc6215f00b8c39ff44565df541d74ac782 ../linux-keystone-driver (v1.0.0) fdd76fecdde1ad444ff4deb7f1c4f7e4a1ef97d6 ../qemu (fdd76fecdd) 407cdc0ceb0f6d760342ac6cf1b890378f5a81bd ../riscv-gnu-toolchain ((null)) 24a5ed369ac0606aac486382a0855a459d9362ed ../sdk (v1.0.0) 843d3509b8a514d43729d779a0cf6bdb1d0c94e0 ../sm (v1.0) (2) Linux distribution Ubuntu 18.04 (3) The branch I am working on master

Additional context $ which riscv64-unknown-elf-gcc /home/yu/Desktop/keystone-qemu/keystone/riscv64/bin/riscv64-unknown-elf-gcc $ echo $RISCV /home/yu/Desktop/keystone-qemu/keystone/riscv64

I found the same issues but it seems not useful for me. https://github.com/keystone-enclave/keystone/issues/109 https://github.com/keystone-enclave/keystone/issues/107 I download the prebuilt riscv-tools in directory 'keystone/riscv64'. When I run ./fast-setup.sh, it will skip submodule.riscv-gnu-toolchain.

dayeol commented 2 years ago

did you download the prebuilt riscv tools by yourself, or let fast-setup.sh to do that? if you downloaded it by yourself, what file did you download and how did you decompress it?

TATAyu0413 commented 2 years ago

I download the prebuilt riscv-tools by running fast-setup.sh.