Unable to compile VCHIQ

Oleksandr Tymoshenko gonzo at bluezbox.com
Fri Mar 15 20:53:12 UTC 2013


On 3/11/2013 6:15 PM, Alie Tan wrote:
> Cloning into '/usr/src/vc/vchiq-freebsd'...
> remote: Counting objects: 324, done.
> remote: Compressing objects: 100% (167/167), done.
> remote: Total 324 (delta 170), reused 306 (delta 152)
> Receiving objects: 100% (324/324), 276.83 KiB | 103 KiB/s, done.
> Resolving deltas: 100% (170/170), done.
> Cloning into '/usr/src/vc/userland'...
> remote: Counting objects: 890, done.
> remote: Compressing objects: 100% (510/510), done.
> remote: Total 890 (delta 383), reused 837 (delta 337)
> Receiving objects: 100% (890/890), 31.00 MiB | 214 KiB/s, done.
> Resolving deltas: 100% (383/383), done.
> Checking out files: 100% (468/468), done.
> rm -f export_syms vchiq.ko vchiq.kld vchiq_core.o vchiq_shim.o vchiq_util.o
> vchiq_kern_lib.o vchiq_2835_arm.o vchiq_arm.o vchiq_connected.o vchi_bsd.o
> vchiq_kmod.o ofw_bus_if.h bus_if.h device_if.h
> Warning: Object directory not changed from original
> /usr/src/vc/vchiq-freebsd
> @ -> /usr/src/sys
> machine -> /usr/src/sys/arm/include
> awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
> awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
> awk -f @/tools/makeobjops.awk @/dev/ofw/ofw_bus_if.m -h
> 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_core.c
> 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_shim.c
> 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_util.c
> 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_kern_lib.c
> 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.



More information about the freebsd-arm mailing list