tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
169 stars 79 forks source link

Build fails on Debian 12 #327

Closed ritzmann closed 7 months ago

ritzmann commented 8 months ago

Latest media and media_build checkouts. Running build from media_build:

./build                                                                                                     
Checking if the needed tools for Debian GNU/Linux 12 (bookworm) 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:     *
* https://github.com/tbsdtv/media_build/releases/download/latest *
* 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
****************************
Von https://github.com/tbsdtv/media_build
 * branch            master     -> FETCH_HEAD
Bereits aktuell.
make: Verzeichnis „/home/user/src/tbsdtv/media_build/linux“ wird betreten
wget https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2023-10-23 02:31:14--  https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5

...

******************
* Start building *
******************
make -C /home/user/src/tbsdtv/media_build/v4l allyesconfig
make[1]: Verzeichnis „/home/user/src/tbsdtv/media_build/v4l“ wird betreten
No version yet, using 6.1.0-13-amd64
make[2]: Entering directory '/home/user/src/tbsdtv/media_build/linux'
Applying patches for kernel 6.1.0-13-amd64
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/ccs.patch
patch -s -f -N -p1 -i ../backports/rc-cec.patch
patch -s -f -N -p1 -i ../backports/v6.4_pin_user_pages.patch
patch -s -f -N -p1 -i ../backports/v6.3_class_create.patch
patch -s -f -N -p1 -i ../backports/v6.3_check_endpoint.patch
patch -s -f -N -p1 -i ../backports/v6.2_class.patch
patch -s -f -N -p1 -i ../backports/v6.2_remove.patch
patch -s -f -N -p1 -i ../backports/v6.2_probe.patch
patch -s -f -N -p1 -i ../backports/v6.2_v4l2-core.patch
patch -s -f -N -p1 -i ../backports/v6.1_class.patch
patch -s -f -N -p1 -i ../backports/v6.1_i2c_probe.patch
patch -s -f -N -p1 -i ../backports/v6.1_videobuf2.patch
patch -s -f -N -p1 -i ../backports/v6.1_timer.patch
patch -s -f -N -p1 -i ../backports/v6.1_ipu3.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/user/src/tbsdtv/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/6.1.0-13-amd64/build /lib/modules/6.1.0-13-amd64/source 1
Preparing to compile for kernel version 6.1.0

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

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_OV772X: Requires at least kernel 9.255.255
VIDEO_OV9650: Requires at least kernel 9.255.255
VIDEO_TC358746: Requires at least kernel 9.255.255
INTEL_ATOMISP: Requires at least kernel 9.255.255
VIDEO_IPU3_IMGU: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/fix_kconfig.pl

...

  CC [M]  /home/user/src/tbsdtv/media_build/v4l/tbsecp3-asi.o
  CC [M]  /home/user/src/tbsdtv/media_build/v4l/tbs_pcie.o
  CC [M]  /home/user/src/tbsdtv/media_build/v4l/tbs_pcie-sdi.o
  CC [M]  /home/user/src/tbsdtv/media_build/v4l/tbsmod.o
/home/user/src/tbsdtv/media_build/v4l/tbsecp3-asi.c: In function 'asi_write16bit':
/home/user/src/tbsdtv/media_build/v4l/tbsecp3-asi.c:80:13: warning: unused variable 'regData' [-Wunused-variable]
   80 |         int regData;
      |             ^~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c: In function 'tbs_i2c_xfer':
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:510:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  510 |         if (TBS_PCIE_READ(i2c->base, TBS_I2C_CTRL) == 1);
      |         ^~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:511:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  511 |                 i2c->ready = 0;
      |                 ^~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:533:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  533 |         if (TBS_PCIE_READ(i2c->base, TBS_I2C_CTRL) == 1);
      |         ^~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:534:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  534 |                 i2c->ready = 0;
      |                 ^~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:557:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  557 |         if (TBS_PCIE_READ(i2c->base, TBS_I2C_CTRL) == 1);
      |         ^~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:558:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  558 |                 i2c->ready = 0;
      |                 ^~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c: In function 'video_data_process':
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:662:13: warning: unused variable 'ret' [-Wunused-variable]
  662 |         int ret  =  TBS_PCIE_READ(TBS_DMA_BASE(videodev->index), 0);
      |             ^~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c: In function 'tbs_sdi_video_param':
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:1001:13: warning: unused variable 'itoi' [-Wunused-variable]
 1001 |         int itoi = 0;
      |             ^~~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:1000:13: warning: unused variable 'ptoi' [-Wunused-variable]
 1000 |         int ptoi = 0;
      |             ^~~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c: In function 'tbs_hdmi_video_param':
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie.c:1056:13: warning: unused variable 'itoi' [-Wunused-variable]
 1056 |         int itoi = 0;
      |             ^~~~
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie-sdi.c: In function 'sdi_write16bit':
/home/user/src/tbsdtv/media_build/v4l/tbs_pcie-sdi.c:80:13: warning: unused variable 'regData' [-Wunused-variable]
   80 |         int regData;
      |             ^~~~~~~
  CC [M]  /home/user/src/tbsdtv/media_build/v4l/tbsci.o
