Moderator Control Panel ]

180822 and kernel-4.19.0 build fails

It's important to keep your driver and software updated.

180822 and kernel-4.19.0 build fails

Postby pchristy » Wed Oct 24, 2018 4:04 am

Driver version 180822 fails to compile on kernel-4.19.0:

~$~/Build/TBS_open_180822/media_build$ make
make -C /home/pchristy/Build/TBS_open_180822/media_build/v4l
make[1]: Entering directory '/home/pchristy/Build/TBS_open_180822/media_build/v4l'
No version yet, using 4.19.0
scripts/make_makefile.pl
Updating/Creating .config
make[2]: Entering directory '/home/pchristy/Build/TBS_open_180822/media_build/linux'
Syncing with dir ../../media
Can't find ../../media/Makefile at ./use_dir.pl line 287.
make[2]: *** [Makefile:132: apply_patches] Error 2
make[2]: Leaving directory '/home/pchristy/Build/TBS_open_180822/media_build/linux'
Preparing to compile for kernel version 4.19.0
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_DW9714: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/make_myconfig.pl
[ ! -f "./config-mycompat.h" ] && echo "/* empty config-mycompat.h */" > "./config-mycompat.h" || true
perl scripts/make_config_compat.pl /lib/modules/4.19.0/source ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory '/home/pchristy/Build/TBS_open_180822/media_build/v4l/firmware'
make[2]: Nothing to be done for 'prep'.
make[2]: Leaving directory '/home/pchristy/Build/TBS_open_180822/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/home/pchristy/Build/TBS_open_180822/media_build/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/home/pchristy/Build/TBS_open_180822/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.19.0/build
make -C /lib/modules/4.19.0/build SUBDIRS=/home/pchristy/Build/TBS_open_180822/media_build/v4l modules
make[2]: Entering directory '/usr/src/linux-4.19.0'
CC [M] /home/pchristy/Build/TBS_open_180822/media_build/v4l/msp3400-driver.o
In file included from <command-line>:
././include/linux/compiler_types.h:110: warning: "__deprecated" redefined
#define __deprecated

In file included from ././include/linux/compiler_types.h:64,
from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/../linux/include/linux/compiler-gcc.h:91: note: this is the location of the previous definition
#define __deprecated __attribute__((deprecated))

In file included from <command-line>:
././include/linux/compiler_types.h:213: warning: "__cold" redefined
#define __cold __attribute__((cold))

In file included from ././include/linux/compiler_types.h:64,
from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/../linux/include/linux/compiler-gcc.h:187: note: this is the location of the previous definition
#define __cold __attribute__((__cold__))

In file included from <command-line>:
././include/linux/compiler_types.h:235: warning: "__naked" redefined
#define __naked __attribute__((naked)) notrace

In file included from ././include/linux/compiler_types.h:64,
from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/../linux/include/linux/compiler-gcc.h:108: note: this is the location of the previous definition
#define __naked __attribute__((naked)) noinline __noclone notrace

In file included from <command-line>:
././include/linux/compiler_types.h:268: warning: "inline" redefined
#define inline inline __attribute__((unused)) notrace __gnu_inline

In file included from ././include/linux/compiler_types.h:64,
from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/../linux/include/linux/compiler-gcc.h:83: note: this is the location of the previous definition
#define inline inline __attribute__((unused)) notrace

In file included from <command-line>:
././include/linux/compiler_types.h:271: warning: "__inline__" redefined
#define __inline__ inline

In file included from ././include/linux/compiler_types.h:64,
from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/../linux/include/linux/compiler-gcc.h:84: note: this is the location of the previous definition
#define __inline__ __inline__ __attribute__((unused)) notrace

In file included from <command-line>:
././include/linux/compiler_types.h:272: warning: "__inline" redefined
#define __inline inline

In file included from ././include/linux/compiler_types.h:64,
from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/../linux/include/linux/compiler-gcc.h:85: note: this is the location of the previous definition
#define __inline __inline __attribute__((unused)) notrace

In file included from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:604: warning: "BIT" redefined
#define BIT(x) (1UL<<((x)%BITS_PER_LONG))

