On Wed, Nov 08, 2017 at 10:05:22AM +0800, oulijun wrote: > 在 2017/11/2 23:06, Jason Gunthorpe 写道: > > On Thu, Nov 02, 2017 at 02:03:18PM +0800, oulijun wrote: > >>> mkdr build-sparse > >>> cd build-sparse > >>> CC=cgcc cmake -GNinja .. > >>> ninja > >>> > >> I have run the sparse successful and don't understand the result. > > > > Something is wrong with your local environment: > > > >> [10/190] Building C object util/CMakeFiles/rdma_util_pic.dir/mmio.c.o > >> /usr/include/linux/types.h:4:11: error: unable to open 'asm/types.h' > > > > Those headers should exist, they usually come with glibc, eg on Debian > > it comes from here: > > > > linux-libc-dev:amd64: /usr/include/x86_64-linux-gnu/asm/types.h > > > > Jason > > > > > Hi, Jason > I have trying to run sparse according to your way and it is always fail in > the last two days. > the print log is > /usr/include/linux/types.h:4:11: error: unable to open 'asm/types.h' > > I do some steps for attempt resolving it and it is fail. > 1). I am trying to change the files' limit > chmod 757 /usr/include/x86_64-linux-gnu/asm/* > 2). I am also trying to run the cmd > sudo CC=cgcc cmake -GNinja .. > sudo ninja > 3). And I am trying to do others for asking my colleague. > > Can you give some good advice for me? I can't think what could be wrong with your setup, I assume something bad happened to your OS. Try re-installing the packages, make sure 'gcc' points to something that came with ubuntu, look at strace from cgcc to understand why it is failing.. Jason -- 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