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

[package] vdpau/system: test fails on CentOS 8 (and AlmaLinux) #6960

Open
daravi opened this issue Aug 22, 2021 · 7 comments
Open

[package] vdpau/system: test fails on CentOS 8 (and AlmaLinux) #6960

daravi opened this issue Aug 22, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@daravi
Copy link
Contributor

daravi commented Aug 22, 2021

On CentOS 8 (And the successor AlmaLinux) the test fails:

vdpau/system@3rdparty/stable (test package): Running test()
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
vdp_device_create_x11 failed

And I see:

$ repoquery -l libvdpau-devel
/usr/include/vdpau
/usr/include/vdpau/vdpau.h
/usr/include/vdpau/vdpau_x11.h
/usr/lib/libvdpau.so
/usr/lib/pkgconfig/vdpau.pc
/usr/include/vdpau
/usr/include/vdpau/vdpau.h
/usr/include/vdpau/vdpau_x11.h
/usr/lib64/libvdpau.so
/usr/lib64/pkgconfig/vdpau.pc

There seems to have been a libvdpau-va-gl package on CentOS 7 but nothing I can find for CentOS 8. Is the presence of this library essential? If so is there a package for CentOS 8 that provides this that we could add here?

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: vdpau/system
  • Operating System+version: AlmaLinux 8.4
  • Compiler+version: LLVM 10.0.1
  • Conan version: conan 1.38.0
  • Python version: Python 3.9.6

Conan profile:

Configuration for profile default:

[settings]
os=Linux
os_build=Linux
os.kernel=4.18
arch=x86_64
arch_build=x86_64
compiler=clang
compiler.version=10
compiler.libcxx=libc++
compiler.cppstd=17
build_type=Release
[options]
[conf]
[build_requires]
[env]
m4:LDFLAGS=['-rtlib=compiler-rt']
@daravi daravi added the bug Something isn't working label Aug 22, 2021
@daravi daravi mentioned this issue Aug 23, 2021
4 tasks
@ericLemanissier
Copy link
Contributor

FYI, centos 8 works on https://github.com/bincrafters/system-packages-checks/runs/3397659245?check_suite_focus=true#step:6:1006 so the system package seems to exist. can you remove ~/.conan/data/vdpau folder and retry ?

@daravi
Copy link
Contributor Author

daravi commented Aug 23, 2021

@ericLemanissier You are right this error does not happen when I try on another CentOS 8 systems (I am actually using AlmaLinux). I have to figure out why my compilation tries to load libvdpau_va_gl.so while on other CentOS 8 systems this does not happen. Any ideas how I can debug that?

@ericLemanissier
Copy link
Contributor

please remove ~/.conan/data/vdpau folder, retry whatever failed, send us the exact conan command you are running with the full console log.

@daravi
Copy link
Contributor Author

daravi commented Aug 23, 2021

@ericLemanissier Sure. Here we go:

$ conan remove vdpau/system@
Are you sure you want to delete from 'vdpau/system' (yes/no): yes
$ conan create . vdpau/system@ -r conancenter
Exporting package recipe
vdpau/system: A new conanfile.py version was exported
vdpau/system: Folder: /opt/conan/vdpau/system/_/_/export
vdpau/system: Exported revision: 2b0fc2b7a6b6a4825e7f49e9bae77f0d
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.cppstd=17
compiler.libcxx=libc++
compiler.version=10
os=Linux
os.kernel=4.18
os_build=Linux
[options]
[build_requires]
[env]
m4:LDFLAGS=[-rtlib=compiler-rt]
vdpau/system: Forced build from source
vdpau/system (test package): Installing package
Requirements
    vdpau/system from local cache - Cache
    xorg/system from 'conancenter' - Cache
Packages
    vdpau/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build
    xorg/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
vdpau/system: WARN: Don't know how to install vdpau for your distro.
vdpau/system: Configuring sources in /opt/conan/vdpau/system/_/_/source
vdpau/system: Copying sources to build folder
vdpau/system: Building your package in /opt/conan/vdpau/system/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
vdpau/system: Generator txt created conanbuildinfo.txt
vdpau/system: Calling build()
vdpau/system: WARN: This conanfile has no build step
vdpau/system: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' built
vdpau/system: Build folder /opt/conan/vdpau/system/_/_/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
vdpau/system: Generated conaninfo.txt
vdpau/system: Generated conanbuildinfo.txt
vdpau/system: Generating the package
vdpau/system: Package folder /opt/conan/vdpau/system/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
vdpau/system: Calling package()
vdpau/system: WARN: This conanfile has no package step
vdpau/system package(): WARN: No files in this package!
vdpau/system: Package '5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9' created
vdpau/system: Created package revision d8db948171c720b36f90e05afe510f97
xorg/system: Already installed!
vdpau/system (test package): Generator txt created conanbuildinfo.txt
vdpau/system (test package): Generator cmake created conanbuildinfo.cmake
vdpau/system (test package): Generated conaninfo.txt
vdpau/system (test package): Generated graphinfo
Using lockfile: '/home/puya/src/conan-center-index/recipes/vdpau/all/test_package/build/488f62e77970b94316f1f3610f3a89cfc4754e50/conan.lock'
Using cached profile from lockfile
vdpau/system (test package): Calling build()
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/llvm/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan setting CPP STANDARD: 17 WITH EXTENSIONS OFF
-- Conan: Compiler Clang>=8, checking major version 10
-- Conan: Checking correct version: 10
-- Conan: C++ stdlib: libc++
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DATAROOTDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR


-- Build files have been written to: /home/puya/src/conan-center-index/recipes/vdpau/all/test_package/build/488f62e77970b94316f1f3610f3a89cfc4754e50
Scanning dependencies of target test_package
[ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
[100%] Linking C executable bin/test_package
[100%] Built target test_package
vdpau/system (test package): Running test()
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
vdp_device_create_x11 failed

Please disregard vdpau/system: WARN: Don't know how to install vdpau for your distro., I have a PR for that here:
conan-io/conan#9463

I have manually installed libvdpau-devel that is needed for my distro (AlmaLinux, which also has yum).

@ericLemanissier
Copy link
Contributor

what does pkgconf --libs-only-l vdpau print ? What is the content of your system's vdpau.pc ?

@daravi
Copy link
Contributor Author

daravi commented Aug 23, 2021

$ pkgconf --libs-only-l vdpau
-lvdpau 
$ cat /usr/lib64/pkgconfig/vdpau.pc
prefix=/usr
libdir=${prefix}/lib64
includedir=${prefix}/include

moduledir=/usr/lib64/vdpau

Name: VDPAU
Description: The Video Decode and Presentation API for UNIX
Version: 1.4
Libs: -L${libdir} -lvdpau
Cflags: -I${includedir}

@ericLemanissier
Copy link
Contributor

ok, so it's basically your system vdpau library which tries to load at runtime libvdpau_va_gl.so. It should happen also if you manually compile the recipe's test_package.c , link it with -lvdpau and run the executable. If it still fails, you should report this problem to your distro maintainer, because it's not related to conan AFAIU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants