Unable to compile VCHIQ

Tim Kientzle tim at kientzle.com
Thu Mar 21 06:01:33 UTC 2013


On Mar 15, 2013, at 1:31 PM, Oleksandr Tymoshenko wrote:

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

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130320/9acec788/attachment.sig>


More information about the freebsd-arm mailing list