Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904070 - media-libs/opensubdiv-3.5.0 - clDeviceContext.cpp:(.text+<snip>): undefined reference to glXGetCurrentContext
Summary: media-libs/opensubdiv-3.5.0 - clDeviceContext.cpp:(.text+<snip>): undefined r...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-04-09 13:51 UTC by Toralf Förster
Modified: 2024-02-14 09:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.68 KB, text/plain)
2023-04-09 13:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,127.95 KB, text/plain)
2023-04-09 13:51 UTC, Toralf Förster
Details
environment (environment,99.63 KB, text/plain)
2023-04-09 13:51 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,712 bytes, application/x-bzip)
2023-04-09 13:51 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,34.32 KB, application/x-bzip)
2023-04-09 13:51 UTC, Toralf Förster
Details
media-libs:opensubdiv-3.5.0:20230407-142254.log.bz2 (media-libs:opensubdiv-3.5.0:20230407-142254.log.bz2,10.12 KB, application/x-bzip)
2023-04-09 13:51 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,33.77 KB, application/x-bzip)
2023-04-09 13:51 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-04-09 13:51:32 UTC
too long lines were shrinked:

[ 87%] Building CXX object examples/glFVarViewer/CMakeFiles/glFVarViewer.dir/glFVarViewer.cpp.o
cd /var/tmp/portage/media-libs/opensubdiv-3.5.0/work/OpenSubdiv-3_5_0_build/examples/glFVarViewer && /usr/bin/x86_64-pc-linux-gnu-g++ -DGLFW_VERSION_3 -DOPENSUBDIV_HAS_GLSL_COMPUTE -DOPENSUBDIV_HAS_GLSL_TRANSFORM_FEEDBACK -DOPENSUBDIV_HAS_OPENCL -DOPENSUBDIV_HAS_OPENGL -DOPENSUBDIV_HAS_TBB -DOPENSUB
[ 87%] Linking CXX executable ../../bin/glEvalLimit
cd /var/tmp/portage/media-libs/opensubdiv-3.5.0/work/OpenSubdiv-3_5_0_build/examples/glEvalLimit && /usr/bin/cmake -E cmake_link_script CMakeFiles/glEvalLimit.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-diagnostics-color  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 CMakeFiles/glEvalLimit.dir/glEvalLimit.cpp.o CMakeFiles/glEvalLimit.dir/particles.cpp.o ../../regression/common/CMakeFiles/regression_common_obj.dir/arg_ut
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/CMakeFiles/examples_common_gl_obj.dir/clDeviceContext.cpp.o: in function `CLDeviceContext::Initialize()':
clDeviceContext.cpp:(.text+0x1f9): undefined reference to `glXGetCurrentContext'
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: clDeviceContext.cpp:(.text+0x203): undefined reference to `glXGetCurrentDisplay'
collect2: error: ld returned 1 exit status

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20230406-083506

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 16.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.1
Python 3.10.11
Available Rust versions:
  [1]   rust-1.68.2 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 740f82b5eb3b0b1fef7d7c9c2c67e235987c4bdd
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Apr 7 14:02:08 2023 +0000

    2023-04-07 14:02:07 UTC

emerge -qpvO media-libs/opensubdiv
[ebuild  N    ] media-libs/opensubdiv-3.5.0  USE="examples opencl tbb tutorials (-cuda) -openmp -ptex -test"
Comment 1 Toralf Förster gentoo-dev 2023-04-09 13:51:33 UTC
Created attachment 859751 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-04-09 13:51:34 UTC
Created attachment 859752 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-04-09 13:51:35 UTC
Created attachment 859753 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-04-09 13:51:36 UTC
Created attachment 859754 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-04-09 13:51:37 UTC
Created attachment 859755 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-04-09 13:51:38 UTC
Created attachment 859756 [details]
media-libs:opensubdiv-3.5.0:20230407-142254.log.bz2
Comment 7 Toralf Förster gentoo-dev 2023-04-09 13:51:38 UTC
Created attachment 859757 [details]
temp.tar.bz2
Comment 8 Leonid Kopylov 2023-06-30 10:25:00 UTC
same error with USE=cuda
Builds for only with USE="-cuda -opencl"
Comment 9 Larry the Git Cow gentoo-dev 2024-02-14 09:29:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b9cb4db94d5520e018a1a99d38d444c9c95d159

commit 5b9cb4db94d5520e018a1a99d38d444c9c95d159
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-01-21 18:01:51 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-02-14 09:26:38 +0000

    media-libs/opensubdiv: 3.6.0 update
    
    Removed all automagic dependencies.
    
    Changed CUDA interaction as a test-case for better binpkg support.
      - We adhere to CUDAARCHS or NVCCFLAGS.
      - For `MERGE_TYPE=source` we fall back to native.
      - For `MERGE_TYPE=buildonly` we fall back to all-major.
      - Removed clunky OSD_CUDA_NVCC_FLAGS which defaulted to ancient ARCHS.
    
    Replace src_install logic that removed extra files in favour of never installing them via src_prepare.
    
    Closes: https://bugs.gentoo.org/922952
    Closes: https://bugs.gentoo.org/922950
    Closes: https://bugs.gentoo.org/904070
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35029
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/opensubdiv-3.6.0-cudaflags.patch         |  20 ++
 .../opensubdiv-3.6.0-use-gnuinstalldirs.patch      |  38 ++++
 media-libs/opensubdiv/metadata.xml                 |   9 +
 media-libs/opensubdiv/opensubdiv-3.6.0.ebuild      | 222 +++++++++++++++------
 4 files changed, 232 insertions(+), 57 deletions(-)