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]: compile 23.2.4 in ubuntu 16.04 failed #1798

Open
zhaoxin-xc opened this issue May 9, 2024 · 2 comments
Open

[Bug]: compile 23.2.4 in ubuntu 16.04 failed #1798

zhaoxin-xc opened this issue May 9, 2024 · 2 comments
Assignees
Labels
Build Cmake, build option related

Comments

@zhaoxin-xc
Copy link

Which component impacted?

Build

Is it regression? Good in old configuration?

No, this issue exist a long time

What happened?

build

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

Others

What impacted?

just build

Debug Information

compile 23.2.4 in ubuntu 16.04 failed

build env:
ubuntu 16.04
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

  1. build libva-2.20.0 and install ---done
  2. build gmmlib-intel-gmmlib-22.3.19 and install ---done
  3. build media-driver-intel-media-23.2.4 ---fail
    a. mkdir media_build
    b. cd media_build
    c. cmake ../media-driver-intel-media-23.2.4 ---pass
    e. make ----about completing 14% fail because of C++ language

[ 12%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/g12/g12_base/hw/render/mhw_render_hwcmd_g12_X.cpp.o
[ 12%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/vdbox/mhw_vdbox_mfx_xe_xpm.cpp.o
[ 12%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/vdbox/mhw_vdbox_mfx_hwcmd_xe_xpm.cpp.o
[ 12%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/vdbox/mhw_vdbox_hcp_xe_xpm.cpp.o
[ 12%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/vdbox/mhw_vdbox_avp_xe_xpm.cpp.o
[ 12%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/mhw_sfc_xe_xpm.cpp.o
[ 13%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/mhw_sfc_hwcmd_xe_xpm.cpp.o
[ 13%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/mhw_state_heap_xe_xpm.c.o
[ 13%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/mhw_vebox_xe_xpm.cpp.o
[ 13%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_XPM/hw/mhw_vebox_hwcmd_xe_xpm.cpp.o
[ 13%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_xe_hpm.cpp.o
In file included from /kedacom/media-driver-intel-media-23.2.4/media_driver/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_impl_xe_hpm.h:32:0,
from /kedacom/media-driver-intel-media-23.2.4/media_driver/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_xe_hpm.h:33,
from /kedacom/media-driver-intel-media-23.2.4/media_driver/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_xe_hpm.cpp:28:
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h: In instantiation of 'mhw::vdbox::avp::Impl<cmd_t>::Impl(PMOS_INTERFACE) [with cmd_t = mhw::vdbox::avp::xe_hpm::Cmd; PMOS_INTERFACE = _MOS_INTERFACE*]':
/kedacom/media-driver-intel-media-23.2.4/media_driver/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_impl_xe_hpm.h:47:50: required from here
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: too many initializers for 'const uint8_t [2][2] {aka const unsigned char [2][2]}'
Impl(PMOS_INTERFACE osItf) : mhw::Impl(osItf)
^
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: too many initializers for 'const uint8_t [2][2] {aka const unsigned char [2][2]}'
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: too many initializers for 'const uint8_t [2][2] {aka const unsigned char [2][2]}'
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: too many initializers for 'const uint8_t [2][2] {aka const unsigned char [2][2]}'
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer
/kedacom/media-driver-intel-media-23.2.4/media_softlet/agnostic/common/hw/vdbox/mhw_vdbox_avp_impl.h:511:49: error: array must be initialized with a brace-enclosed initializer

media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/build.make:2469: recipe for target 'media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_xe_hpm.cpp.o' failed
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/agnostic/Xe_M/Xe_HPM/hw/vdbox/mhw_vdbox_avp_xe_hpm.cpp.o] Error 1
CMakeFiles/Makefile2:234: recipe for target 'media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/all' failed
make[1]: *** [media_driver/CMakeFiles/iHD_drv_video_COMMON.dir/all] Error 2
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2

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

No.

@eero-t
Copy link

eero-t commented May 10, 2024

While 16.04 is still mentioned in media-driver README, project seems to be testing only 20.04 & 22.04, and with GCC 10: https://github.com/intel/media-driver/blob/master/.github/workflows/ubuntu.yml

So I wonder whether README is just outdated?

While Canonical still offers commercial extended security support for 16.04, it's GCC version is v5 (or v6?) i.e. rather old...

@zhaoxin-xc
Copy link
Author

install gcc 7.5.0 (compile from source code)

build media-driver with gcc7.5.0 -------pass
so I think the confiure action should check gcc version.

@Jexu Jexu assigned Sherry-Lin and unassigned Jexu May 20, 2024
@Jexu Jexu added the Build Cmake, build option related label May 20, 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
Projects
None yet
Development

No branches or pull requests

5 participants