Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 05-21-2017, 09:54 AM   #1
Registered: Apr 2015
Posts: 103

Rep: Reputation: Disabled
Library Preload Issues

I have built CLFS-svn. Things mostly work. Steam. Games. Desktop Environment.
32-bit libraries are in /lib & /usr/lib. 64-bit versions are in /lib64 & /usr/lib64.
The CLFS book dictated those library placements.

The biggest issue I have is dynamic library loading. For instance, to start
steam I use:

LD_PRELOAD="/usr/lib64/ /usr/lib/" steam
That starts steam and runs both 32-bit and 64-bit games. But, it doesn't stop
the flurry of warnings about elf incompatibilities to the console.
ERROR: object '/usr/lib/' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Since steam is a 32-bit app that warning makes no sense. That said file is not a 64-bit

My issue is vulkan applications will not load. Using LunarG's vulkaninfo I find another library issue. 'vulkaninfo' in turn being a 64-bit executable.
INFO: [loader] Code 0 : Found ICD manifest file /usr/share/vulkan/icd.d/radeon_icd.x86.json
ERROR: [loader] Code 0 : /usr/lib/ wrong ELF class: ELFCLASS32
INFO: [loader] Code 0 : Found ICD manifest file /usr/share/vulkan/icd.d/radeon_icd.x86_64.json
...demos/vulkaninfo.c:1464: failed with VK_ERROR_INITIALIZATION_FAILED
/usr/lib64/ exists for me. Both 32 and 64 are in place and
in the right folders. I tried to preload lib64/ to no effect.

I'm scratching my head. Here is my
/lib   (32-bit)
/usr/lib  32-bit
Old 05-21-2017, 11:04 AM   #2
Registered: Apr 2015
Posts: 103

Original Poster
Rep: Reputation: Disabled

I can get a vulkan instance, as root. I have an
identical environment with the root account.
In fact user 'clfs' from the book with a bare
env can't get an instance.

The must be some permission problem some where.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library Issues Vergil Linux - Newbie 1 11-07-2008 06:30 AM
root=lvol issues & preload initrd images Linux - Kernel 2 08-05-2007 09:10 PM
Should we trust on LD_PRELOAD (library preload) ? barunparichha Programming 2 07-13-2006 09:42 PM
Library not found bruce1271 Linux - Software 1 09-25-2003 03:46 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration