From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id DBAFC5A62 for ; Fri, 27 Mar 2015 10:20:47 +0100 (CET) Received: by wibg7 with SMTP id g7so18912388wib.1 for ; Fri, 27 Mar 2015 02:20:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=7b9HDaTsM8/BCa5r+TNIA4Y0dMp8TtdzZrGaZoTShuw=; b=WpccOKzhzOfGon6bveBvTO/oEA0MJTxODSiweG8Z/Q3eRRaqN9KxX5tZSEtO6L8bKI JmYy69a5U4EnDPqp4TaDkCcSm90jr85F+ikJb8dJfhuapmpMRF6RsP0YPiirF8w8xFY6 NK2O+GblmEF2WdQ0D+pvhaLlFi9HMgANfFfGDZvduwWHqUny/mw7S60CqV+urw8geZwl l47Si2EWf5T53gGAiGUABkAv60wLBqF4/wHa8FsT/lQH+oLe4Wopawh9L3L0+Cf10Gpp lQG3gKRi9wKZ0zVnEmh/GPA6aiZ1vM7I727VwzTuuISW4dyZPiI/kkH24o/bVIi1pTaV /11A== X-Gm-Message-State: ALoCoQnEqkpg21v9tvggNnMakFa1+yjgFY+K3FjJ7e1mpk/m4Cy0t6xETN8JBQ7ckKwsrwBcvJ6C X-Received: by 10.180.82.135 with SMTP id i7mr44406239wiy.85.1427448047702; Fri, 27 Mar 2015 02:20:47 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id ey10sm2578702wib.2.2015.03.27.02.20.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 02:20:46 -0700 (PDT) From: Thomas Monjalon To: Pablo de Lara Date: Fri, 27 Mar 2015 10:20:06 +0100 Message-ID: <9913571.Sq7Gc1tDuT@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1427397455-30368-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1427397455-30368-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] test: Disable strict-aliasing warnings X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 09:20:48 -0000 2015-03-26 19:17, Pablo de Lara: > DPDK does not build on gcc 4.4, as it complains due to > strict-aliasing rules in virtual_pmd and link_bonding_mode4 tests, > with no errors in next gcc versions: Do you mean it's not possible to fix it in the code? You are disabling some checks which may be relevant. > CC virtual_pmd.o > CC test_link_bonding_mode4.o > cc1: warnings being treated as errors > /root/dpdk/app/test/test_link_bonding_mode4.c: In function =E2=80=98t= est_mode4_expired=E2=80=99: > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:645: error: = dereferencing pointer =E2=80=98pkt.409=E2=80=99 does break strict-alias= ing rules > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:729: error: = dereferencing pointer =E2=80=98pkt.409=E2=80=99 does break strict-alias= ing rules > ... > cc1: warnings being treated as errors > /root/dpdk/app/test/virtual_pmd.c: In function =E2=80=98virtual_ethde= v_stats_reset=E2=80=99: > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:645: error: = dereferencing pointer =E2=80=98pkt.338=E2=80=99 does break strict-alias= ing rules > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:729: error: = dereferencing pointer =E2=80=98pkt.338=E2=80=99 does break strict-alias= ing rules >=20 > This patch fixes the compilation by disabling > these warnings. >=20 > Signed-off-by: Pablo de Lara > --- > app/test/Makefile | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) >=20 > diff --git a/app/test/Makefile b/app/test/Makefile > index 4aca77c..0d62d07 100644 > --- a/app/test/Makefile > +++ b/app/test/Makefile > @@ -158,6 +158,11 @@ CFLAGS_test_memcpy_perf.o +=3D -fno-var-tracking= -assignments > endif > endif > =20 > +# Disable warnings of no-strict-aliasing in virtual_pmd > +# and test_link_bonding_mode4 tests > +CFLAGS_virtual_pmd.o +=3D -Wno-strict-aliasing > +CFLAGS_test_link_bonding_mode4.o +=3D -Wno-strict-aliasing > + > # this application needs libraries first > DEPDIRS-y +=3D lib > =20 >=20