ljalves / linux_media

TBS linux open source drivers
https://github.com/ljalves/linux_media/wiki
Other
89 stars 150 forks source link

error during make #174

Open oldfart101 opened 4 years ago

oldfart101 commented 4 years ago
make -C firmware prep
make[2]: Entering directory '/home/andrew/media_build/v4l/firmware'
make[2]: Leaving directory '/home/andrew/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/home/andrew/media_build/v4l/firmware'
  CC  ihex2fw
Generating vicam/firmware.fw
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory '/home/andrew/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.15.0-54-generic/build
make -C ../linux apply_patches
make[2]: Entering directory '/home/andrew/media_build/linux'
Syncing with dir ../../media
Patches for 4.15.0-54-generic already applied.
make[2]: Leaving directory '/home/andrew/media_build/linux'
make -C /lib/modules/4.15.0-54-generic/build SUBDIRS=/home/andrew/media_build/v4l  modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-54-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /home/andrew/media_build/v4l/cec-edid.o
In file included from ./include/linux/compiler_types.h:58:0,
                 from ././include/linux/kconfig.h:74,
                 from <command-line>:0:
/home/andrew/media_build/v4l/../linux/include/linux/compiler-gcc.h:2:2: error: #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
 #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
  ^~~~~
In file included from <command-line>:0:0:
/home/andrew/media_build/v4l/compat.h:539:0: warning: "BIT" redefined
 #define BIT(x)  (1UL<<((x)%BITS_PER_LONG))

In file included from ./include/linux/bitops.h:5:0,
                 from ./include/linux/kernel.h:11,
                 from ./include/linux/list.h:9,
                 from ./include/linux/preempt.h:11,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/input.h:11,
                 from /home/andrew/media_build/v4l/compat.h:10,
                 from <command-line>:0:
./include/linux/bits.h:6:0: note: this is the location of the previous definition
 #define BIT(nr)   (1UL << (nr))

In file included from <command-line>:0:0:
/home/andrew/media_build/v4l/compat.h:1506:0: warning: "GENMASK" redefined
 #define GENMASK(h, l)           (((U32_C(1) << ((h) - (l) + 1)) - 1) << (l))

In file included from ./include/linux/bitops.h:5:0,
                 from ./include/linux/kernel.h:11,
                 from ./include/linux/list.h:9,
                 from ./include/linux/preempt.h:11,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/input.h:11,
                 from /home/andrew/media_build/v4l/compat.h:10,
                 from <command-line>:0:
./include/linux/bits.h:19:0: note: this is the location of the previous definition
 #define GENMASK(h, l) \

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

In file included from ./include/linux/bitops.h:5:0,
                 from ./include/linux/kernel.h:11,
                 from ./include/linux/list.h:9,
                 from ./include/linux/preempt.h:11,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/input.h:11,
                 from /home/andrew/media_build/v4l/compat.h:10,
                 from <command-line>:0:
./include/linux/bits.h:22:0: note: this is the location of the previous definition
 #define GENMASK_ULL(h, l) \

scripts/Makefile.build:337: recipe for target '/home/andrew/media_build/v4l/cec-edid.o' failed
make[3]: *** [/home/andrew/media_build/v4l/cec-edid.o] Error 1
Makefile:1552: recipe for target '_module_/home/andrew/media_build/v4l' failed
make[2]: *** [_module_/home/andrew/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-54-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/andrew/media_build/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2