LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-21-2017, 09:54 AM   #1
sr_ls_boy
Member
 
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:

Code:
LD_PRELOAD="/usr/lib64/libstdc++.so.6 /usr/lib/libstdc++.so.6" 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.
Code:
ERROR: ld.so: object '/usr/lib/libstdc++.so.6' 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
library.

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.
Code:
INFO: [loader] Code 0 : Found ICD manifest file /usr/share/vulkan/icd.d/radeon_icd.x86.json
ERROR: [loader] Code 0 : /usr/lib/libvulkan_radeon.so: 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/libvulkan_radeon.so exists for me. Both 32 and 64 are in place and
in the right folders. I tried to preload lib64/libvulkan_radeon.so to no effect.


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

Original Poster
Rep: Reputation: Disabled
UPDATE:

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.
 
  


Reply


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 Brad.Scalio@noaa.gov 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 problem..ld.so.preload not found bruce1271 Linux - Software 1 09-25-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

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