Unable to compile VCHIQ
Tim Kientzle
tim at kientzle.com
Sun Mar 24 22:20:07 UTC 2013
> From: Tim Kientzle <tim at kientzle.com>
> Sender: owner-freebsd-arm at freebsd.orgDate: Wed, 20 Mar 2013 23:01:26
> To: Oleksandr Tymoshenko<gonzo at bluezbox.com>
> Cc: <freebsd-arm at freebsd.org>
> Subject: Re: Unable to compile VCHIQ
>
>
> 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).
The attached patch to vchiq fixes it for me.
Cheers,
Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vchiq.patch
Type: application/octet-stream
Size: 355 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130324/3cb4ad6b/attachment.obj>
More information about the freebsd-arm
mailing list