kraj / meta-clang

Clang C/C++ cross compiler and runtime for OpenEmbedded/Yocto Project
MIT License
152 stars 196 forks source link

tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/temp/run.do_compile.2386788' failed with exit code 1 #889

Closed hyl1416134510 closed 2 weeks ago

hyl1416134510 commented 7 months ago

I got an error when I ran bitbake clang

tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:296:34: error: use of deleted function ‘lldb_private::process_linux::NativeRegisterContextLinux::NativeRegisterContextLinux()’ m_reg_info(), m_gpr_x86_64() {

I don't know how to solve him, this is my gcc version "gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6 Ubuntu1 ~16.04.12)" Could you give me some advice? Thank you very much

I uploaded tmp-glibc\work\x86_64-linux\clang-native\12.0.0-r0\temp\log.do_compile

hyl1416134510 commented 7 months ago

temp.zip

kraj commented 7 months ago

I would suggest to use dunfell-clang14 branch

hyl1416134510 commented 7 months ago

When I use Dunfall-clang14, I get a similar error. I wonder if this is caused by my compiler version. Do you have the recommended ubuntu version and gcc version for compiling Dunfall-clang14 or Dunfall-clang12

Right now I'm using ubuntu16 gcc 5.4.0

kraj commented 7 months ago

yeah if possible swith to ubuntu 18.04 atleast.

kraj commented 2 weeks ago

I am guessing using ubuntu 18.04 solved the problem. if not please re-open.