From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [BUG] cuckoo_hash build failure with gcc-8 Date: Thu, 29 Mar 2018 09:39:24 -0700 Message-ID: <20180329093924.1984d7f4@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To: dev@dpdk.org Return-path: Received: from mail-pf0-f174.google.com (mail-pf0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id 119B8E5D for ; Thu, 29 Mar 2018 18:39:27 +0200 (CEST) Received: by mail-pf0-f174.google.com with SMTP id y66so3571868pfi.7 for ; Thu, 29 Mar 2018 09:39:26 -0700 (PDT) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id 81sm14323943pfl.92.2018.03.29.09.39.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Mar 2018 09:39:25 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Cuckoo hash has build failure with gcc-8. The casting here is suspect anyway. It should be fixed more directly. CC rte_table_hash_cuckoo.o lib/librte_table/rte_table_hash_cuckoo.c: In function =E2=80=98rte_table_ha= sh_cuckoo_create=E2=80=99: lib/librte_table/rte_table_hash_cuckoo.c:110:16: error: cast between incomp= atible function types from =E2=80=98rte_table_hash_op_hash=E2=80=99 {aka = =E2=80=98long unsigned int (*)(void *, void *, unsigned int, long unsigned= int)=E2=80=99} to =E2=80=98uint32_t (*)(const void *, uint32_t, uint32_t)= =E2=80=99 {aka =E2=80=98unsigned int (*)(const void *, unsigned int, unsig= ned int)=E2=80=99} [-Werror=3Dcast-function-type] .hash_func =3D (rte_hash_function)(p->f_hash), ^ cc1: all warnings being treated as errors