在 2017/11/15 23:34, Jason Gunthorpe 写道: > On Wed, Nov 15, 2017 at 06:02:23PM +0800, oulijun wrote: >> As a result, I alos re-run the cmds: >> mkdr build-sparse >> cd build-sparse >> CC=cgcc cmake -GNinja .. >> >> The print log is: >> ubuntu@a8d50a1f660b:~/rdma-v16/rdma-core/build-sparse$ CC=cgcc cmake -GNinja .. >> Traceback (most recent call last): >> File "/home/ubuntu/rdma-v16/rdma-core/buildlib/gen-sparse.py", line 137, in <module> >> Patch from '/home/ubuntu/rdma-v16/rdma-core/buildlib/sparse-include/23/sys-socket.h.diff' failed >> Unable to apply any patch to 'sys/socket.h', tries 1 >> Patch from '/home/ubuntu/rdma-v16/rdma-core/buildlib/sparse-include/25/netinet-in.h.diff' failed >> Patch from '/home/ubuntu/rdma-v16/rdma-core/buildlib/sparse-include/23/netinet-in.h.diff' failed >> raise ValueError("Patch applications failed"); >> ValueError: Patch applications failed >> CMake Error at buildlib/RDMA_Sparse.cmake:27 (message): >> glibc header file patching for sparse failed. Review include/*.rej and fix >> the rejects, then do /home/ubuntu/rdma-v16/rdma-core/buildlib/gen-sparse.py >> -out /home/ubuntu/rdma-v16/rdma-core/build-sparse/include/ --src >> /home/ubuntu/rdma-v16/rdma-core/ --save >> Call Stack (most recent call first): >> CMakeLists.txt:148 (RDMA_CheckSparse) > > Okay, this is a different error, which version of ubuntu are you > using? I will fix it for you > > Jason > My os is ubuntu 14.04 the print info by uname -a is: Linux a8d50a1f660b 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Lijun Ou > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html