-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
library missing for riscv target #796
Comments
can you see if it happens with master/clang16 as well ? |
I tried but it is expecting the classes ,Are these classes should be present in meta-clang or we have to made it available from other layers, How to handle this issue. the layer cloned: clang version: Issue: |
you need to use master branch of poky/openembedded-core repo as well. |
I have cloned master branch of openembedded-core it provided the required classes but when compiling again facing issue of rust module no attribute, check it once why it is coming. issue: bb.data_smart.ExpansionError: Failure expanding variable RUST_HOST_SYS, expression was ${@rust_base_triple(d, 'HOST')} which triggered exception AttributeError: module 'oe' has no attribute 'rust' |
where is |
I kept all the required classes in meta-clang class directory copying from master openembedded -core ,Is it correct way or not because we are using dunfell branch of openembedded-core in which the required classes are not present. If we should not copy the required classes from openembedded-core master then how to handle it in dunfell branch , try to suggest how should i move forward. |
move all layers to use master, do not copy things around that will be difficult and you will differ a lot with upstream. |
sure,but I cant do this because we are using dunfell branch as specific for our bsp,one other way i find to enable the -fsanitize=adress flag in gcc as CFLAGS,CXXFLAGS anf LDFLAGS so that we can use sanitize feature on gcc itself,Could you please guide me. |
Hi All,
I am working on riscv target boards, clang is compiled fine and simple hello world program is compiled successfully using clang-12 but when i am using the -fsanitize=address option then it is giving the error.
1 :
# cat test.c# clang -O -g -fsanitize=address test.c#include <stdlib.h>
int main() {
char x = (char)malloc(10 * sizeof(char*));
free(x);
return x[5];
}
2 :
/usr/bin/riscv64-oe-linux-ld: cannot find /usr/lib/clang/12.0.0/lib/linux/libclang_rt.asan-riscv64.a: No such file or directory
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
I dont known why the clang is not generating this missing library Please suggest any solution.
Any help will be highly appreciated.
Thanks
The text was updated successfully, but these errors were encountered: