I finally succeeded in building the BSP. Believe me or not the success trigger was to built it on x86_64 Ubuntu Mate 16.04 instead of the i686 architecture of the same system! I have two freshly installed VMs one with i686 and the other with x86_64 version of Ubuntu Mate 16.04. While BSP building fails in the first one, it finishes well in the second. No idea why at allā¦
But now I ran in another problem when proceeded to building the V4L. When I have forgotten to set cross compiling it compiled against the 4.10.0-37-generic systemās kernel well. But when I corrected my mistake and set cross compiling against the just built BSP tree, it failed, see below.
Couldnāt it be missing the /lib/modules/4.4.70 for example? Iām afraid that despite cross compiling being set by make -j5 release DIR=/home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/
it still uses the system /lib/modules/4.10.0-37-generic.
I appreciate any idea on what could be wrong.
jirka@vm-jirka:~/BPI-R2$ git clone git://linuxtv.org/media_build.git
Cloning into 'media_build'...
remote: Counting objects: 3974, done.
remote: Compressing objects: 100% (1116/1116), done.
remote: Total 3974 (delta 2850), reused 3918 (delta 2815)
Receiving objects: 100% (3974/3974), 695.73 KiB | 999.00 KiB/s, done.
Resolving deltas: 100% (2850/2850), done.
Checking connectivity... done.
jirka@vm-jirka:~/BPI-R2$ cd media_build/
jirka@vm-jirka:~/BPI-R2/media_build$ make -j5 release DIR=/home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/
make -C /home/jirka/BPI-R2/media_build/v4l release
make[1]: Entering directory '/home/jirka/BPI-R2/media_build/v4l'
Searching in /home/jirka/BPI-R2/BPI-R2-bsp/linux-mt//Makefile for kernel version.
Forcing compiling to version 4.4.70
make[1]: Leaving directory '/home/jirka/BPI-R2/media_build/v4l'
jirka@vm-jirka:~/BPI-R2/media_build$ ./build
Checking if the needed tools for Ubuntu 16.04.3 LTS are available
Needed package dependencies are met.
************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory. *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures *
************************************************************
************************************************************
* All drivers and build system are under GPLv2 License *
* Firmware files are under the license terms found at: *
* http://www.linuxtv.org/downloads/firmware/ *
* Please abort in the next 5 secs if you don't agree with *
* the license *
************************************************************
Not aborted. It means that the licence was agreed. Proceeding...
****************************
Updating the building system
****************************
From git://linuxtv.org/media_build
* branch master -> FETCH_HEAD
Already up-to-date.
make: Entering directory '/home/jirka/BPI-R2/media_build/linux'
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2017-10-24 21:01:05-- http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Resolving linuxtv.org (linuxtv.org)... 130.149.80.248
Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 [following]
--2017-10-24 21:01:06-- https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105 [application/x-bzip2]
Saving to: ālinux-media.tar.bz2.md5.tmpā
linux-media.tar.bz2.md5 100%[==============================>] 105 --.-KB/s in 0s
2017-10-24 21:01:06 (1,75 MB/s) - ālinux-media.tar.bz2.md5.tmpā saved [105/105]
cat: linux-media.tar.bz2.md5: No such file or directory
--2017-10-24 21:01:06-- http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2
Resolving linuxtv.org (linuxtv.org)... 130.149.80.248
Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2 [following]
--2017-10-24 21:01:06-- https://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2
Connecting to linuxtv.org (linuxtv.org)|130.149.80.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6673742 (6,4M) [application/x-bzip2]
Saving to: ālinux-media.tar.bz2ā
linux-media.tar.bz2 100%[==============================>] 6,36M 241KB/s in 14s
2017-10-24 21:01:21 (467 KB/s) - ālinux-media.tar.bz2ā saved [6673742/6673742]
make: Leaving directory '/home/jirka/BPI-R2/media_build/linux'
make: Entering directory '/home/jirka/BPI-R2/media_build/linux'
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Leaving directory '/home/jirka/BPI-R2/media_build/linux'
**********************************************************
* Downloading firmwares from linuxtv.org. *
**********************************************************
--2017-10-24 21:01:22-- http://www.linuxtv.org/downloads/firmware//dvb-firmwares.tar.bz2
Resolving www.linuxtv.org (www.linuxtv.org)... 130.149.80.248
Connecting to www.linuxtv.org (www.linuxtv.org)|130.149.80.248|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.linuxtv.org/downloads/firmware//dvb-firmwares.tar.bz2 [following]
--2017-10-24 21:01:23-- https://www.linuxtv.org/downloads/firmware//dvb-firmwares.tar.bz2
Connecting to www.linuxtv.org (www.linuxtv.org)|130.149.80.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1235003 (1,2M) [application/x-bzip2]
Saving to: ādvb-firmwares.tar.bz2ā
dvb-firmwares.tar.bz2 100%[==============================>] 1,18M 528KB/s in 2,3s
2017-10-24 21:01:26 (528 KB/s) - ādvb-firmwares.tar.bz2ā saved [1235003/1235003]
as102_data1_st.hex
as102_data2_st.hex
cmmb_vega_12mhz.inp
cmmb_venice_12mhz.inp
dvb-fe-bcm3510-01.fw
dvb-fe-drxj-mc-1.0.8.fw
dvb-fe-drxj-mc-vsb-1.0.8.fw
dvb-fe-drxj-mc-vsb-qam-1.0.8.fw
dvb-fe-or51132-qam.fw
dvb-fe-or51132-vsb.fw
dvb-fe-or51211.fw
dvb-fe-xc4000-1.4.1.fw
dvb-fe-xc5000-1.6.114.fw
dvb-fe-xc5000c-4.1.30.7.fw
dvb-firmwares.tar.bz2
dvb-ttpci-01.fw-261a
dvb-ttpci-01.fw-261b
dvb-ttpci-01.fw-261c
dvb-ttpci-01.fw-261d
dvb-ttpci-01.fw-261f
dvb-ttpci-01.fw-2622
dvb-usb-avertv-a800-02.fw
dvb-usb-bluebird-01.fw
dvb-usb-dib0700-1.20.fw
dvb-usb-dibusb-5.0.0.11.fw
dvb-usb-dibusb-6.0.0.8.fw
dvb-usb-dtt200u-01.fw
dvb-usb-it9135-01.fw
dvb-usb-it9135-02.fw
dvb-usb-terratec-h5-drxk.fw
dvb-usb-terratec-h7-az6007.fw
dvb-usb-terratec-h7-drxk.fw
dvb-usb-umt-010-02.fw
dvb-usb-vp702x-01.fw
dvb-usb-vp7045-01.fw
dvb-usb-wt220u-01.fw
dvb-usb-wt220u-02.fw
dvb_nova_12mhz.inp
dvb_nova_12mhz_b0.inp
isdbt_nova_12mhz.inp
isdbt_nova_12mhz_b0.inp
isdbt_rio.inp
sms1xxx-hcw-55xxx-dvbt-02.fw
sms1xxx-hcw-55xxx-isdbt-02.fw
sms1xxx-nova-a-dvbt-01.fw
sms1xxx-nova-b-dvbt-01.fw
sms1xxx-stellar-dvbt-01.fw
tdmb_nova_12mhz.inp
v4l-cx231xx-avcore-01.fw
v4l-cx23418-apu.fw
v4l-cx23418-cpu.fw
v4l-cx23418-dig.fw
v4l-cx23885-avcore-01.fw
v4l-cx23885-enc-broken.fw
v4l-cx25840.fw
******************
* Start building *
******************
make -C /home/jirka/BPI-R2/media_build/v4l allyesconfig
make[1]: Entering directory '/home/jirka/BPI-R2/media_build/v4l'
make[2]: Entering directory '/home/jirka/BPI-R2/media_build/linux'
Applying patches for kernel 4.4.70
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/v4.12_revert_solo6x10_copykerneluser.patch
patch -s -f -N -p1 -i ../backports/v4.10_sched_signal.patch
patch -s -f -N -p1 -i ../backports/v4.10_fault_page.patch
patch -s -f -N -p1 -i ../backports/v4.10_refcount.patch
patch -s -f -N -p1 -i ../backports/v4.9_mm_address.patch
patch -s -f -N -p1 -i ../backports/v4.9_dvb_net_max_mtu.patch
patch -s -f -N -p1 -i ../backports/v4.9_ktime_cleanups.patch
patch -s -f -N -p1 -i ../backports/v4.8_user_pages_flag.patch
patch -s -f -N -p1 -i ../backports/v4.7_dma_attrs.patch
patch -s -f -N -p1 -i ../backports/v4.7_pci_alloc_irq_vectors.patch
patch -s -f -N -p1 -i ../backports/v4.6_i2c_mux.patch
patch -s -f -N -p1 -i ../backports/v4.5_gpiochip_data_pointer.patch
patch -s -f -N -p1 -i ../backports/v4.5_get_user_pages.patch
patch -s -f -N -p1 -i ../backports/v4.5_uvc_super_plus.patch
patch -s -f -N -p1 -i ../backports/v4.4_gpio_chip_parent.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory '/home/jirka/BPI-R2/media_build/linux'
./scripts/make_kconfig.pl /home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/ /home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/ 1
Preparing to compile for kernel version 4.4.70
WARNING: This is the V4L/DVB backport tree, with experimental drivers
backported to run on legacy kernels from the development tree at:
http://git.linuxtv.org/media-tree.git.
It is generally safe to use it for testing a new driver or
feature, but its usage on production environments is risky.
Don't use it in production. You've been warned.
VIDEO_CX231XX: Requires at least kernel 4.7.0
VIDEO_SOLO6X10: Requires at least kernel 4.5.0
VIDEO_MUX: Requires at least kernel 4.13.0
RADIO_WL128X: Requires at least kernel 4.13.0
VIDEO_DW9714: Requires at least kernel 9.255.255
VIDEO_OV5670: Requires at least kernel 4.10.0
VIDEO_OV13858: Requires at least kernel 4.5.0
DVB_M88DS3103: Requires at least kernel 4.7.0
DVB_CXD2820R: Requires at least kernel 4.6.0
DVB_RTL2830: Requires at least kernel 4.7.0
DVB_RTL2832: Requires at least kernel 4.7.0
DVB_SI2168: Requires at least kernel 4.7.0
DVB_LGDT3306A: Requires at least kernel 4.7.0
INTEL_ATOMISP: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/fix_kconfig.pl
make[1]: Leaving directory '/home/jirka/BPI-R2/media_build/v4l'
make -C /home/jirka/BPI-R2/media_build/v4l
make[1]: Entering directory '/home/jirka/BPI-R2/media_build/v4l'
scripts/make_makefile.pl
./scripts/make_myconfig.pl
perl scripts/make_config_compat.pl /home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/ ./.myconfig ./config-compat.h
creating symbolic links...
Kernel build directory is /home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/
make -C ../linux apply_patches
make[2]: Entering directory '/home/jirka/BPI-R2/media_build/linux'
Patches for 4.4.70 already applied.
make[2]: Leaving directory '/home/jirka/BPI-R2/media_build/linux'
make -C /home/jirka/BPI-R2/BPI-R2-bsp/linux-mt/ SUBDIRS=/home/jirka/BPI-R2/media_build/v4l modules
make[2]: Entering directory '/home/jirka/BPI-R2/BPI-R2-bsp/linux-mt'
CC [M] /home/jirka/BPI-R2/media_build/v4l/msp3400-driver.o
In file included from ./arch/x86/include/asm/bitops.h:16:0,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from ./arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from /home/jirka/BPI-R2/media_build/v4l/config-compat.h:12,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:10,
from <command-line>:0:
./arch/x86/include/asm/arch_hweight.h: In function '__arch_hweight64':
./arch/x86/include/asm/arch_hweight.h:56:42: error: expected ':' or ')' before 'POPCNT64'
asm (ALTERNATIVE("call __sw_hweight64", POPCNT64, X86_FEATURE_POPCNT)
^
./arch/x86/include/asm/alternative.h:131:28: note: in definition of macro 'ALTINSTR_REPLACEMENT'
b_replacement(num)":\n\t" newinstr "\n" e_replacement(num) ":\n\t"
^
./arch/x86/include/asm/arch_hweight.h:56:7: note: in expansion of macro 'ALTERNATIVE'
asm (ALTERNATIVE("call __sw_hweight64", POPCNT64, X86_FEATURE_POPCNT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:250:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopud.h: At top level:
include/asm-generic/pgtable-nopud.h:15:0: warning: "PUD_SHIFT" redefined
#define PUD_SHIFT PGDIR_SHIFT
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:33:0: note: this is the location of the previous definition
#define PUD_SHIFT 30
^
In file included from ./arch/x86/include/asm/pgtable_types.h:250:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopud.h:16:0: warning: "PTRS_PER_PUD" redefined
#define PTRS_PER_PUD 1
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:34:0: note: this is the location of the previous definition
#define PTRS_PER_PUD 512
^
In file included from ./arch/x86/include/asm/pgtable_types.h:250:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopud.h:17:0: warning: "PUD_SIZE" redefined
#define PUD_SIZE (1UL << PUD_SHIFT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:50:0: note: this is the location of the previous definition
#define PUD_SIZE (_AC(1, UL) << PUD_SHIFT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:250:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopud.h:18:0: warning: "PUD_MASK" redefined
#define PUD_MASK (~(PUD_SIZE-1))
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:51:0: note: this is the location of the previous definition
#define PUD_MASK (~(PUD_SIZE - 1))
^
In file included from ./arch/x86/include/asm/pgtable_types.h:271:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopmd.h:19:0: warning: "PMD_SHIFT" redefined
#define PMD_SHIFT PUD_SHIFT
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:40:0: note: this is the location of the previous definition
#define PMD_SHIFT 21
^
In file included from ./arch/x86/include/asm/pgtable_types.h:271:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopmd.h:20:0: warning: "PTRS_PER_PMD" redefined
#define PTRS_PER_PMD 1
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:41:0: note: this is the location of the previous definition
#define PTRS_PER_PMD 512
^
In file included from ./arch/x86/include/asm/pgtable_types.h:271:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopmd.h:21:0: warning: "PMD_SIZE" redefined
#define PMD_SIZE (1UL << PMD_SHIFT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:48:0: note: this is the location of the previous definition
#define PMD_SIZE (_AC(1, UL) << PMD_SHIFT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:271:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/asm-generic/pgtable-nopmd.h:22:0: warning: "PMD_MASK" redefined
#define PMD_MASK (~(PMD_SIZE-1))
^
In file included from ./arch/x86/include/asm/pgtable_types.h:205:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/thread_info.h:52,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/pgtable_64_types.h:49:0: note: this is the location of the previous definition
#define PMD_MASK (~(PMD_SIZE - 1))
^
In file included from ./arch/x86/include/asm/thread_info.h:52:0,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/processor.h:172:0: warning: "cache_line_size" redefined
#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
^
In file included from include/linux/printk.h:8:0,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:13,
from ./arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from /home/jirka/BPI-R2/media_build/v4l/config-compat.h:12,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:10,
from <command-line>:0:
include/linux/cache.h:78:0: note: this is the location of the previous definition
#define cache_line_size() L1_CACHE_BYTES
^
In file included from ./arch/x86/include/asm/segment.h:155:0,
from ./arch/x86/include/asm/ptrace.h:4,
from ./arch/x86/include/asm/alternative.h:8,
from ./arch/x86/include/asm/bitops.h:16,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from ./arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from /home/jirka/BPI-R2/media_build/v4l/config-compat.h:12,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:10,
from <command-line>:0:
./arch/x86/include/asm/cache.h:7:25: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
^
./arch/x86/include/asm/cache.h:8:30: note: in expansion of macro 'L1_CACHE_SHIFT'
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
^
include/linux/cache.h:12:25: note: in expansion of macro 'L1_CACHE_BYTES'
#define SMP_CACHE_BYTES L1_CACHE_BYTES
^
include/linux/cache.h:34:58: note: in expansion of macro 'SMP_CACHE_BYTES'
#define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
^
./arch/x86/include/asm/processor.h:275:27: note: in expansion of macro '____cacheline_aligned'
} __attribute__((packed)) ____cacheline_aligned;
^
In file included from ./arch/x86/include/asm/preempt.h:5:0,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/processor.h: In function 'current_top_of_stack':
./arch/x86/include/asm/processor.h:466:30: error: 'cpu_current_top_of_stack' undeclared (first use in this function)
return this_cpu_read_stable(cpu_current_top_of_stack);
^
./arch/x86/include/asm/percpu.h:213:9: note: in definition of macro 'percpu_stable_op'
typeof(var) pfo_ret__; \
^
./arch/x86/include/asm/processor.h:466:9: note: in expansion of macro 'this_cpu_read_stable'
return this_cpu_read_stable(cpu_current_top_of_stack);
^
./arch/x86/include/asm/processor.h:466:30: note: each undeclared identifier is reported only once for each function it appears in
return this_cpu_read_stable(cpu_current_top_of_stack);
^
./arch/x86/include/asm/percpu.h:213:9: note: in definition of macro 'percpu_stable_op'
typeof(var) pfo_ret__; \
^
./arch/x86/include/asm/processor.h:466:9: note: in expansion of macro 'this_cpu_read_stable'
return this_cpu_read_stable(cpu_current_top_of_stack);
^
In file included from ./arch/x86/include/asm/atomic.h:240:0,
from include/linux/atomic.h:4,
from ./arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/atomic64_64.h: At top level:
./arch/x86/include/asm/atomic64_64.h:19:40: error: unknown type name 'atomic64_t'
static inline long atomic64_read(const atomic64_t *v)
^
In file included from include/asm-generic/bug.h:4:0,
from ./arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from /home/jirka/BPI-R2/media_build/v4l/config-compat.h:12,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:10,
from <command-line>:0:
./arch/x86/include/asm/atomic64_64.h: In function 'atomic64_read':
./arch/x86/include/asm/atomic64_64.h:21:22: error: request for member 'counter' in something not a structure or union
return READ_ONCE((v)->counter);
^
include/linux/compiler.h:279:17: note: in definition of macro '__READ_ONCE'
union { typeof(x) __val; char __c[1]; } __u; \
^
./arch/x86/include/asm/atomic64_64.h:21:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^
./arch/x86/include/asm/atomic64_64.h:21:22: error: request for member 'counter' in something not a structure or union
return READ_ONCE((v)->counter);
^
include/linux/compiler.h:281:22: note: in definition of macro '__READ_ONCE'
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./arch/x86/include/asm/atomic64_64.h:21:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^
./arch/x86/include/asm/atomic64_64.h:21:22: error: request for member 'counter' in something not a structure or union
return READ_ONCE((v)->counter);
^
include/linux/compiler.h:281:42: note: in definition of macro '__READ_ONCE'
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./arch/x86/include/asm/atomic64_64.h:21:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^
./arch/x86/include/asm/atomic64_64.h:21:22: error: request for member 'counter' in something not a structure or union
return READ_ONCE((v)->counter);
^
include/linux/compiler.h:283:30: note: in definition of macro '__READ_ONCE'
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./arch/x86/include/asm/atomic64_64.h:21:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^
./arch/x86/include/asm/atomic64_64.h:21:22: error: request for member 'counter' in something not a structure or union
return READ_ONCE((v)->counter);
^
include/linux/compiler.h:283:50: note: in definition of macro '__READ_ONCE'
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./arch/x86/include/asm/atomic64_64.h:21:9: note: in expansion of macro 'READ_ONCE'
return READ_ONCE((v)->counter);
^
In file included from ./arch/x86/include/asm/atomic.h:240:0,
from include/linux/atomic.h:4,
from ./arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/atomic64_64.h: At top level:
./arch/x86/include/asm/atomic64_64.h:31:33: error: unknown type name 'atomic64_t'
static inline void atomic64_set(atomic64_t *v, long i)
^
./arch/x86/include/asm/atomic64_64.h:43:50: error: unknown type name 'atomic64_t'
static __always_inline void atomic64_add(long i, atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:57:41: error: unknown type name 'atomic64_t'
static inline void atomic64_sub(long i, atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:73:49: error: unknown type name 'atomic64_t'
static inline int atomic64_sub_and_test(long i, atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:84:42: error: unknown type name 'atomic64_t'
static __always_inline void atomic64_inc(atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:97:42: error: unknown type name 'atomic64_t'
static __always_inline void atomic64_dec(atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:112:41: error: unknown type name 'atomic64_t'
static inline int atomic64_dec_and_test(atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:125:41: error: unknown type name 'atomic64_t'
static inline int atomic64_inc_and_test(atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:139:49: error: unknown type name 'atomic64_t'
static inline int atomic64_add_negative(long i, atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:151:57: error: unknown type name 'atomic64_t'
static __always_inline long atomic64_add_return(long i, atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:156:48: error: unknown type name 'atomic64_t'
static inline long atomic64_sub_return(long i, atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:164:37: error: unknown type name 'atomic64_t'
static inline long atomic64_cmpxchg(atomic64_t *v, long old, long new)
^
./arch/x86/include/asm/atomic64_64.h:169:34: error: unknown type name 'atomic64_t'
static inline long atomic64_xchg(atomic64_t *v, long new)
^
./arch/x86/include/asm/atomic64_64.h:183:39: error: unknown type name 'atomic64_t'
static inline int atomic64_add_unless(atomic64_t *v, long a, long u)
^
./arch/x86/include/asm/atomic64_64.h:207:45: error: unknown type name 'atomic64_t'
static inline long atomic64_dec_if_positive(atomic64_t *v)
^
./arch/x86/include/asm/atomic64_64.h:224:42: error: unknown type name 'atomic64_t'
static inline void atomic64_##op(long i, atomic64_t *v) \
^
./arch/x86/include/asm/atomic64_64.h:232:1: note: in expansion of macro 'ATOMIC64_OP'
ATOMIC64_OP(and)
^
./arch/x86/include/asm/atomic64_64.h:224:42: error: unknown type name 'atomic64_t'
static inline void atomic64_##op(long i, atomic64_t *v) \
^
./arch/x86/include/asm/atomic64_64.h:233:1: note: in expansion of macro 'ATOMIC64_OP'
ATOMIC64_OP(or)
^
./arch/x86/include/asm/atomic64_64.h:224:42: error: unknown type name 'atomic64_t'
static inline void atomic64_##op(long i, atomic64_t *v) \
^
./arch/x86/include/asm/atomic64_64.h:234:1: note: in expansion of macro 'ATOMIC64_OP'
ATOMIC64_OP(xor)
^
In file included from ./arch/x86/include/asm/thread_info.h:53:0,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/linux/atomic.h:556:49: error: unknown type name 'atomic64_t'
static inline void atomic64_andnot(long long i, atomic64_t *v)
^
In file included from ./arch/x86/include/asm/preempt.h:6:0,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
include/linux/thread_info.h:149:19: error: redefinition of 'arch_within_stack_frames'
static inline int arch_within_stack_frames(const void * const stack,
^
In file included from include/linux/thread_info.h:54:0,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/input.h:11,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:18,
from <command-line>:0:
./arch/x86/include/asm/thread_info.h:189:19: note: previous definition of 'arch_within_stack_frames' was here
static inline int arch_within_stack_frames(const void * const stack,
^
In file included from ./arch/x86/include/asm/segment.h:155:0,
from ./arch/x86/include/asm/ptrace.h:4,
from ./arch/x86/include/asm/alternative.h:8,
from ./arch/x86/include/asm/bitops.h:16,
from include/linux/bitops.h:36,
from include/linux/kernel.h:10,
from include/asm-generic/bug.h:13,
from ./arch/x86/include/asm/bug.h:35,
from include/linux/bug.h:4,
from include/linux/mmdebug.h:4,
from /home/jirka/BPI-R2/media_build/v4l/config-compat.h:12,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:10,
from <command-line>:0:
./arch/x86/include/asm/cache.h:12:31: error: 'CONFIG_X86_INTERNODE_CACHE_SHIFT' undeclared here (not in a function)
#define INTERNODE_CACHE_SHIFT CONFIG_X86_INTERNODE_CACHE_SHIFT
^
include/linux/cache.h:71:35: note: in expansion of macro 'INTERNODE_CACHE_SHIFT'
__attribute__((__aligned__(1 << (INTERNODE_CACHE_SHIFT))))
^
include/linux/mmzone.h:110:3: note: in expansion of macro '____cacheline_internodealigned_in_smp'
} ____cacheline_internodealigned_in_smp;
^
In file included from include/linux/sched.h:32:0,
from include/sound/core.h:26,
from /home/jirka/BPI-R2/media_build/v4l/compat.h:265,
from <command-line>:0:
include/linux/cputime.h:4:25: fatal error: asm/cputime.h: No such file or directory
compilation terminated.
scripts/Makefile.build:258: recipe for target '/home/jirka/BPI-R2/media_build/v4l/msp3400-driver.o' failed
make[3]: *** [/home/jirka/BPI-R2/media_build/v4l/msp3400-driver.o] Error 1
Makefile:1402: recipe for target '_module_/home/jirka/BPI-R2/media_build/v4l' failed
make[2]: *** [_module_/home/jirka/BPI-R2/media_build/v4l] Error 2
make[2]: Leaving directory '/home/jirka/BPI-R2/BPI-R2-bsp/linux-mt'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/jirka/BPI-R2/media_build/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
build failed at ./build line 526