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

Fails to build #1262

Closed
simonbagley opened this issue Sep 9, 2021 · 6 comments
Closed

Fails to build #1262

simonbagley opened this issue Sep 9, 2021 · 6 comments
Assignees
Labels
Build Cmake, build option related Common memory, surface, ddi Need Info Need more information from submitter

Comments

@simonbagley
Copy link

I'm probably making a newby mistake, but the media-driver build is failing at the last step, when I issue the make -j8 command.
I am getting lots of these sort of errors:

simon@simon-desktop:~/Documents/workspace/build_media$ make -j8
[  1%] Building CXX object media_driver/linux/ult/libdrm_mock/CMakeFiles/drm_mock.dir/xf86drmHash_mock.c.o
[  1%] Built target iHD_drv_video_SSE2
cc1: warning: command line option ‘-Wreorder’ is valid for C++/ObjC++ but not for C
[  1%] Building CXX object media_driver/linux/ult/libdrm_mock/CMakeFiles/drm_mock.dir/mos_bufmgr_api_mock.c.o
cc1: warning: command line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-Wnon-virtual-dtor’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-Wno-invalid-offsetof’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-Wno-delete-incomplete’ is valid for C++/ObjC++ but not for C
cc1: warning: ‘-Werror=’ argument ‘-Werror=non-virtual-dtor’ is not valid for C
cc1: warning: command line option ‘-std=c++14’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C

and

[  4%] Building CXX object media_driver/linux/ult/libdrm_mock/CMakeFiles/drm_mock.dir/__/__/common/os/mos_vma.c.o
/home/simon/Documents/workspace/media-driver/media_driver/linux/ult/libdrm_mock/xf86drmHash_mock.c: In function ‘drmHashCreate’:
/home/simon/Documents/workspace/media-driver/media_driver/linux/ult/libdrm_mock/xf86drmHash_mock.c:116:24: error: ‘nullptr’ undeclared (first use in this function)
  116 |     if (!table) return nullptr;
      |                        ^~~~~~~
/home/simon/Documents/workspace/media-driver/media_driver/linux/ult/libdrm_mock/xf86drmHash_mock.c:116:24: note: each undeclared identifier is reported only once for each function it appears in
@XinfengZhang
Copy link
Contributor

hi @simonbagley , could you share more information , compiler version, OS version etc.

@XinfengZhang XinfengZhang added Build Cmake, build option related Need Info Need more information from submitter labels Oct 17, 2021
@Sherry-Lin Sherry-Lin assigned Sherry-Lin and cqian2 and unassigned Sherry-Lin and cqian2 Nov 29, 2021
@Sherry-Lin Sherry-Lin added the Common memory, surface, ddi label Nov 29, 2021
@zrus
Copy link

zrus commented Jan 6, 2022

hi @simonbagley , could you share more information , compiler version, OS version etc.

Hi there, I met the same build-failed case but with another errors. Please take a look.

[ 66%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/i915/mos_bufmgr_api.c.o
[ 66%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/i915/xf86drm.c.o
/root/media_src/media-driver/media_driver/linux/common/ddi/media_libva_caps.cpp: In member function 'virtual VAStatus MediaLibvaCaps::QueryDisplayAttributes(VADisplayAttribute*, int32_t*)':
/root/media_src/media-driver/media_driver/linux/common/ddi/media_libva_caps.cpp:3090:24: error: 'VADisplayAttribCopy' was not declared in this scope; did you mean 'VADisplayAttribType'?
 3090 |     attribList->type = VADisplayAttribCopy;
      |                        ^~~~~~~~~~~~~~~~~~~
      |                        VADisplayAttribType
/root/media_src/media-driver/media_driver/linux/common/ddi/media_libva_caps.cpp: In member function 'virtual VAStatus MediaLibvaCaps::GetDisplayAttributes(VADisplayAttribute*, int32_t)':
/root/media_src/media-driver/media_driver/linux/common/ddi/media_libva_caps.cpp:3105:18: error: 'VADisplayAttribCopy' was not declared in this scope; did you mean 'VADisplayAttribType'?
 3105 |             case VADisplayAttribCopy:
      |                  ^~~~~~~~~~~~~~~~~~~
      |                  VADisplayAttribType
[ 66%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/i915/xf86drmHash.c.o
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/build.make:7610: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_caps.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:369: media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/all] Error 2
make: *** [Makefile:172: all] Error 2

I was building using docker with
CentOS7 "Linux 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux"
GNU Make v4.2.1
C/C++ compilder GNU 9.3.1

Thank you!

@Sherry-Lin
Copy link
Contributor

what's the libva version you used? Could you try with latest libva release 2.13.0?

@zrus
Copy link

zrus commented Jan 7, 2022

what's the libva version you used? Could you try with latest libva release 2.13.0?

Yes. When I rollback to latest version I could build it successfully. I was using git clone the master of libva so it might lead to failure.

Thank you.

@XinfengZhang
Copy link
Contributor

latest master should not have such issue. VADisplayAttribCopy is added in this patch intel/libva#513 . hi @zrus, so this issue could be closed?

@zrus
Copy link

zrus commented Jan 7, 2022

latest master should not have such issue. VADisplayAttribCopy is added in this patch intel/libva#513 . hi @zrus, so this issue could be closed?

It's alright with me. Idk has the OP fixed yet.

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 Need Info Need more information from submitter
Projects
None yet
Development

No branches or pull requests

5 participants