From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 45D345A8C for ; Mon, 30 Mar 2015 22:48:14 +0200 (CEST) Received: by wgdm6 with SMTP id m6so188610607wgd.2 for ; Mon, 30 Mar 2015 13:48:14 -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=1HYTFgDvqfcRql6jA+sh63vQSLbg+8icvCt6N9IT3no=; b=NoZoScaEdCu0Onf+/aW90w0mdm9gfxja81Nuismk7dIj/5E06UDylhHs0BRv7gwIY5 RkOuxjVSI5zyKlwcp0vITazeeSBgsjvwpJkmnw8gNNWqNU/nCQJrQDVJBiMrlcvMlFsX 2r2/cbLvWga0BiMLlU9GgvUxXTvTbQ8QvqZyT/q90WVqXYk4WJbucdJSDkVQZhWlxlcb foDQbOx7ry72rY8sbKE6RgDPbSBWsWfbqIbMYO81WcFt9VZHCPuT5jHP+h5hJFUSCuSl bTWkfVb1kGOnu9A+1erQ78dwmHCoF/e8O8TXMJg549YBPHbGOG74lcZJoQIVuu/xbjk+ n8vA== X-Gm-Message-State: ALoCoQme9ng93N/pyvc4IKS7GTuo6PlW1c2mAKJw1xJmHyZCCh3TcsURhINBtRe+C2g+cnFDF9Pp X-Received: by 10.181.27.229 with SMTP id jj5mr26320659wid.87.1427748494147; Mon, 30 Mar 2015 13:48:14 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id ey10sm17931518wib.2.2015.03.30.13.48.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 13:48:13 -0700 (PDT) From: Thomas Monjalon To: Pablo de Lara Date: Mon, 30 Mar 2015 22:47:33 +0200 Message-ID: <1539174.vstNdTQhGW@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1427713576-31094-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1427397455-30368-1-git-send-email-pablo.de.lara.guarch@intel.com> <1427713576-31094-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 v2] 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: 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: Mon, 30 Mar 2015 20:48:14 -0000 2015-03-30 12:06, Pablo de Lara: > 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 > Changes in v2: >=20 > Added missing gcc version check (checking if gcc 4.4 is present) >=20 > Signed-off-by: Pablo de Lara Pawel's proposal was chosen because it doesn't require handling special= compiler version.