Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2013 23:01:26 -0700
From:      Tim Kientzle <tim@kientzle.com>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Unable to compile VCHIQ
Message-ID:  <4FD89AF1-AF9D-4950-8AA4-9CC95FE66D46@kientzle.com>
In-Reply-To: <51438529.4080604@bluezbox.com>
References:  <CANuCnH9p%2BaY89wy%2BT6BDdo--URGXP5BZK8KBp6-UQRfdHLgUyg@mail.gmail.com> <51438529.4080604@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD89AF1-AF9D-4950-8AA4-9CC95FE66D46>