In file included from ./include/linux/bitops.h:5,
from ./include/linux/kernel.h:11,
from ./include/asm-generic/bug.h:18,
from ./arch/x86/include/asm/bug.h:83,
from ./include/linux/bug.h:5,
from ./include/linux/mmdebug.h:5,
from /home/pchristy/Build/TBS_open_180822/media_build/v4l/config-compat.h:12,
from /home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:10,
from <command-line>:
./include/linux/bits.h:6: note: this is the location of the previous definition
#define BIT(nr) (1UL << (nr))

In file included from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:1167:44: warning: 'struct i2c_adapter' declared inside parameter list will not be visible outside of this definition or declaration
static inline void i2c_lock_adapter(struct i2c_adapter *adapter)
^~~~~~~~~~~
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h: In function 'i2c_lock_adapter':
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:1169:21: error: dereferencing pointer to incomplete type 'struct i2c_adapter'
mutex_lock(&adapter->bus_lock);
^~
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h: At top level:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:1171:46: warning: 'struct i2c_adapter' declared inside parameter list will not be visible outside of this definition or declaration
static inline void i2c_unlock_adapter(struct i2c_adapter *adapter)
^~~~~~~~~~~
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h: In function 'i2c_unlock_adapter':
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:1173:23: error: dereferencing pointer to incomplete type 'struct i2c_adapter'
mutex_unlock(&adapter->bus_lock);
^~
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h: At top level:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:1603: warning: "GENMASK" redefined
#define GENMASK(h, l) (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l))

In file included from ./include/linux/bitops.h:5,
from ./include/linux/kernel.h:11,
from ./include/asm-generic/bug.h:18,
from ./arch/x86/include/asm/bug.h:83,
from ./include/linux/bug.h:5,
from ./include/linux/mmdebug.h:5,
from /home/pchristy/Build/TBS_open_180822/media_build/v4l/config-compat.h:12,
from /home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:10,
from <command-line>:
./include/linux/bits.h:19: note: this is the location of the previous definition
#define GENMASK(h, l) \

In file included from <command-line>:
/home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:1903: warning: "GENMASK_ULL" redefined
#define GENMASK_ULL(h, l) \

In file included from ./include/linux/bitops.h:5,
from ./include/linux/kernel.h:11,
from ./include/asm-generic/bug.h:18,
from ./arch/x86/include/asm/bug.h:83,
from ./include/linux/bug.h:5,
from ./include/linux/mmdebug.h:5,
from /home/pchristy/Build/TBS_open_180822/media_build/v4l/config-compat.h:12,
from /home/pchristy/Build/TBS_open_180822/media_build/v4l/compat.h:10,
from <command-line>:
./include/linux/bits.h:22: note: this is the location of the previous definition
#define GENMASK_ULL(h, l) \

make[3]: *** [scripts/Makefile.build:306: /home/pchristy/Build/TBS_open_180822/media_build/v4l/msp3400-driver.o] Error 1
make[2]: *** [Makefile:1517: _module_/home/pchristy/Build/TBS_open_180822/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-4.19.0'
make[1]: *** [Makefile:52: default] Error 2
make[1]: Leaving directory '/home/pchristy/Build/TBS_open_180822/media_build/v4l'
make: *** [Makefile:26: all] Error 2
pchristy
 
Posts: 5
Joined: Sun Dec 17, 2017 12:35 am

Re: 180822 and kernel-4.19.0 build fails

Postby steven » Wed Oct 24, 2018 10:36 am

for kernel 4.19 have not added support yet ,please try with older kernel first
steven
 
Posts: 2036
Joined: Fri Aug 06, 2010 3:23 pm

Re: 180822 and kernel-4.19.0 build fails

Postby pchristy » Wed Oct 24, 2018 4:13 pm

Fails on 4.15.4 as well!

The log is too long to post in here, and your system won't allow me to attach .txt or .log files!
pchristy
 
Posts: 5
Joined: Sun Dec 17, 2017 12:35 am

Re: 180822 and kernel-4.19.0 build fails

Postby pchristy » Thu Oct 25, 2018 1:46 am

Finally got it to build, but I had to build a new kernel first!!!

Its OK with 4.17.19, but I could really use a version that works with 4.19.X asap!
pchristy
 
Posts: 5
Joined: Sun Dec 17, 2017 12:35 am


Return to Driver & Software Update

Who is online

Users browsing this forum: No registered users and 2 guests

cron