Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828775 - dev-libs/level-zero-1.6.2 - /.../ze_util.h: error: RTLD_DEEPBIND was not declared in this scope
Summary: dev-libs/level-zero-1.6.2 - /.../ze_util.h: error: RTLD_DEEPBIND was not decl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL: https://github.com/oneapi-src/level-z...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 11:33 UTC by Toralf Förster
Modified: 2021-12-15 18:03 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.33 KB, text/plain)
2021-12-10 11:33 UTC, Toralf Förster
Details
dev-libs:level-zero-1.6.2:20211210-033741.log (dev-libs:level-zero-1.6.2:20211210-033741.log,38.31 KB, text/plain)
2021-12-10 11:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,50.34 KB, text/plain)
2021-12-10 11:33 UTC, Toralf Förster
Details
environment (environment,85.17 KB, text/plain)
2021-12-10 11:33 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.48 KB, application/x-bzip)
2021-12-10 11:33 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.00 KB, application/x-bzip)
2021-12-10 11:33 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,23.18 KB, application/x-bzip)
2021-12-10 11:33 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 2021-12-10 11:33:11 UTC
too long lines were shrinked:

/usr/bin/x86_64-gentoo-linux-musl-g++ -DL0_LOADER_VERSION=\"1\" -DL0_VALIDATION_LAYER_SUPPORTED_VERSION=\"1\" -DLOADER_VERSION_MAJOR=1 -DLOADER_VERSION_MINOR=6 -DLOADER_VERSION_PATCH=2 -Dze_loader_EXPORTS -I/var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/include -I/var/tmp/portage/d
In file included from /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.h:15,
                 from /var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.cpp:8:
/var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.cpp: In member function 'ze_result_t loader::context_t::init()':
/var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/inc/ze_util.h:28:71: error: 'RTLD_DEEPBIND' was not declared in this scope
   28 | #  define LOAD_DRIVER_LIBRARY(NAME) dlopen(NAME, RTLD_LAZY|RTLD_LOCAL|RTLD_DEEPBIND)
      |                                                                       ^~~~~~~~~~~~~
/var/tmp/portage/dev-libs/level-zero-1.6.2/work/level-zero-1.6.2/source/loader/ze_loader.cpp:99:27: note: in expansion of macro 'LOAD_DRIVER_LIBRARY'
   99 |             auto handle = LOAD_DRIVER_LIBRARY( MAKE_LIBRARY_NAME( "ze_null", L0_LOADER_VERSION ) );

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211209-163207

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 30a6680e46f970f64c96d1f26503f2dbbf7e4954
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 02:36:41 2021 +0000

    2021-12-10 02:36:40 UTC

emerge -qpvO dev-libs/level-zero
[ebuild  N    ] dev-libs/level-zero-1.6.2
Comment 1 Toralf Förster gentoo-dev 2021-12-10 11:33:13 UTC
Created attachment 758064 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 11:33:14 UTC
Created attachment 758065 [details]
dev-libs:level-zero-1.6.2:20211210-033741.log
Comment 3 Toralf Förster gentoo-dev 2021-12-10 11:33:15 UTC
Created attachment 758066 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-10 11:33:16 UTC
Created attachment 758067 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-10 11:33:17 UTC
Created attachment 758068 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 11:33:18 UTC
Created attachment 758069 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-10 11:33:19 UTC
Created attachment 758070 [details]
temp.tar.bz2
Comment 8 Jan Henke 2021-12-10 16:38:24 UTC
Strange RTLD_DEEPBIND is defined in /usr/include/bits/dlgcn.h on my system. That header file should come with glibc.
Comment 9 Jory A. Pratt gentoo-dev 2021-12-11 02:58:59 UTC
(In reply to Jan Henke from comment #8)
> Strange RTLD_DEEPBIND is defined in /usr/include/bits/dlgcn.h on my system.
> That header file should come with glibc.

this is not glibc it is musl.
Comment 10 Jan Henke 2021-12-12 11:45:18 UTC
Yes, I did not notice this is on a musl system. But that indeeds explains the problem, as musl does not support the RTLD_DEEPBIND flag for dlopen. So this is indeed a glibc vs musl issue.
Comment 11 Larry the Git Cow gentoo-dev 2021-12-15 18:03:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d020e6d79ea7ff9e5d53190d1cfd3b592a1bcc

commit 19d020e6d79ea7ff9e5d53190d1cfd3b592a1bcc
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-12-15 17:54:51 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-12-15 18:03:23 +0000

    package.{mask,use.mask}: mask dev-libs/level-zero on musl
    
    Closes: https://bugs.gentoo.org/828775
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 profiles/features/musl/package.mask     | 4 ++++
 profiles/features/musl/package.use.mask | 4 ++++
 2 files changed, 8 insertions(+)