From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by dpdk.org (Postfix) with ESMTP id 33D1C5683 for ; Wed, 2 Dec 2015 15:06:17 +0100 (CET) Received: by ioc74 with SMTP id 74so46063734ioc.2 for ; Wed, 02 Dec 2015 06:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=PA+5RfQmVJHTgd9/y9jHvBJQHrzFpoBnI/4CHgO8bf0=; b=fF5lzbN6gaGEcYEHHnOJLqZxZKOW31vN9iDwCQUtm/1up4WfIr8+YU0ZPqidebRYEI eAdsjSPP1W8T0qrp90CW/pqOFwilgsGJJiP4k4va0JE3N/Q9rDUhwmZ9t7HBscOu3Op2 1rd8VbOYLLqWjZ12XVg/Edbo9lBKOJYwMibv8EaqdbJnARXbU2Aramfcv1eEZCbulBvH upo4WH7VrdvqzipnUm1/NLJp07YoiK/YXQaBKrBycQxHPHNx6jI48mSb8TWeEZgzNjVK QLs13Q+x9o4bsoObktPFg7k2xaAZt6ltv/Gog0jdugFqkJm1slRBdccoZbWtZlEhx+TH WgBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=PA+5RfQmVJHTgd9/y9jHvBJQHrzFpoBnI/4CHgO8bf0=; b=ZBLMtVgVCtpRa8gWIWU1jqudNjv/7tzYtJ8NI28G4VNzOlmf2/JLhND67rJFF5XlCh rJ5xqj8p5kWuS3rJs1fwqFo+8s709TyarIYQyfdebFtFGMZZHW/XEqtgoy/55t1XFUZ9 fF4G1M1Z1tCInCXHl1D8rmAN4U2/Gtfn3zfTGbyYN2HG2UVqqIxt/ZUiSAUBtaptXtFl 1RK67Wywo6C1dVkgBlHgpvVFWA8IBiBCb0Ebc5dLQgjZ1wD1sCpNScbsYU4hRk1GuRH/ h2p1iJgZo61O8X0+JIv5+A+uTdX1av9dq40RcRZtT9AhpcwP/4m9vD+vRdns9SdudFMJ 9tIg== X-Gm-Message-State: ALoCoQm7iiO1BpleYtaLyJY0TB+XA/5f0h3LmZsWxxx2YR2t8Gu1AUQbfcQ9awYTgUGCYcycJEG+ X-Received: by 10.107.10.162 with SMTP id 34mr3719935iok.121.1449065176407; Wed, 02 Dec 2015 06:06:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.20.131 with HTTP; Wed, 2 Dec 2015 06:05:57 -0800 (PST) From: Christian Ehrhardt Date: Wed, 2 Dec 2015 15:05:57 +0100 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] building LIBRTE_PMD_XENVIRT in 32bit triggers some errors 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: Wed, 02 Dec 2015 14:06:17 -0000 Hi, just FYI - building LIBRTE_PMD_XENVIRT in 32bit triggers some errors. I don't know if that part of the tree is actively maintained - It is default off, in the config template config/common_linuxapp. I'm not even entirely sure if LIBRTE_PMD_XENVIRT is still required. I guess in the Dom0 you can go with uio-pci-generic these days, not sure about para-virtual guests. Anyway I thought it might be worth to at least report. =3D=3D Build drivers/net/xenvirt gcc -Wp,-MD,./.rte_eth_xenvirt.o.d.tmp -m32 -pthread -fPIC -march=3Dnative -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2 -DRTE_MACHINE_CPUFLAG_AES -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_AVX -DRTE_COMPILE_TIME_CPUFLAGS=3DRTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_= SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2,RTE_CPUFLAG_AE= S,RTE_CPUFLAG_PCLMULQDQ,RTE_CPUFLAG_AVX -I/home/ubuntu/dpdk-2.2.0-rc2/build/include -include /home/ubuntu/dpdk-2.2.0-rc2/build/include/rte_config.h -O3 -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -o rte_eth_xenvirt.o -c /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/rte_eth_xenvirt.c In file included from /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/rte_eth_xenvirt.c:61:0: /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/virtqueue.h: In function =E2=80=98virtqueue_enqueue_recv_refill=E2=80=99: /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/virtqueue.h:201:15: error: cast from pointer to integer of different size [-Werror=3Dpointer-to-int-cast] (uint64_t) ((uint64_t)cookie->buf_addr + RTE_PKTMBUF_HEADROOM - sizeof(struct virtio_net_hdr)); ^ In file included from /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/rte_eth_xenvirt.c:51:0: /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/virtqueue.h: In function =E2=80=98virtqueue_enqueue_xmit=E2=80=99: /home/ubuntu/dpdk-2.2.0-rc2/build/include/rte_mbuf.h:1617:3: error: cast from pointer to integer of different size [-Werror=3Dpointer-to-int-cast] ((t)((char *)(m)->buf_addr + (m)->data_off + (o))) ^ /home/ubuntu/dpdk-2.2.0-rc2/build/include/rte_mbuf.h:1631:32: note: in expansion of macro =E2=80=98rte_pktmbuf_mtod_offset=E2=80=99 #define rte_pktmbuf_mtod(m, t) rte_pktmbuf_mtod_offset(m, t, 0) ^ /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/virtqueue.h:58:2: note: in expansion of macro =E2=80=98rte_pktmbuf_mtod=E2=80=99 rte_pktmbuf_mtod(mb, uint64_t) ^ /home/ubuntu/dpdk-2.2.0-rc2/drivers/net/xenvirt/virtqueue.h:241:24: note: in expansion of macro =E2=80=98RTE_MBUF_DATA_DMA_ADDR=E2=80=99 start_dp[idx].addr =3D RTE_MBUF_DATA_DMA_ADDR(cookie); ^ cc1: all warnings being treated as errors /home/ubuntu/dpdk-2.2.0-rc2/mk/internal/rte.compile-pre.mk:126: recipe for target 'rte_eth_xenvirt.o' failed make[4]: *** [rte_eth_xenvirt.o] Error 1 /home/ubuntu/dpdk-2.2.0-rc2/mk/rte.subdir.mk:61: recipe for target 'xenvirt' failed make[3]: *** [xenvirt] Error 2 /home/ubuntu/dpdk-2.2.0-rc2/mk/rte.subdir.mk:61: recipe for target 'net' fa= iled make[2]: *** [net] Error 2 /home/ubuntu/dpdk-2.2.0-rc2/mk/rte.sdkbuild.mk:93: recipe for target 'drivers' failed make[1]: *** [drivers] Error 2 /home/ubuntu/dpdk-2.2.0-rc2/mk/rte.sdkroot.mk:124: recipe for target 'all' failed make: *** [all] Error 2 Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd