Skip to contentSkip to conversation

intel-media-driver_26.1.0.bb:do_compile fails on master

meta-intel Yoann Congal 2 participants 8 messages Feb 3 – Feb 19

lore
Share & tools
lore
#0 lore raw

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile fails with:
ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967
* whinlatter: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Regards,

Signature · 1 line
Yoann Congal
#1 lore raw

Hello,

The only solution I could find at present is to shorten the build path.

Cause:

* intel-media-driver CMake generates ~626 include directories per compilation unit
* With long paths, the expanded compiler arguments exceed Linux ARG_MAX
* GCC expands response files before spawning cc1plus, so wrappers/response files don’t help
* This is a kernel limitation, not a Yocto or compiler bug

Impact:

* Fails in Yocto builds with typical CI/workspace paths
* ENABLE_NONFREE_KERNELS=OFF does not reduce include count

Workaround:

* Use very short workspace paths (<15–20 characters), e.g. /w/yocto/...

Status:

* Upstream issue filed with intel-media-driver
* Proper fix requires CMake refactoring upstream
* Path shortening is the only reliable workaround for now

Thanks,
Yogesh
________________________________________
From: Yoann Congal <[email protected]>
Sent: Tuesday, February 3, 2026 2:59 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile fails with:
ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967
* whinlatter: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Regards,

Signature · 1 line
Yoann Congal
#2 lore raw
Quoted 1 line · Yogesh Tyagi

Hello,

Hello,

Thanks for the status update.

Quoted 14 lines

The only solution I could find at present is to shorten the build path.

Cause:

* intel-media-driver CMake generates ~626 include directories per compilation unit
* With long paths, the expanded compiler arguments exceed Linux ARG_MAX
* GCC expands response files before spawning cc1plus, so wrappers/response files don’t help
* This is a kernel limitation, not a Yocto or compiler bug

Impact:

* Fails in Yocto builds with typical CI/workspace paths
* ENABLE_NONFREE_KERNELS=OFF does not reduce include count

Quoted 7 lines

Workaround:

* Use very short workspace paths (<15–20 characters), e.g. /w/yocto/...

Status:

* Upstream issue filed with intel-media-driver

For reference, the issue is:
[Bug]: CMake generates 600+ include directories per compilation unit · Issue #1984 · intel/media-driver
https://github.com/intel/media-driver/issues/1984

Quoted 2 lines

* Proper fix requires CMake refactoring upstream
* Path shortening is the only reliable workaround for now

Did you find what made the problem appear when we did not had it before? Any chance that this is something you can revert while intel-media-driver cmake is fixed?

Quoted 23 lines

Thanks,
Yogesh
________________________________________
From: Yoann Congal <[email protected]>
Sent: Tuesday, February 3, 2026 2:59 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile fails with:
ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967
* whinlatter: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Regards,

Signature · 2 lines
Yoann Congal
Smile ECS
#3 lore raw

________________________________________
From: Yoann Congal <[email protected]>
Sent: Thursday, February 12, 2026 8:01 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: Re: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Quoted 1 line · Yogesh Tyagi

Hello,

Hello,

Thanks for the status update.

Quoted 14 lines

The only solution I could find at present is to shorten the build path.

Cause:

* intel-media-driver CMake generates ~626 include directories per compilation unit
* With long paths, the expanded compiler arguments exceed Linux ARG_MAX
* GCC expands response files before spawning cc1plus, so wrappers/response files don’t help
* This is a kernel limitation, not a Yocto or compiler bug

Impact:

* Fails in Yocto builds with typical CI/workspace paths
* ENABLE_NONFREE_KERNELS=OFF does not reduce include count

Quoted 7 lines

Workaround:

* Use very short workspace paths (<15–20 characters), e.g. /w/yocto/...

Status:

* Upstream issue filed with intel-media-driver

For reference, the issue is:
[Bug]: CMake generates 600+ include directories per compilation unit · Issue #1984 · intel/media-driver
https://github.com/intel/media-driver/issues/1984

Quoted 6 lines

* Proper fix requires CMake refactoring upstream
* Path shortening is the only reliable workaround for now

Did you find what made the problem appear when we did not had it before? Any chance that this is something you can revert while intel-media-driver cmake is fixed?

I have reverted the intel-media-driver to old version. Please check the build now.

