<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/132359>132359</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
call to '__bad_copy_from' declared with 'error' attribute:
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
enlist12
</td>
</tr>
</table>
<pre>
I try to exe ` make LLVM=1` for linux kernel version 6.3.0 ,however ,some errors happened:
```
In file included from net/bluetooth/rfcomm/sock.c:27:
In file included from ./include/linux/compat.h:14:
In file included from ./include/linux/sem.h:5:
In file included from ./include/uapi/linux/sem.h:5:
In file included from ./include/linux/ipc.h:5:
In file included from ./include/linux/spinlock.h:56:
In file included from ./include/linux/preempt.h:78:
In file included from ./arch/x86/include/asm/preempt.h:9:
./include/linux/thread_info.h:244:4: error: call to '__bad_copy_from' declared with 'error' attribute: copy source size is too small
244 | __bad_copy_from();
| ^
CC arch/x86/kernel/traps.o
CC arch/x86/entry/vdso/vclock_gettime.o
CC arch/x86/kernel/irq.o
1 error generated.
make[4]: *** [scripts/Makefile.build:252: net/bluetooth/rfcomm/sock.o] Error 1
make[3]: *** [scripts/Makefile.build:494: net/bluetooth/rfcomm] Error 2
make[3]: *** Waiting for unfinished jobs....
```
If I compile this kernel with gcc,nothing would go wrong .However,I want to instrument this kernel,so I need to use clang , please help me!!!!!
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVcGSozYQ_Rr50rUUNGDMgYPHs1RctXtNji4hNaAdIRFJ2Ot8fUrYk8lsNrOZJK52gXG_90Sr-4l7rwZD1LDygZWPG76E0bqGjFY-ZLjprLw2RwjuCsEC0FcCtk1h4k8Enz79_Jnlj1l8AL11oJVZvsITOUMazuS8sga2SZ6kwPAw2gudycVbbycCcs46DyOfZzIkWb5n6Rrb9B7p_migV5pAGaEXSRJ6ZycwFBi2nV4oWBtGhq3rhZ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