In file included from /usr/src/linux-headers-6.1.0-13-common/include/asm-generic/bug.h:22,
                 from /usr/src/linux-headers-6.1.0-13-common/arch/x86/include/asm/bug.h:87,
                 from /usr/src/linux-headers-6.1.0-13-common/include/linux/bug.h:5,
                 from /usr/src/linux-headers-6.1.0-13-common/include/linux/mmdebug.h:5,
                 from /home/user/src/tbsdtv/media_build/v4l/config-compat.h:12,
                 from /home/user/src/tbsdtv/media_build/v4l/compat.h:10,
                 from <command-line>:
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c: In function 'tbsmod_write':
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2408:32: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
 2408 |                         printk("%s size:%d  %d\n", __func__, size, copied);
      |                                ^~~~~~~~~~~~~~~~~~            ~~~~
      |                                                              |
      |                                                              size_t {aka long unsigned int}
/usr/src/linux-headers-6.1.0-13-common/include/linux/printk.h:429:25: note: in definition of macro 'printk_index_wrap'
  429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2408:25: note: in expansion of macro 'printk'
 2408 |                         printk("%s size:%d  %d\n", __func__, size, copied);
      |                         ^~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2408:42: note: format string is defined here
 2408 |                         printk("%s size:%d  %d\n", __func__, size, copied);
      |                                         ~^
      |                                          |
      |                                          int
      |                                         %ld
  CC [M]  /home/user/src/tbsdtv/media_build/v4l/ipu3-cio2-main.o
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c: In function 'module_init_tbsmod':
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:3612:47: error: macro "class_create" requires 2 arguments, but only 1 given
 3612 |         mod_cdev_class = class_create("tbsmod");
      |                                               ^
In file included from /usr/src/linux-headers-6.1.0-13-common/include/linux/device.h:31,
                 from /usr/src/linux-headers-6.1.0-13-common/include/linux/input.h:19,
                 from /home/user/src/tbsdtv/media_build/v4l/compat.h:47:
