From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-core 3/3] libhns: Fix endian format of payload and immediate Date: Fri, 10 Nov 2017 14:18:18 -0700 Message-ID: <20171110211818.GH17451@ziepe.ca> References: <1509530440-164400-1-git-send-email-oulijun@huawei.com> <1509530440-164400-4-git-send-email-oulijun@huawei.com> <20171101161328.GB7815@ziepe.ca> <8dbc8305-f154-3b8c-795a-b5f1a6b53c73@huawei.com> <20171102150655.GD18874@ziepe.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: oulijun Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html