Quoted 23 lines

Thanks,
Yogesh
________________________________________
From: Yoann Congal <[email protected]>
Sent: Tuesday, February 3, 2026 2:59 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile fails with:
ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967
* whinlatter: https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Regards,

Signature · 2 lines
Yoann Congal
Smile ECS
#4 lore raw

Le mar. 17 févr. 2026 à 21:09, Tyagi, Yogesh <[email protected]> a écrit :

Quoted 48 lines

________________________________________
From: Yoann Congal <[email protected]>
Sent: Thursday, February 12, 2026 8:01 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: Re: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Quoted 1 line · Yogesh Tyagi

Hello,

Hello,

Thanks for the status update.

Quoted 5 lines

The only solution I could find at present is to shorten the build path.

Cause:

* intel-media-driver CMake generates ~626 include directories per

compilation unit

Quoted 2 lines

* With long paths, the expanded compiler arguments exceed Linux ARG_MAX
* GCC expands response files before spawning cc1plus, so

wrappers/response files don’t help

Quoted 7 lines

* This is a kernel limitation, not a Yocto or compiler bug

Impact:

* Fails in Yocto builds with typical CI/workspace paths
* ENABLE_NONFREE_KERNELS=OFF does not reduce include count

Quoted 7 lines

Workaround:

* Use very short workspace paths (<15–20 characters), e.g. /w/yocto/...

Status:

* Upstream issue filed with intel-media-driver

For reference, the issue is:
[Bug]: CMake generates 600+ include directories per compilation unit · Issue #1984 · intel/media-driver
https://github.com/intel/media-driver/issues/1984

Quoted 2 lines

* Proper fix requires CMake refactoring upstream
* Path shortening is the only reliable workaround for now

Quoted 8 lines
Quoted 3 lines

Did you find what made the problem appear when we did not had it before? Any chance that this is something you can revert while intel-media-driver cmake is fixed?

I have reverted the intel-media-driver to old version. Please check the build now.

I've started 2 AB meta-intel builds:
master :
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/3043
whinlatter:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/3044

Quoted 37 lines
Quoted 9 lines

Thanks,
Yogesh
________________________________________
From: Yoann Congal <[email protected]>
Sent: Tuesday, February 3, 2026 2:59 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on

master

Quoted 5 lines

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile

fails with:

Quoted 7 lines

ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master:

https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967

Quoted 1 line

* whinlatter:

https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Quoted 2 lines

Regards,

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#5 lore raw
Quoted 60 lines · Yoann Congal

Le mar. 17 févr. 2026 à 21:09, Tyagi, Yogesh <[email protected]> a écrit :

Quoted 48 lines

________________________________________
From: Yoann Congal <[email protected]>
Sent: Thursday, February 12, 2026 8:01 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: Re: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Quoted 1 line · Yogesh Tyagi

Hello,

Hello,

Thanks for the status update.

Quoted 5 lines

The only solution I could find at present is to shorten the build path.

Cause:

* intel-media-driver CMake generates ~626 include directories per

compilation unit

Quoted 2 lines

* With long paths, the expanded compiler arguments exceed Linux ARG_MAX
* GCC expands response files before spawning cc1plus, so

wrappers/response files don’t help

Quoted 7 lines

* This is a kernel limitation, not a Yocto or compiler bug

Impact:

* Fails in Yocto builds with typical CI/workspace paths
* ENABLE_NONFREE_KERNELS=OFF does not reduce include count

Quoted 7 lines

Workaround:

* Use very short workspace paths (<15–20 characters), e.g. /w/yocto/...

Status:

* Upstream issue filed with intel-media-driver

For reference, the issue is:
[Bug]: CMake generates 600+ include directories per compilation unit · Issue #1984 · intel/media-driver
https://github.com/intel/media-driver/issues/1984

Quoted 2 lines

* Proper fix requires CMake refactoring upstream
* Path shortening is the only reliable workaround for now

Quoted 8 lines
Quoted 3 lines

Did you find what made the problem appear when we did not had it before? Any chance that this is something you can revert while intel-media-driver cmake is fixed?

I have reverted the intel-media-driver to old version. Please check the build now.

Quoted 5 lines

I've started 2 AB meta-intel builds:
master :
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/3043
whinlatter:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/3044