/usr/src/linux-headers-6.1.0-13-common/include/linux/device/class.h:273: note: macro "class_create" defined here
  273 | #define class_create(owner, name)               \
      | 
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:3612:26: error: 'class_create' undeclared (first use in this function); did you mean 'vfs_create'?
 3612 |         mod_cdev_class = class_create("tbsmod");
      |                          ^~~~~~~~~~~~
      |                          vfs_create
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:3612:26: note: each undeclared identifier is reported only once for each function it appears in
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c: In function 'tbsmod_ioctl':
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2442:17: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2442 |                 copy_from_user(&props , (const char*)arg, sizeof(struct dtv_properties ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2446:25: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2446 |                         copy_from_user(&prop , (const char*)props.props, sizeof(struct dtv_property ));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2614:17: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2614 |                 copy_from_user(&props , (const char*)arg, sizeof(struct dtv_properties ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2618:25: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2618 |                         copy_from_user(&prop , (const char*)props.props, sizeof(struct dtv_property ));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2642:17: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2642 |                 copy_to_user((void __user *)arg, &finfo, sizeof(struct dvb_frontend_info));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2651:17: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2651 |                 copy_from_user(&params , (const char*)arg, sizeof(struct dvb_modulator_parameters ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2667:17: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2667 |                 copy_from_user(&wrinfo , (const char*)arg, sizeof(struct mcu24cxx_info ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2669:17: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2669 |                 copy_to_user((void __user *)arg, &wrinfo, sizeof(struct mcu24cxx_info ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsmod.c:2672:17: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
 2672 |                 copy_from_user(&wrinfo , (const char*)arg, sizeof(struct mcu24cxx_info ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-6.1.0-13-common/scripts/Makefile.build:255: /home/user/src/tbsdtv/media_build/v4l/tbsmod.o] Fehler 1
make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet....
/home/user/src/tbsdtv/media_build/v4l/tbsci.c: In function 'tbsci_ioctl':
/home/user/src/tbsdtv/media_build/v4l/tbsci.c:249:13: warning: unused variable 'clk_freq' [-Wunused-variable]
  249 |         u32 clk_freq;
      |             ^~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsci.c:255:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  255 |                 if (props.num == 1)
      |                    ^
/home/user/src/tbsdtv/media_build/v4l/tbsci.c:303:9: note: here
  303 |         case FE_ECP3FW_READ:
      |         ^~~~
/home/user/src/tbsdtv/media_build/v4l/tbsci.c:254:17: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
  254 |                 copy_from_user(&props , (const char*)arg, sizeof(struct dtv_properties ));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/src/tbsdtv/media_build/v4l/tbsci.c:257:25: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result]
  257 |                         copy_from_user(&prop , (const char*)props.props, sizeof(struct dtv_property ));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.1.0-13-common/Makefile:2039: /home/user/src/tbsdtv/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-13-amd64'
make[1]: *** [Makefile:53: default] Fehler 2
make[1]: Verzeichnis „/home/user/src/tbsdtv/media_build/v4l“ wird verlassen
make: *** [Makefile:26: all] Fehler 2
build failed at ./build line 554
crazycat69 commented 8 months ago

use latest branch tbsdtv/media_build

ritzmann commented 8 months ago

Thanks, must have reset that accidentally when cleaning up the workspace. Failing even sooner now however:

$ git pull
Already up to date.
$ git status                                                                                                  
On branch latest
Your branch is up to date with 'origin/latest'.

nothing to commit, working tree clean
$ ./build
Checking if the needed tools for Debian GNU/Linux 12 (bookworm) 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:     *
* https://github.com/tbsdtv/media_build/releases/download/latest *
* 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 https://github.com/tbsdtv/media_build
 * branch            master     -> FETCH_HEAD
dropping 556d2d2ac981257d3539ad9ec0ff2104e8d8266d Disable SND_BT87X for <5.11 -- patch contents already upstream
Auto-merging backports/backports.txt
CONFLICT (content): Merge conflict in backports/backports.txt
error: could not apply 4fd7679... Update backport patches for < 6.1
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 4fd7679... Update backport patches for < 6.1
make: Entering directory '/home/user/src/tbsdtv/media_build/linux'
wget https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2023-10-25 20:12:58--  https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/89718596-4a50-4dbd-b984-f27e54da1ba8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231025T171258Z&X-Amz-Expires=300&X-Amz-Signature=8e7f2d5640460117d85e6768fb3e5247038fc70b27de8375b834b5eb75555cca&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2.md5&response-content-type=application%2Foctet-stream [following]
--2023-10-25 20:12:58--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/89718596-4a50-4dbd-b984-f27e54da1ba8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231025T171258Z&X-Amz-Expires=300&X-Amz-Signature=8e7f2d5640460117d85e6768fb3e5247038fc70b27de8375b834b5eb75555cca&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2.md5&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 91 [application/octet-stream]
Saving to: 'linux-media.tar.bz2.md5.tmp'

linux-media.tar.bz2.md5.tmp                100%[=======================================================================================>]      91  --.-KB/s    in 0s      

2023-10-25 20:12:58 (2.15 MB/s) - 'linux-media.tar.bz2.md5.tmp' saved [91/91]

cat: linux-media.tar.bz2.md5: No such file or directory
--2023-10-25 20:12:58--  https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/7414706d-935f-447e-b3d2-f6600546bdce?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231025T171259Z&X-Amz-Expires=300&X-Amz-Signature=dce5c79c4798a09076a4f3a0368a483530b3c90428bb77eaade1549307620140&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2&response-content-type=application%2Foctet-stream [following]
--2023-10-25 20:12:59--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/7414706d-935f-447e-b3d2-f6600546bdce?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231025T171259Z&X-Amz-Expires=300&X-Amz-Signature=dce5c79c4798a09076a4f3a0368a483530b3c90428bb77eaade1549307620140&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8263110 (7.9M) [application/octet-stream]
Saving to: 'linux-media.tar.bz2'

linux-media.tar.bz2                        100%[=======================================================================================>]   7.88M  1.22MB/s    in 6.4s    

2023-10-25 20:13:05 (1.23 MB/s) - 'linux-media.tar.bz2' saved [8263110/8263110]

make: Leaving directory '/home/user/src/tbsdtv/media_build/linux'
make: Entering directory '/home/user/src/tbsdtv/media_build/linux'
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Leaving directory '/home/user/src/tbsdtv/media_build/linux'
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
--2023-10-25 20:13:07--  https://github.com/tbsdtv/media_build/releases/download/latest/dvb-firmwares.tar.bz2
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/e798a0da-6b8a-461c-850f-845a851b88c6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231025T171307Z&X-Amz-Expires=300&X-Amz-Signature=461f3d20f6a0e9aa48b6029a8016ddd9180b82c2240b67df9e6cfd73b34a0b9b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Ddvb-firmwares.tar.bz2&response-content-type=application%2Foctet-stream [following]
--2023-10-25 20:13:07--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/e798a0da-6b8a-461c-850f-845a851b88c6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231025%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231025T171307Z&X-Amz-Expires=300&X-Amz-Signature=461f3d20f6a0e9aa48b6029a8016ddd9180b82c2240b67df9e6cfd73b34a0b9b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Ddvb-firmwares.tar.bz2&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1175964 (1.1M) [application/octet-stream]
Saving to: 'dvb-firmwares.tar.bz2'

dvb-firmwares.tar.bz2                      100%[=======================================================================================>]   1.12M  1.24MB/s    in 0.9s    

2023-10-25 20:13:08 (1.24 MB/s) - 'dvb-firmwares.tar.bz2' saved [1175964/1175964]

dvb-demod-avl6882.fw
dvb-demod-drxk-pctv.fw
dvb-demod-gx1503B.fw
dvb-demod-m88ds3103b.fw
dvb-demod-m88ds3103.fw
dvb-demod-m88rs6000.fw
dvb-demod-m88rs6060.fw
dvb-demod-mn88472-02.fw
dvb-demod-mn88473-01.fw
dvb-demod-si2168-01.fw
dvb-demod-si2168-02.fw
dvb-demod-si2168-a20-01.fw
dvb-demod-si2168-a30-01.fw
dvb-demod-si2168-b40-01.fw
dvb-demod-si2168-d60-01.fw
dvb-demod-si2183-b60-01.fw
dvb-fe-bcm3510-01.fw
dvb-fe-cx24116.fw
dvb-fe-cx24117.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-ds3000.fw
dvb-fe-ds300x.fw
dvb-fe-ds3103.fw
dvb-fe-mxl58x.fw
dvb-fe-mxl5xx.fw
dvb-fe-or51132-qam.fw
dvb-fe-or51132-vsb.fw
dvb-fe-or51211.fw
dvb-fe-rs6000.fw
dvb-fe-tda10045.fw
dvb-fe-tda10046.fw
dvb-fe-tda10048-1.0.fw
dvb-fe-tda10071.fw
dvb-fe-xc4000-1.4.1.fw
dvb-fe-xc5000-1.6.114.fw
dvb-fe-xc5000c-4.1.30.7.fw
dvb-tuner-si2141-a10-01.fw
dvb-tuner-si2157-a30-01.fw
dvb-tuner-si2157-a30-05.fw
dvb-tuner-si2158-a20-01.fw
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-dw2101.fw
dvb-usb-dw2102.fw
dvb-usb-dw2104.fw
dvb-usb-dw3101.fw
dvb-usb-id5230.fw
dvb-usb-id5301.fw
dvb-usb-id5520se.fw
dvb-usb-id5530.fw
dvb-usb-id5580.fw
dvb-usb-id5590.fw
dvb-usb-id5930.fw
dvb-usb-id5931.fw
dvb-usb-it9135-01.fw
dvb-usb-it9135-02.fw
dvb-usb-p1100.fw
dvb-usb-p1100-old.fw
dvb-usb-p7500.fw
dvb-usb-pctv-400e-01.fw
dvb-usb-pctv-450e-01.fw
dvb-usb-pctv-452e-01.fw
dvb-usb-s620.fw
dvb-usb-s630.fw
dvb-usb-s660.fw
dvb-usb-sb340.fw
dvb-usb-SkyStar_USB_HD_FW_v17_63.HEX.fw
dvb-usb-tbsqbox-dvbc.fw
dvb-usb-tbsqbox-id2601.fw
dvb-usb-tbsqbox-id5220.fw
dvb-usb-tbsqbox-id5520.fw
dvb-usb-tbsqbox-id5521.fw
dvb-usb-tbsqbox-id5680.fw
dvb-usb-tbsqbox-id5880.fw
dvb-usb-tbsqbox-id5881.fw
dvb-usb-tbsqbox-id5910.fw
dvb-usb-tbsqbox-id5920.fw
dvb-usb-tbsqbox-id5921.fw
dvb-usb-tbsqbox-id5922.fw
dvb-usb-tbsqbox-id5925.fw
dvb-usb-tbsqbox-id5927.fw
dvb-usb-tbsqbox-id5928.fw
dvb-usb-tbsqbox-id5980.fw
dvb-usb-terratec-h5-drxk.fw
dvb-usb-terratec-h7-az6007.fw
dvb-usb-terratec-h7-drxk.fw
dvb-usb-tt-s2400-01.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
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
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-cx23885-enc.fw
v4l-cx25840.fw
******************
* Start building *
******************
make -C /home/user/src/tbsdtv/media_build/v4l allyesconfig
make[1]: Entering directory '/home/user/src/tbsdtv/media_build/v4l'
No version yet, using 6.1.0-13-amd64
make[2]: Entering directory '/home/user/src/tbsdtv/media_build/linux'
Can't process line 49
Version 6.1.0-13-amd64 not supported
/bin/sh: 7: exit: Illegal number: -1
make[2]: *** [Makefile:135: apply_patches] Error 2
make[2]: Leaving directory '/home/user/src/tbsdtv/media_build/linux'
make[1]: *** [Makefile:375: allyesconfig] Error 2
make[1]: Leaving directory '/home/user/src/tbsdtv/media_build/v4l'
make: *** [Makefile:26: allyesconfig] Error 2
can't select all drivers at ./build line 552
crazycat69 commented 8 months ago

try clear clone media_build

ritzmann commented 8 months ago

Same failure, deleted and cloned both media_build and linux_media from scratch.

crazycat69 commented 8 months ago

Look like kernel geaders not installed, apt install linux-headers-amd64

ritzmann commented 8 months ago
$ dpkg --status linux-headers-amd64                                                                                                                   
Package: linux-headers-amd64
Status: install ok installed

I have been building this software on Debian successfully for a few years already. Mostly been using Debian 11 but when this started happening around two months ago, I upgraded to Debian 12, assuming that the latest stable version would work best. But that has been giving me similar compilation errors. I am surprised that this would suddenly stop right at the beginning of the process already. Just tried again but it fails consistently with Version 6.1.0-13-amd64 not supported.

crazycat69 commented 8 months ago

Just test Debian 12 with same kernel in VirtualBox. Build success

ritzmann commented 8 months ago

I found the cause of the Version not supported error:

****************************
Updating the building system
****************************
From https://github.com/tbsdtv/media_build
 * branch            master     -> FETCH_HEAD
dropping 556d2d2ac981257d3539ad9ec0ff2104e8d8266d Disable SND_BT87X for <5.11 -- patch contents already upstream
Auto-merging backports/backports.txt
CONFLICT (content): Merge conflict in backports/backports.txt
error: could not apply 4fd7679... Update backport patches for < 6.1
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 4fd7679... Update backport patches for < 6.1

That leaves the workspace in a state with a rebase in progress and the backports/backports.txt file contains a merge conflict that causes the script linux/patches_for_kernel.pl to fail. Why you cannot reproduce that is beyond me.

crazycat69 commented 8 months ago

Just make fresh clone media_build and run build script:

git clone https://github.com/tbsdtv/media_build
cd media_build
./build

terminate it when compilation started (ctrl-c) and run ./install.sh

ritzmann commented 8 months ago
$ rm -rf media_build/                                                                                                         
$ git clone https://github.com/tbsdtv/media_build                                                                                      
Klone nach 'media_build'...
remote: Enumerating objects: 7355, done.
remote: Counting objects: 100% (1399/1399), done.
remote: Compressing objects: 100% (474/474), done.
remote: Total 7355 (delta 965), reused 1346 (delta 922), pack-reused 5956
Empfange Objekte: 100% (7355/7355), 1.52 MiB | 1.24 MiB/s, fertig.
Löse Unterschiede auf: 100% (5294/5294), fertig.
$ cd media_build                                                                                                                       
$ ./build                                                                                                 
Checking if the needed tools for Debian GNU/Linux 12 (bookworm) 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:     *
* https://github.com/tbsdtv/media_build/releases/download/latest *
* 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
****************************
Von https://github.com/tbsdtv/media_build
 * branch            master     -> FETCH_HEAD
Weglassen von 556d2d2ac981257d3539ad9ec0ff2104e8d8266d Disable SND_BT87X for <5.11 -- Patch-Inhalte sind bereits im Upstream-Branch
automatischer Merge von backports/backports.txt
KONFLIKT (Inhalt): Merge-Konflikt in backports/backports.txt
Fehler: Konnte 4fd7679... (Update backport patches for < 6.1) nicht anwenden
Hinweis: Resolve all conflicts manually, mark them as resolved with
Hinweis: "git add/rm <conflicted_files>", then run "git rebase --continue".
Hinweis: You can instead skip this commit: run "git rebase --skip".
Hinweis: To abort and get back to the state before "git rebase", run "git rebase --abort".
Konnte 4fd7679... (Update backport patches for < 6.1) nicht anwenden
make: Verzeichnis „/home/user/src/tbsdtv/media_build/linux“ wird betreten
wget https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2023-10-27 23:18:37--  https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5
Auflösen des Hostnamens github.com (github.com)… 140.82.121.3
Verbindungsaufbau zu github.com (github.com)|140.82.121.3|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/6b9adf2a-2557-452a-b759-ae4e8654d50c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231027T201838Z&X-Amz-Expires=300&X-Amz-Signature=eeef0d098d26e2ed58f001e705957eb4eeff2c981b6f7b8dd5ffcd1dd13748d2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2.md5&response-content-type=application%2Foctet-stream [folgend]
--2023-10-27 23:18:38--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/6b9adf2a-2557-452a-b759-ae4e8654d50c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231027T201838Z&X-Amz-Expires=300&X-Amz-Signature=eeef0d098d26e2ed58f001e705957eb4eeff2c981b6f7b8dd5ffcd1dd13748d2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2.md5&response-content-type=application%2Foctet-stream
Auflösen des Hostnamens objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Verbindungsaufbau zu objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 91 [application/octet-stream]
Wird in »linux-media.tar.bz2.md5.tmp« gespeichert.

linux-media.tar.bz2.md5.tmp                100%[=======================================================================================>]      91  --.-KB/s    in 0s      

2023-10-27 23:18:38 (3,01 MB/s) - »linux-media.tar.bz2.md5.tmp« gespeichert [91/91]

cat: linux-media.tar.bz2.md5: Datei oder Verzeichnis nicht gefunden
--2023-10-27 23:18:38--  https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2
Auflösen des Hostnamens github.com (github.com)… 140.82.121.3
Verbindungsaufbau zu github.com (github.com)|140.82.121.3|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/52888d27-227a-4d49-abb6-04783d57bc48?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231027T201838Z&X-Amz-Expires=300&X-Amz-Signature=a137904922282fea9b1ae3ccd2ca08e66c3595493fae2e206338b0e59f337e1f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2&response-content-type=application%2Foctet-stream [folgend]
--2023-10-27 23:18:38--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/52888d27-227a-4d49-abb6-04783d57bc48?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231027T201838Z&X-Amz-Expires=300&X-Amz-Signature=a137904922282fea9b1ae3ccd2ca08e66c3595493fae2e206338b0e59f337e1f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Dlinux-media.tar.bz2&response-content-type=application%2Foctet-stream
Auflösen des Hostnamens objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Verbindungsaufbau zu objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 8263259 (7,9M) [application/octet-stream]
Wird in »linux-media.tar.bz2« gespeichert.

linux-media.tar.bz2                        100%[=======================================================================================>]   7,88M  1,23MB/s    in 6,4s    

2023-10-27 23:18:45 (1,23 MB/s) - »linux-media.tar.bz2« gespeichert [8263259/8263259]

make: Verzeichnis „/home/user/src/tbsdtv/media_build/linux“ wird verlassen
make: Verzeichnis „/home/user/src/tbsdtv/media_build/linux“ wird betreten
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Verzeichnis „/home/user/src/tbsdtv/media_build/linux“ wird verlassen
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
--2023-10-27 23:18:47--  https://github.com/tbsdtv/media_build/releases/download/latest/dvb-firmwares.tar.bz2
Auflösen des Hostnamens github.com (github.com)… 140.82.121.3
Verbindungsaufbau zu github.com (github.com)|140.82.121.3|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/e798a0da-6b8a-461c-850f-845a851b88c6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231027T201847Z&X-Amz-Expires=300&X-Amz-Signature=9438aef31eabd3be3d9c198178d3c64c34be6fe5a06dcf7da962c67a0f50f725&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Ddvb-firmwares.tar.bz2&response-content-type=application%2Foctet-stream [folgend]
--2023-10-27 23:18:47--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/61525972/e798a0da-6b8a-461c-850f-845a851b88c6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231027T201847Z&X-Amz-Expires=300&X-Amz-Signature=9438aef31eabd3be3d9c198178d3c64c34be6fe5a06dcf7da962c67a0f50f725&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=61525972&response-content-disposition=attachment%3B%20filename%3Ddvb-firmwares.tar.bz2&response-content-type=application%2Foctet-stream
Auflösen des Hostnamens objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Verbindungsaufbau zu objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 1175964 (1,1M) [application/octet-stream]
Wird in »dvb-firmwares.tar.bz2« gespeichert.

dvb-firmwares.tar.bz2                      100%[=======================================================================================>]   1,12M  1,25MB/s    in 0,9s    

2023-10-27 23:18:48 (1,25 MB/s) - »dvb-firmwares.tar.bz2« gespeichert [1175964/1175964]

dvb-demod-avl6882.fw
dvb-demod-drxk-pctv.fw
dvb-demod-gx1503B.fw
dvb-demod-m88ds3103b.fw
dvb-demod-m88ds3103.fw
dvb-demod-m88rs6000.fw
dvb-demod-m88rs6060.fw
dvb-demod-mn88472-02.fw
dvb-demod-mn88473-01.fw
dvb-demod-si2168-01.fw
dvb-demod-si2168-02.fw
dvb-demod-si2168-a20-01.fw
dvb-demod-si2168-a30-01.fw
dvb-demod-si2168-b40-01.fw
dvb-demod-si2168-d60-01.fw
dvb-demod-si2183-b60-01.fw
dvb-fe-bcm3510-01.fw
dvb-fe-cx24116.fw
dvb-fe-cx24117.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-ds3000.fw
dvb-fe-ds300x.fw
dvb-fe-ds3103.fw
dvb-fe-mxl58x.fw
dvb-fe-mxl5xx.fw
dvb-fe-or51132-qam.fw
dvb-fe-or51132-vsb.fw
dvb-fe-or51211.fw
dvb-fe-rs6000.fw
dvb-fe-tda10045.fw
dvb-fe-tda10046.fw
dvb-fe-tda10048-1.0.fw
dvb-fe-tda10071.fw
dvb-fe-xc4000-1.4.1.fw
dvb-fe-xc5000-1.6.114.fw
dvb-fe-xc5000c-4.1.30.7.fw
dvb-tuner-si2141-a10-01.fw
dvb-tuner-si2157-a30-01.fw
dvb-tuner-si2157-a30-05.fw
dvb-tuner-si2158-a20-01.fw
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-dw2101.fw
dvb-usb-dw2102.fw
dvb-usb-dw2104.fw
dvb-usb-dw3101.fw
dvb-usb-id5230.fw
dvb-usb-id5301.fw
dvb-usb-id5520se.fw
dvb-usb-id5530.fw
dvb-usb-id5580.fw
dvb-usb-id5590.fw
dvb-usb-id5930.fw
dvb-usb-id5931.fw
dvb-usb-it9135-01.fw
dvb-usb-it9135-02.fw
dvb-usb-p1100.fw
dvb-usb-p1100-old.fw
dvb-usb-p7500.fw
dvb-usb-pctv-400e-01.fw
dvb-usb-pctv-450e-01.fw
dvb-usb-pctv-452e-01.fw
dvb-usb-s620.fw
dvb-usb-s630.fw
dvb-usb-s660.fw
dvb-usb-sb340.fw
dvb-usb-SkyStar_USB_HD_FW_v17_63.HEX.fw
dvb-usb-tbsqbox-dvbc.fw
dvb-usb-tbsqbox-id2601.fw
dvb-usb-tbsqbox-id5220.fw
dvb-usb-tbsqbox-id5520.fw
dvb-usb-tbsqbox-id5521.fw
dvb-usb-tbsqbox-id5680.fw
dvb-usb-tbsqbox-id5880.fw
dvb-usb-tbsqbox-id5881.fw
dvb-usb-tbsqbox-id5910.fw
dvb-usb-tbsqbox-id5920.fw
dvb-usb-tbsqbox-id5921.fw
dvb-usb-tbsqbox-id5922.fw
dvb-usb-tbsqbox-id5925.fw
dvb-usb-tbsqbox-id5927.fw
dvb-usb-tbsqbox-id5928.fw
dvb-usb-tbsqbox-id5980.fw
dvb-usb-terratec-h5-drxk.fw
dvb-usb-terratec-h7-az6007.fw
dvb-usb-terratec-h7-drxk.fw
dvb-usb-tt-s2400-01.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
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
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-cx23885-enc.fw
v4l-cx25840.fw
******************
* Start building *
******************
make -C /home/user/src/tbsdtv/media_build/v4l allyesconfig
make[1]: Verzeichnis „/home/user/src/tbsdtv/media_build/v4l“ wird betreten
No version yet, using 6.1.0-13-amd64
make[2]: Entering directory '/home/user/src/tbsdtv/media_build/linux'
Can't process line 49
Version 6.1.0-13-amd64 not supported
/bin/sh: 7: exit: Illegal number: -1
make[2]: *** [Makefile:135: apply_patches] Error 2
make[2]: Leaving directory '/home/user/src/tbsdtv/media_build/linux'
make[1]: *** [Makefile:375: allyesconfig] Fehler 2
make[1]: Verzeichnis „/home/user/src/tbsdtv/media_build/v4l“ wird verlassen
make: *** [Makefile:26: allyesconfig] Fehler 2
can't select all drivers at ./build line 552
ritzmann commented 8 months ago

OK, I think I found the reason why it is not compiling: https://github.com/tbsdtv/media_build/blob/latest/build#L526 When I remove the master parameter from there, the build script is getting beyond the above failure:

****************************
Updating the building system
****************************
From https://github.com/tbsdtv/media_build
 * branch            HEAD       -> FETCH_HEAD
Current branch latest is up to date.
make: Entering directory '/home/user/src/tbsdtv/media_build/linux'
wget https://github.com/tbsdtv/media_build/releases/download/latest/linux-media.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
...

Patches apply cleanly:

...
******************
* Start building *
******************
make -C /home/user/src/tbsdtv/media_build/v4l allyesconfig
make[1]: Entering directory '/home/user/src/tbsdtv/media_build/v4l'
No version yet, using 6.1.0-13-amd64
make[2]: Entering directory '/home/user/src/tbsdtv/media_build/linux'
Applying patches for kernel 6.1.0-13-amd64
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/ccs.patch
patch -s -f -N -p1 -i ../backports/rc-cec.patch
patch -s -f -N -p1 -i ../backports/v6.4_pin_user_pages.patch
patch -s -f -N -p1 -i ../backports/v6.3_class_create.patch
patch -s -f -N -p1 -i ../backports/v6.3_check_endpoint.patch
patch -s -f -N -p1 -i ../backports/v6.2_class.patch
patch -s -f -N -p1 -i ../backports/v6.2_remove.patch
patch -s -f -N -p1 -i ../backports/v6.2_probe.patch
patch -s -f -N -p1 -i ../backports/v6.2_v4l2-core.patch
patch -s -f -N -p1 -i ../backports/v6.1_class.patch
patch -s -f -N -p1 -i ../backports/v6.1_i2c_probe.patch
patch -s -f -N -p1 -i ../backports/v6.1_videobuf2.patch
patch -s -f -N -p1 -i ../backports/v6.1_timer.patch
patch -s -f -N -p1 -i ../backports/v6.1_ipu3.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/user/src/tbsdtv/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/6.1.0-13-amd64/build /lib/modules/6.1.0-13-amd64/source 1
Preparing to compile for kernel version 6.1.0
...

And compilation/build and install is finally running through! :relieved:

Of course that build script hasn't changed in years. Not sure why I started bumping into this only lately.

crazycat69 commented 8 months ago

https://github.com/tbsdtv/media_build/commit/cb372162778cddbd1bf1fafda4db8c8fd16d32b5