Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E64F3C433E0 for ; Fri, 19 Mar 2021 08:44:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A82C764F6B for ; Fri, 19 Mar 2021 08:44:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234227AbhCSInx convert rfc822-to-8bit (ORCPT ); Fri, 19 Mar 2021 04:43:53 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3491 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234225AbhCSInp (ORCPT ); Fri, 19 Mar 2021 04:43:45 -0400 Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4F1y7B032FzRRd8; Fri, 19 Mar 2021 16:41:58 +0800 (CST) Received: from dggema704-chm.china.huawei.com (10.3.20.68) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.498.0; Fri, 19 Mar 2021 16:43:43 +0800 Received: from dggema753-chm.china.huawei.com (10.1.198.195) by dggema704-chm.china.huawei.com (10.3.20.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Fri, 19 Mar 2021 16:43:43 +0800 Received: from dggema753-chm.china.huawei.com ([10.9.48.84]) by dggema753-chm.china.huawei.com ([10.9.48.84]) with mapi id 15.01.2106.013; Fri, 19 Mar 2021 16:43:43 +0800 From: liweihang To: "jianxin.xiong@intel.com" , "linux-rdma@vger.kernel.org" CC: Jason Gunthorpe , Leon Romanovsky , Linuxarm Subject: [rdma-core] Compile issue with DRM headers Thread-Topic: [rdma-core] Compile issue with DRM headers Thread-Index: AQHXHJv3XGIQP1y/YEuHT1qgEOdOZw== Date: Fri, 19 Mar 2021 08:43:43 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.100.165] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Hi Jianxin, I met a compile error with recent version of rdma-core on my server with Ubuntu 14.04: ./pyverbs/dmabuf_alloc.c:16:24: fatal error: amdgpu_drm.h: No such file or directory #include ^ compilation terminated. I found it is related with dma-buf based commits. And the commit 3788aa843b4b ("configure: Add check for DRM headers") adds a check for libdrm headers. I have installed it but my version(2.4.67-1ubuntu0.14.04.2) isn't new enough, there is no 'amdgpu_drm.h' in DRM_INCLUDE_DIRS(/usr/include/drm). So I think we may need some check for the the version of libdrm in CMakeList.txt or something else :) Could you please give me some suggestions? Thanks Weihang