compiler-dev / llvm-rv Goto Github PK
View Code? Open in Web Editor NEWFull Support 32bit RISC-V in LLVM and CLANG for Vector Extension
Home Page: http://www.compiler-dev.com
Full Support 32bit RISC-V in LLVM and CLANG for Vector Extension
Home Page: http://www.compiler-dev.com
Hello,I have a problem about compiling,I succeeded when compiling rvv-test/vadd_vv_i32.c,but when compiling rvv-test/intrinsic/vadd_vv_i8.c, It was failed:error: unknown type name 'vint8m2_t';did you mean 'vint8m1_t'? And there is one note: 'vint8m1_t' declared here typedef attribute((riscv_vector_type(16))) int8_t vint8m1_t;
So how can I solve this problem?
I followed all the steps listed in this page.
Yet I got compilation errors
in directory LLVM-RV/RVV-TEST
Command:
clang vadd_vv_i32.c -O2 --target=riscv32 -march=rv32imafcv --sysroot=$TOOL_CHAIN_PATH/riscv-unknown-elf --gcc-toolchain=$TOOL_CHAIN_PATH -o vadd_vv_i32.out
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
/home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:10:10: error: 'newlib.h' file not found with include; use "quotes" instead
#include <newlib.h>
^~~~~~~~~~
"newlib.h"
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:10:
/home/ubuntu/Spike/riscv32-unknown-elf/include/newlib.h:14:10: error: '_newlib_version.h' file not found with include; use "quotes" instead
#include <_newlib_version.h>
^~~~~~~~~~~~~~~~~~~
"_newlib_version.h"
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
/home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:11:10: error: 'sys/config.h' file not found with include; use "quotes" instead
#include <sys/config.h>
^~~~~~~~~~~~~~
"sys/config.h"
In file included from vadd_vv_i32.c:2:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/stdio.h:29:
In file included from /home/ubuntu/Spike/riscv32-unknown-elf/include/_ansi.h:11:
/home/ubuntu/Spike/riscv32-unknown-elf/include/sys/config.h:4:10: fatal error: 'machine/ieeefp.h' file not found
#include <machine/ieeefp.h> /* floating point macros */
^~~~~~~~~~~~~~~~~~
4 errors generated.
Many other errors in running SPike as well (even if the path for stdio.h which was not in the default path was specified explcitly)-
A simple hello program -
spike pk hello
error: bad --varch option 'vlen:128,elen:32,slen:128'. Unsupported token
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.