From owner-freebsd-arm@FreeBSD.ORG Fri Mar 15 20:53:12 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9D9EBF6E for ; Fri, 15 Mar 2013 20:53:12 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 4582C29F for ; Fri, 15 Mar 2013 20:53:12 +0000 (UTC) Received: from [88.198.91.248] (helo=[IPv6:::1]) by id.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1UGbJG-000J0m-E1 for freebsd-arm@freebsd.org; Fri, 15 Mar 2013 13:33:04 -0700 Message-ID: <51438529.4080604@bluezbox.com> Date: Fri, 15 Mar 2013 13:31:37 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: Unable to compile VCHIQ References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 3/11/2013 6:15 PM, Alie Tan wrote: > Cloning into '/usr/src/vc/vchiq-freebsd'... > remote: Counting objects: 324, done. > remote: Compressing objects: 100% (167/167), done. > remote: Total 324 (delta 170), reused 306 (delta 152) > Receiving objects: 100% (324/324), 276.83 KiB | 103 KiB/s, done. > Resolving deltas: 100% (170/170), done. > Cloning into '/usr/src/vc/userland'... > remote: Counting objects: 890, done. > remote: Compressing objects: 100% (510/510), done. > remote: Total 890 (delta 383), reused 837 (delta 337) > Receiving objects: 100% (890/890), 31.00 MiB | 214 KiB/s, done. > Resolving deltas: 100% (383/383), done. > Checking out files: 100% (468/468), done. > rm -f export_syms vchiq.ko vchiq.kld vchiq_core.o vchiq_shim.o vchiq_util.o > vchiq_kern_lib.o vchiq_2835_arm.o vchiq_arm.o vchiq_connected.o vchi_bsd.o > vchiq_kmod.o ofw_bus_if.h bus_if.h device_if.h > Warning: Object directory not changed from original > /usr/src/vc/vchiq-freebsd > @ -> /usr/src/sys > machine -> /usr/src/sys/arm/include > awk -f @/tools/makeobjops.awk @/kern/device_if.m -h > awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h > awk -f @/tools/makeobjops.awk @/dev/ofw/ofw_bus_if.m -h > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_core.c > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Mar 2013 20:53:12 -0000 On 3/11/2013 6:15 PM, Alie Tan wrote: > Cloning into '/usr/src/vc/vchiq-freebsd'... > remote: Counting objects: 324, done. > remote: Compressing objects: 100% (167/167), done. > remote: Total 324 (delta 170), reused 306 (delta 152) > Receiving objects: 100% (324/324), 276.83 KiB | 103 KiB/s, done. > Resolving deltas: 100% (170/170), done. > Cloning into '/usr/src/vc/userland'... > remote: Counting objects: 890, done. > remote: Compressing objects: 100% (510/510), done. > remote: Total 890 (delta 383), reused 837 (delta 337) > Receiving objects: 100% (890/890), 31.00 MiB | 214 KiB/s, done. > Resolving deltas: 100% (383/383), done. > Checking out files: 100% (468/468), done. > rm -f export_syms vchiq.ko vchiq.kld vchiq_core.o vchiq_shim.o vchiq_util.o > vchiq_kern_lib.o vchiq_2835_arm.o vchiq_arm.o vchiq_connected.o vchi_bsd.o > vchiq_kmod.o ofw_bus_if.h bus_if.h device_if.h > Warning: Object directory not changed from original > /usr/src/vc/vchiq-freebsd > @ -> /usr/src/sys > machine -> /usr/src/sys/arm/include > awk -f @/tools/makeobjops.awk @/kern/device_if.m -h > awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h > awk -f @/tools/makeobjops.awk @/dev/ofw/ofw_bus_if.m -h > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_core.c > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_shim.c > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_util.c > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_kern_lib.c > cc -O3 -pipe -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM > -D__VCCOREVER__=0x04000000 -O3 -fno-strict-aliasing -funroll-loops -pipe > -ftree-vectorize -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/src/vc/vchiq-freebsd/interface -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -ffreestanding -std=iso9899:1999 > -c /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_2835_arm.c > In file included from > /usr/src/vc/vchiq-freebsd/interface/vchiq_arm/vchiq_2835_arm.c:65: > @/vm/vm_pager.h: In function 'vm_pager_get_pages': > @/vm/vm_pager.h:127: warning: implicit declaration of function 'rw_assert' > @/vm/vm_pager.h:127: error: 'RA_WLOCKED' undeclared (first use in this > function) > @/vm/vm_pager.h:127: error: (Each undeclared identifier is reported only > once > @/vm/vm_pager.h:127: error: for each function it appears in.) > @/vm/vm_pager.h: In function 'vm_pager_put_pages': > @/vm/vm_pager.h:144: error: 'RA_WLOCKED' undeclared (first use in this > function) > @/vm/vm_pager.h: In function 'vm_pager_has_page': > @/vm/vm_pager.h:168: error: 'RA_WLOCKED' undeclared (first use in this > function) > @/vm/vm_pager.h: In function 'vm_pager_page_unswapped': > @/vm/vm_pager.h:191: error: 'RA_WLOCKED' undeclared (first use in this > function) > *** [vchiq_2835_arm.o] Error code 1 > > Stop in /usr/src/vc/vchiq-freebsd. > > > Anyone got idea how to solve the issue? > It seems you're trying to build vchiq against your host sources which is wrong. You need to use cross-compilation environment for this.