From owner-freebsd-arm@FreeBSD.ORG Sun Mar 24 22:20:07 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AA01688F for ; Sun, 24 Mar 2013 22:20:07 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx1.freebsd.org (Postfix) with ESMTP id 823A38E1 for ; Sun, 24 Mar 2013 22:20:07 +0000 (UTC) Received: by mail-pb0-f50.google.com with SMTP id up1so3841510pbc.37 for ; Sun, 24 Mar 2013 15:20:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:mime-version:content-type:from:x-priority :in-reply-to:date:cc:message-id:references:to:x-mailer :x-gm-message-state; bh=tscS/NhWiCqaIGDFbZsiav0PPfDvCbCWRHzJJCdDRrA=; b=pEkrFuEdotkJDg+DyZuEYUwjXpywWJX9EstNxLv3aei/E76KG2ju6Jte7Vks2WFPC8 6lxB9JGDyNsnEajRr9gJXPTSSvaN27EUI63DsNez2cK+/wBLKVkNEtUBrkMMM8gv3E01 S0+F25dwz0AXLuWSfPCRlov4hmYp/GPyaNwxsI5bRhYAEpYo4G5ECApfDDYQff2jUQYN 3ZpvdfVE05+WqvaVQiHoLRx9LvT1XjS7jANv/A/IcdX6yu2nM021TZB+0WsrpC27uZ1x InGKJDKtBv9U6GqzDc1ZKdtbwnslYCU0ddvvXP1HRnRejI/23Byt1dU0G882pAVmXF/p okFw== X-Received: by 10.68.170.98 with SMTP id al2mr14240490pbc.87.1364163601182; Sun, 24 Mar 2013 15:20:01 -0700 (PDT) Received: from [192.168.2.123] (99-74-169-43.lightspeed.sntcca.sbcglobal.net. [99.74.169.43]) by mx.google.com with ESMTPS id cy4sm10851120pbc.13.2013.03.24.15.19.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Mar 2013 15:19:59 -0700 (PDT) Subject: Re: Unable to compile VCHIQ Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/mixed; boundary="Apple-Mail=_ED4F4660-6A1C-459A-9875-188D9B1F18F7" From: Tim Kientzle X-Priority: Normal In-Reply-To: <456661659-1363845801-cardhu_decombobulator_blackberry.rim.net-733146442-@b26.c6.bise3.blackberry> Date: Sun, 24 Mar 2013 15:19:55 -0700 Message-Id: References: <51438529.4080604@bluezbox.com> <4FD89AF1-AF9D-4950-8AA4-9CC95FE66D46@kientzle.com> <456661659-1363845801-cardhu_decombobulator_blackberry.rim.net-733146442-@b26.c6.bise3.blackberry> To: Alie Tan , Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQlhMPxU1cp1iqM88Qa3VIx6M928Wl7n/X3M0Fmc/UQ8412p7UzlvnqDlRbYxdf6VyEaQx83 Cc: freebsd-arm@freebsd.org 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: Sun, 24 Mar 2013 22:20:07 -0000 --Apple-Mail=_ED4F4660-6A1C-459A-9875-188D9B1F18F7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > From: Tim Kientzle > Sender: owner-freebsd-arm@freebsd.orgDate: Wed, 20 Mar 2013 23:01:26=20= > To: Oleksandr Tymoshenko > Cc: > Subject: Re: Unable to compile VCHIQ >=20 >=20 > On Mar 15, 2013, at 1:31 PM, Oleksandr Tymoshenko wrote: >=20 >>> cc -O3 -pipe -DVCOS_VERIFY_BKPTS=3D1 -DUSE_VCHIQ_ARM >>> -D__VCCOREVER__=3D0x04000000 -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=3D8000 --param inline-unit-growth=3D100 --param >>> large-function-growth=3D1000 -fno-common -ffreestanding = -std=3Diso9899: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 >>>=20 >>> Stop in /usr/src/vc/vchiq-freebsd. >>>=20 >>>=20 >>> Anyone got idea how to solve the issue? >>>=20 >>=20 >> It seems you're trying to build vchiq against your host sources which = is wrong. You need >> to use cross-compilation environment for this. >=20 > I'm seeing this now, too, and I've checked carefully: I'm > definitely building inside the "buildworld" cross environment. >=20 > It looks like RA_WLOCKED is only defined if INVARIANTS is > active (sys/sys/rwlock.h). The attached patch to vchiq fixes it for me. Cheers, Tim --Apple-Mail=_ED4F4660-6A1C-459A-9875-188D9B1F18F7 Content-Disposition: attachment; filename=vchiq.patch Content-Type: application/octet-stream; name="vchiq.patch" Content-Transfer-Encoding: 7bit diff --git a/interface/compat/vchi_bsd.h b/interface/compat/vchi_bsd.h index 9568af4..b3c249a 100644 --- a/interface/compat/vchi_bsd.h +++ b/interface/compat/vchi_bsd.h @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include --Apple-Mail=_ED4F4660-6A1C-459A-9875-188D9B1F18F7--