{"action":"created","issue":{"url":"https://api.github.com/repos/intel/media-driver/issues/213","repository_url":"https://api.github.com/repos/intel/media-driver","labels_url":"https://api.github.com/repos/intel/media-driver/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/intel/media-driver/issues/213/comments","events_url":"https://api.github.com/repos/intel/media-driver/issues/213/events","html_url":"https://github.com/intel/media-driver/issues/213","id":335609262,"node_id":"MDU6SXNzdWUzMzU2MDkyNjI=","number":213,"title":"Build error: libdrm_mock.so: undefined symbol: pci_system_cleanup","user":{"login":"asifhg","id":5075154,"node_id":"MDQ6VXNlcjUwNzUxNTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5075154?v=4","gravatar_id":"","url":"https://api.github.com/users/asifhg","html_url":"https://github.com/asifhg","followers_url":"https://api.github.com/users/asifhg/followers","following_url":"https://api.github.com/users/asifhg/following{/other_user}","gists_url":"https://api.github.com/users/asifhg/gists{/gist_id}","starred_url":"https://api.github.com/users/asifhg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asifhg/subscriptions","organizations_url":"https://api.github.com/users/asifhg/orgs","repos_url":"https://api.github.com/users/asifhg/repos","events_url":"https://api.github.com/users/asifhg/events{/privacy}","received_events_url":"https://api.github.com/users/asifhg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-25T23:58:43Z","updated_at":"2018-06-27T03:45:41Z","closed_at":null,"author_association":"NONE","body":"NOTE:\r\n1) This is not a duplicate of issue #127. However, the failure may be the same as in issue #127.\r\n2) This failure is not reproducible for source repo at commit ID:\r\n   923731f2e8 [Encode] Fix IFrameDist surface programming issue(CL#776073).\r\n3) The cmake cmdline used to make it work:\r\n     cmake ../${p} \\\r\n        -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \\\r\n        -DMEDIA_VERSION=2.0.0 \\\r\n        -DBS_DIR_GMMLIB=[ pwd ]/../gmmlib/Source/GmmLib/ \\\r\n        -DBS_DIR_COMMON=[ pwd ]/../gmmlib/Source/Common/ \\\r\n        -DBS_DIR_INC=[ pwd ]/../gmmlib/Source/inc/ \\\r\n        -DBS_DIR_MEDIA=[ pwd ]/../$MY_INSTALL_DIR \\\r\n        **-DCMAKE_CXX_FLAGS=\"\"** ;\r\n4) Failure occurs even though, -fno-plt compiler flag is not used.\r\n\r\n**Compile-time Failure Trigger**\r\n**----------------------------**\r\nLD_PRELOAD=../libdrm_mock/libdrm_mock.so ./devult ../../../iHD_drv_video.so ;\r\n\r\n**Compile-time Failure Message**\r\n**----------------------------**\r\nsymbol lookup error: ../libdrm_mock/libdrm_mock.so: undefined symbol: pci_system_cleanup\r\n\r\n**ldd libdrm_mock.so**\r\n**------------------**\r\nldd build_media/media_driver/linux/ult/libdrm_mock/libdrm_mock.so ;\r\n\tlinux-vdso.so.1 (0x00007ffcc0b9e000)\r\n\tlibstdc++.so.6 => /usr/lib64/haswell/libstdc++.so.6 (0x00007fc88a2b0000)\r\n\tlibm.so.6 => /usr/lib64/haswell/libm.so.6 (0x00007fc88a12e000)\r\n\tlibgcc_s.so.1 => /usr/lib64/haswell/libgcc_s.so.1 (0x00007fc88a114000)\r\n\tlibc.so.6 => /usr/lib64/haswell/libc.so.6 (0x00007fc889f2c000)\r\n\t/usr/lib64/ld-linux-x86-64.so.2 (0x00007fc88a893000)\r\n\r\n**Compiler Options**\r\n**----------------**\r\nOS = ClearLinux 23240\r\ngcc version = gcc (Clear Linux OS for Intel Architecture) 8.1.1 20180514\r\npkg-config version = 0.29.2\r\n\r\n**Additional gcc compiler flags used compared to passing case on Ubuntu 16.04 =**\r\n   --param=ssp-buffer-size=32\r\n   -O3\r\n   -Wformat\r\n   -Wformat-security\r\n   -Wl,--copy-dt-needed-entries\r\n   -Wl,--enable-new-dtags\r\n   -Wl,-sort-common\r\n   -Wl,-z\r\n   -Wl,now\r\n   -Wl,relro\r\n   -Wp,-D_FORTIFY_SOURCE=2\r\n   -Wp,-D_REENTRANT\r\n   -fassociative-math\r\n   -fasynchronous-unwind-tables\r\n   -feliminate-unused-debug-types\r\n   -ffat-lto-objects\r\n   -fno-semantic-interposition\r\n   -fno-signed-zeros\r\n   -fno-trapping-math\r\n   -ftree-loop-distribute-patterns\r\n   -pipe\r\n\r\n**Additional gcc linker flags used compared to passing case on Ubuntu 16.04 =**\r\n   --param=ssp-buffer-size=32\r\n   -Wno-reorder\r\n   -O3\r\n   -Wall\r\n   -Wformat\r\n   -Wformat-security\r\n   -Wl,--copy-dt-needed-entries\r\n   -Wl,--enable-new-dtags\r\n   -Wl,-sort-common\r\n   -Wl,-z\r\n   -Wl,now\r\n   -Wl,relro\r\n   -Wp,-D_FORTIFY_SOURCE=2\r\n   -Wp,-D_REENTRANT\r\n   -fassociative-math\r\n   -fasynchronous-unwind-tables\r\n   -feliminate-unused-debug-types\r\n   -ffat-lto-objects\r\n   -fno-semantic-interposition\r\n   -fno-signed-zeros\r\n   -fno-trapping-math\r\n   -fstack-protector\r\n   -ftree-loop-distribute-patterns\r\n   -g\r\n   -m64\r\n   -pipe\r\n"},"comment":{"url":"https://api.github.com/repos/intel/media-driver/issues/comments/400533747","html_url":"https://github.com/intel/media-driver/issues/213#issuecomment-400533747","issue_url":"https://api.github.com/repos/intel/media-driver/issues/213","id":400533747,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDUzMzc0Nw==","user":{"login":"uartie","id":677859,"node_id":"MDQ6VXNlcjY3Nzg1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/677859?v=4","gravatar_id":"","url":"https://api.github.com/users/uartie","html_url":"https://github.com/uartie","followers_url":"https://api.github.com/users/uartie/followers","following_url":"https://api.github.com/users/uartie/following{/other_user}","gists_url":"https://api.github.com/users/uartie/gists{/gist_id}","starred_url":"https://api.github.com/users/uartie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uartie/subscriptions","organizations_url":"https://api.github.com/users/uartie/orgs","repos_url":"https://api.github.com/users/uartie/repos","events_url":"https://api.github.com/users/uartie/events{/privacy}","received_events_url":"https://api.github.com/users/uartie/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T03:45:41Z","updated_at":"2018-06-27T03:45:41Z","author_association":"CONTRIBUTOR","body":"If libpciaccess is a dependency, then cmake should check for it during configuration stage... which would fail with more user-friendly message if it's missing (and a hint to user on how to satisfy the requirement).  As a general rule/practice, all dependencies should be checked during configuration stage so end-users don't encounter these types of cryptic compiler errors and consume everyone's time reporting and debugging.\r\n\r\nI honestly hope this is patched in cmake (as aforementioned), instead of considered resolved by previous comment."}}
{"actor":{"display_login":"uartie"}}