Both builds are successful.
I've closed https://bugzilla.yoctoproject.org/show_bug.cgi?id=16172.

Thank you Yogesh.

Quoted 39 lines
Quoted 39 lines
Quoted 11 lines

Thanks,
Yogesh
________________________________________
From: Yoann Congal <[email protected]>
Sent: Tuesday, February 3, 2026 2:59 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on

master

Quoted 5 lines

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile

fails with:

Quoted 7 lines

ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master:

https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967

Quoted 1 line

* whinlatter:

https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Quoted 2 lines

Regards,

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#6 lore raw

________________________________________
From: Yoann Congal <[email protected]>
Sent: Wednesday, February 18, 2026 4:05 AM
To: Yoann Congal <[email protected]>; Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: Re: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Quoted 66 lines · Yoann Congal

Le mar. 17 févr. 2026 à 21:09, Tyagi, Yogesh <[email protected]> a écrit :

Quoted 48 lines

________________________________________
From: Yoann Congal <[email protected]>
Sent: Thursday, February 12, 2026 8:01 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: Re: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on master

Quoted 1 line · Yogesh Tyagi

Hello,

Hello,

Thanks for the status update.

Quoted 5 lines

The only solution I could find at present is to shorten the build path.

Cause:

* intel-media-driver CMake generates ~626 include directories per

compilation unit

Quoted 2 lines

* With long paths, the expanded compiler arguments exceed Linux ARG_MAX
* GCC expands response files before spawning cc1plus, so

wrappers/response files don’t help

Quoted 7 lines

* This is a kernel limitation, not a Yocto or compiler bug

Impact:

* Fails in Yocto builds with typical CI/workspace paths
* ENABLE_NONFREE_KERNELS=OFF does not reduce include count

Quoted 7 lines

Workaround:

* Use very short workspace paths (<15–20 characters), e.g. /w/yocto/...

Status:

* Upstream issue filed with intel-media-driver

For reference, the issue is:
[Bug]: CMake generates 600+ include directories per compilation unit · Issue #1984 · intel/media-driver
https://github.com/intel/media-driver/issues/1984

Quoted 2 lines

* Proper fix requires CMake refactoring upstream
* Path shortening is the only reliable workaround for now

Quoted 8 lines
Quoted 3 lines

Did you find what made the problem appear when we did not had it before? Any chance that this is something you can revert while intel-media-driver cmake is fixed?

I have reverted the intel-media-driver to old version. Please check the build now.

I've started 2 AB meta-intel builds:
master :
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/3043
whinlatter:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/3044

Quoted 4 lines

Both builds are successful.
I've closed https://bugzilla.yoctoproject.org/show_bug.cgi?id=16172.

Thank you Yogesh.

Hello Yoann,

Is it possible to test a meta-intel development branch in autobuilder before pushing the changes in production?

Quoted 39 lines
Quoted 39 lines
Quoted 11 lines

Thanks,
Yogesh
________________________________________
From: Yoann Congal <[email protected]>
Sent: Tuesday, February 3, 2026 2:59 PM
To: Tyagi, Yogesh <[email protected]>
Cc: Yocto ML <[email protected]>
Subject: [meta-intel] intel-media-driver_26.1.0.bb:do_compile fails on

master

Quoted 5 lines

Hello,

meta-intel/master seems currently broken: intel-media-driver_26.1.0.bb:do_compile

fails with:

Quoted 7 lines

ninja: fatal: posix_spawn: Argument list too long

This happens on master and also on whinlatter.

We can see this on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41
* master:

https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2967

Quoted 1 line

* whinlatter:

https://autobuilder.yoctoproject.org/valkyrie/?#/builders/41/builds/2966

Quoted 2 lines

Regards,

--
Yoann Congal
Smile ECS

Signature · 2 lines
Yoann Congal
Smile ECS
#7 lore raw
Quoted 3 lines · Yogesh Tyagi via lists.yoctoproject.org

Hello Yoann,

Is it possible to test a meta-intel development branch in autobuilder before pushing the changes in production?

Hello,

Yes, you can publish a development branch on the meta-intel repo and we can start the builds. If you have not already, you can join the project IRC channel (#yocto on https://libera.chat/) to make those build requests.

Regards,

Signature · 2 lines
Yoann Congal
Smile ECS