From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id D9C3A6A8E for ; Fri, 28 Feb 2014 09:10:19 +0100 (CET) Received: by mail-pd0-f179.google.com with SMTP id w10so437473pde.10 for ; Fri, 28 Feb 2014 00:11:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=drA1UKl6g5dTVKsOb6wYtyeMJuDR35sYvYkfjKwHNlI=; b=mu22HkyGd+G7vp7DKZeTQ2HCkSd8aEZgd66ECov5xGVJb1VDTui0WlIkCvdjYraRFy bS6l5a3LU4hRwne0pJF+tE14CWxp3n+V7M6vtBTuTicwi0Co+zVXHrKBCu6vMXrTBADu oEvvFEMRyUK4voenjHwN7xnvgBhGxDrE7+EKh+k7r6cr553mhdlD/Yeso50hEKBZaSIS 5J9zz9DGcXZR72danrZeMWdH9lewlnoy4eRqxl3jNq81sTjHmv3MjrO3c0MFCrbpjV5p HRy1aMP6A+YakMk1Lgv1GY6phEv4f4NdqlnXNFU0clJv1dZGW6AZSPjUhlkGkUt2FLdg lTbw== X-Gm-Message-State: ALoCoQk3MofuerOIbfh0bYk9iCPPb4dR8Vsw17zxPC7iGc2mKeAJsuiTmaq2U8BPfxdaSqKE7cxf MIME-Version: 1.0 X-Received: by 10.66.163.138 with SMTP id yi10mr1873131pab.95.1393575105915; Fri, 28 Feb 2014 00:11:45 -0800 (PST) Received: by 10.68.14.65 with HTTP; Fri, 28 Feb 2014 00:11:45 -0800 (PST) In-Reply-To: References: Date: Fri, 28 Feb 2014 09:11:45 +0100 Message-ID: From: David Marchand To: Mats Liljegren Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Error building using 1.6.0r1 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, 28 Feb 2014 08:10:20 -0000 Hello Mats, I reproduced the problem (and another one). I will send two patches in a few minutes, can you try them ? Thank you. -- David Marchand On Thu, Feb 27, 2014 at 3:08 PM, Mats Liljegren wrote: > I run a 64-bit host building for 32-bit DPDK, which fails with: > > dpdk/i686-default-linuxapp-gcc$ make > == Build scripts > == Build scripts/testhost > == Build lib > == Build lib/librte_eal > == Build lib/librte_eal/common > == Build lib/librte_eal/linuxapp > == Build lib/librte_eal/linuxapp/igb_uio > Building modules, stage 2. > MODPOST 1 modules > == Build lib/librte_eal/linuxapp/eal > CC eal.o > In file included from > /home/lwrt/build/dpdk/lib/librte_eal/linuxapp/eal/eal.c:55:0: > /home/lwrt/build/dpdk/lib/librte_eal/linuxapp/eal/eal.c: In function > 'eal_parse_base_virtaddr': > > /home/lwrt/build/dpdk/i686-default-linuxapp-gcc/include/rte_common.h:133:22: > error: cast from pointer to integer of different size > [-Werror=pointer-to-int-cast] > RTE_PTR_ALIGN_FLOOR((typeof(ptr))RTE_PTR_ADD(ptr, (align) - 1), align) > ^ > > /home/lwrt/build/dpdk/i686-default-linuxapp-gcc/include/rte_common.h:115:10: > note: in definition of macro 'RTE_PTR_ALIGN_FLOOR' > (typeof(ptr))rte_align_floor_int((uintptr_t)ptr, align) > ^ > /home/lwrt/build/dpdk/lib/librte_eal/linuxapp/eal/eal.c:566:9: note: > in expansion of macro 'RTE_PTR_ALIGN_CEIL' > addr = RTE_PTR_ALIGN_CEIL(addr, RTE_PGSIZE_2M); > ^ > > /home/lwrt/build/dpdk/i686-default-linuxapp-gcc/include/rte_common.h:133:22: > error: cast from pointer to integer of different size > [-Werror=pointer-to-int-cast] > RTE_PTR_ALIGN_FLOOR((typeof(ptr))RTE_PTR_ADD(ptr, (align) - 1), align) > ^ > > /home/lwrt/build/dpdk/i686-default-linuxapp-gcc/include/rte_common.h:115:46: > note: in definition of macro 'RTE_PTR_ALIGN_FLOOR' > (typeof(ptr))rte_align_floor_int((uintptr_t)ptr, align) > ^ > /home/lwrt/build/dpdk/lib/librte_eal/linuxapp/eal/eal.c:566:9: note: > in expansion of macro 'RTE_PTR_ALIGN_CEIL' > addr = RTE_PTR_ALIGN_CEIL(addr, RTE_PGSIZE_2M); > ^ > cc1: all warnings being treated as errors > make[6]: *** [eal.o] Error 1 > make[5]: *** [eal] Error 2 > make[4]: *** [linuxapp] Error 2 > make[3]: *** [librte_eal] Error 2 > make[2]: *** [lib] Error 2 > make[1]: *** [all] Error 2 > make: *** [all] Error 2 > > Is this a known problem? > > Best regards > Mats Liljegren >