Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: With ninja generator, multiple rules generate ...media_common/agnostic/common/vp/kernel/vpkrnheader.h with DBUILD_KERNELS and DENABLE_KERNELS #1747

Open
frantisekz opened this issue Dec 4, 2023 · 4 comments
Assignees
Labels
Build Cmake, build option related Common memory, surface, ddi P3 Low priority no customer usage, no business requirements, not from communities, just from internal

Comments

@frantisekz
Copy link

Which component impacted?

Build

Is it regression? Good in old configuration?

Yes, it's good in old version

What happened?

I gave a shot to try free kernels building after some time (if by any chance #1356 got resolved).

The command line used was:

/usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_NONFREE_KERNELS:BOOL=OFF -DENABLE_KERNELS:BOOL=ON -DBUILD_KERNELS:BOOL=ON -DMEDIA_BUILD_FATAL_WARNINGS=OFF -DVC1_Decode_Supported=no -DAVC_Encode_VME_Supported=no -DAVC_Encode_VDEnc_Supported=no -DHEVC_Encode_VME_Supported=no -DHEVC_Encode_VDEnc_Supported=no -DAVC_Decode_Supported=no -DHEVC_Decode_Supported=no -DAVC_Decode_Supported=no -G Ninja

And the build ended with:

Run Build Command(s): /usr/bin/ninja-build -v -j 12
ninja: error: build.ninja:45204: multiple rules generate /builddir/build/BUILD/media-driver-intel-media-23.4.2/media_common/agnostic/common/vp/kernel/vpkrnheader.h

I am testing the 23.4.2 tag, with kernels removed as per https://github.com/intel/media-driver/wiki/Media-Driver-Shaders-%28EU-Kernels%29#disable-shaders-at-compile-time . Build with DBUILD_KERNELS and DENABLE_KERNELS both set to OFF works fine.

Full buildlog:

build.log

What's the usage scenario when you are seeing the problem?

Others

What impacted?

No response

Debug Information

No response

Do you want to contribute a patch to fix the issue?

None

@Jexu Jexu assigned MicroYY and unassigned Jexu and XinfengZhang Dec 26, 2023
@Jexu Jexu added Build Cmake, build option related Common memory, surface, ddi labels Dec 26, 2023
@frantisekz frantisekz changed the title [Bug]: multiple rules generate ...media_common/agnostic/common/vp/kernel/vpkrnheader.h with DBUILD_KERNELS and DENABLE_KERNELS [Bug]: With ninja generator, multiple rules generate ...media_common/agnostic/common/vp/kernel/vpkrnheader.h with DBUILD_KERNELS and DENABLE_KERNELS Feb 18, 2024
@frantisekz
Copy link
Author

Happens only with ninja, title amended.

@intel-mediadev
Copy link
Contributor

Auto Created VSMGWL-72139 for further analysis.

@XinfengZhang
Copy link
Contributor

XinfengZhang commented Jul 5, 2024

hi @frantisekz , sorry for inconvenience , several issues reported ,#1356 #1775 all related with the "BUILD_KERNEL"

  1. CMC version related issue, older compiler (llvm8) could compile , newer could not (I guess even new compiler could work, the final binary maybe is different :)
  2. new media driver regression? same compiler , but newer media driver release could work? it is related with current issue we are discussing [Bug]: With ninja generator, multiple rules generate ...media_common/agnostic/common/vp/kernel/vpkrnheader.h with DBUILD_KERNELS and DENABLE_KERNELS #1747

just like my comment under another issue
#1775 (comment)
looks there are two issues:
could we use a full feature media driver or BUILD_KERNEL=OFF media driver?

if 2nd issue is real one, we should fix it @Effiey

@frantisekz
Copy link
Author

hi @frantisekz , sorry for inconvenience , several issues reported ,#1356 #1775 all related with the "BUILD_KERNEL"

  1. CMC version related issue, older compiler (llvm8) could compile , newer could not (I guess even new compiler could work, the final binary maybe is different :)

Yeah, the older compiler didn't work either because of #1356 . Newer compiler fails even earlier because of #1775 .

  1. new media driver regression? same compiler , but newer media driver release could work? it is related with current issue we are discussing [Bug]: With ninja generator, multiple rules generate ...media_common/agnostic/common/vp/kernel/vpkrnheader.h with DBUILD_KERNELS and DENABLE_KERNELS #1747

This is just an inconvenience and I can use the default cmake generator just fine, so just a minor issue, not really important for the Fedora package, and this one can be closed if the ninja support isn't planned in the media-driver.

@Effieyu0 Effieyu0 added the P3 Low priority no customer usage, no business requirements, not from communities, just from internal label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Cmake, build option related Common memory, surface, ddi P3 Low priority no customer usage, no business requirements, not from communities, just from internal
Projects
None yet
Development

No branches or pull requests

6 participants