From owner-freebsd-arm@FreeBSD.ORG Thu Mar 21 06:01:33 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 BD253ECB for ; Thu, 21 Mar 2013 06:01:33 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mail-da0-x236.google.com (mail-da0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) by mx1.freebsd.org (Postfix) with ESMTP id 95FB6A5F for ; Thu, 21 Mar 2013 06:01:33 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id p1so1430936dad.41 for ; Wed, 20 Mar 2013 23:01:33 -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:in-reply-to:date :cc:message-id:references:to:x-mailer:x-gm-message-state; bh=I+FTwylj65ObxBXMEEObZrE6bhjKegaFpgWOtwzHHD4=; b=FWRmMLy7ZcAfQNr6Vf4ZSDDX5oG+2sTIP7nW7xIHyzy3QdPZogG8GsA68eHoe6P4/z 92T6K5LX0ilGdko+yO76/LHVSeNP0TOkEeZ6ah0MzL6tyiWTjcYG5G4wb3qHRdcSVh5z o2tP9dEZViBUS11C1dtBZQeQf1TFgGEDCLdtx7QCTWRricCKUKNV4m71fGo7Pzv0AXYb dr/Z6P/0OfGJKed3zB5AiZOjF3WKCoPyF3juIdprrCnuRzsagZtvd5K96RHeBOmXwXHK QlsFgTPWXTra6fRgJiwpRPoFtfe4xm0TzL/Ccb9BqPAYOoFyv7I8fRxgO3fcjfawJgpx 3LRQ== X-Received: by 10.66.217.133 with SMTP id oy5mr8785666pac.20.1363845693421; Wed, 20 Mar 2013 23:01:33 -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 qd8sm4818773pbc.29.2013.03.20.23.01.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 23:01:31 -0700 (PDT) Subject: Re: Unable to compile VCHIQ Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/signed; boundary="Apple-Mail=_18E64863-297F-456A-8A14-EC052F6AEF15"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Tim Kientzle In-Reply-To: <51438529.4080604@bluezbox.com> Date: Wed, 20 Mar 2013 23:01:26 -0700 Message-Id: <4FD89AF1-AF9D-4950-8AA4-9CC95FE66D46@kientzle.com> References: <51438529.4080604@bluezbox.com> To: Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQlh1HHlkUr9Y9A+pFd7uo6qXfIXGb3VzmYIZeba/UcbZB5QU8Feodmj2sYJXqmvaVPR1CcJ 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: Thu, 21 Mar 2013 06:01:33 -0000 --Apple-Mail=_18E64863-297F-456A-8A14-EC052F6AEF15 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Mar 15, 2013, at 1:31 PM, Oleksandr Tymoshenko wrote: >> 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. I'm seeing this now, too, and I've checked carefully: I'm definitely building inside the "buildworld" cross environment. It looks like RA_WLOCKED is only defined if INVARIANTS is active (sys/sys/rwlock.h). Tim --Apple-Mail=_18E64863-297F-456A-8A14-EC052F6AEF15 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) iQEcBAEBAgAGBQJRSqI3AAoJEGMNyGo0rfFBgXoIAKaSSiOTecCvesp+uOy4Pk8/ ei0lTrRXiJc+a/YdINxixittf0iS2eGvZjUm5Qtlowg+JTy2wlJEQDaWXV7oe5TB h3E7Y5SSA3cD3DZhWA5QslELQVeIyUnmNzEc4V2OSnDss18/Yng/L1JwLVlewMRb 5XUYAOjCl+7gyNI6wUEauJoe38bPosDBHEwZjAzT0VH3OpbqG90kIEozDKP0GlJt pECRX1j8phvQjMklNr3Jt4aVUUv1M2QL7zf+G+aJt7ZxNXsfTlez6ZRhez3ti9BE QZdYlk6BgNcKIgjJM4MqyyC5QAZsUzKy8mUOHngNE23hHi8B0IrB3kPSZRCXy5E= =rH1B -----END PGP SIGNATURE----- --Apple-Mail=_18E64863-297F-456A-8A14-EC052F6AEF15--