LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-03-2015, 05:05 PM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Concerns about multilib


Hi,

In this thread there were some concerns raised about multilib. In my own experience using multilib on three systems it is very easy to install and maintain (with slackpkg+). The only issues I have come up against are an occasional slackbuild.org slackbuild which tries to link the 32 bit libraries even if LDFLAGS is set. I have dealt with this by uninstalling the compat32 packages for the build and then reinstalling them. Other than that I have had no issues.

So I would like to pose the question: What issues/problems/inconveniences have others run into when using multilib?

Brian
 
Old 06-03-2015, 05:25 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
The only issues I have come up against are an occasional slackbuild.org slackbuild which tries to link the 32 bit libraries even if LDFLAGS is set.
What that happens, try setting LDFLAGS.

http://www.slackbuilds.org/faq/#multilib

EDIT: I still need to start reading posts before replying to them. Anyway, what were the SlackBuilds?

Last edited by dugan; 06-03-2015 at 08:46 PM.
 
Old 06-03-2015, 05:42 PM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by dugan View Post
What that happens, try setting LDFLAGS.

http://www.slackbuilds.org/faq/#multilib
Same here. Happened to me with about half a dozen packages (on several hundred). Setting LDFLAGS always did the trick.
 
Old 06-03-2015, 06:07 PM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
As a new Slackware convert, I found it difficult to find the documentation that shows how to use slackpkg+ to manage multilib. The page that comes to mind when I think back on installing multilib for the first time is this page. Nowhere does it mention anything about how to use the slackpkg+ extension.

I was managing my multilib installation with lftp and by watching the changelog, which wasn't all that difficult, just not automatic. I stumbled upon AlienBob's blog post only after I installed multilib manually. Which was an immense help in configuring the slackpkg+ extension.

Further details of my difficulty are documented in this LQ thread.

I think it would be helpful for future converts/new Linux users if slackpkg+ functionality was fully documented on docs.slackware.com on a separate wiki page, and linked to from this section of the documentation.

I realize that if I had installed slackpkg+ and read the README, I would have had all my questions answered. As a new Slackware user I did not know the best way to do things so it took me a bit longer. If it was all documented more clearly it would have saved me some time.

Searching the Slackware wiki yielded these additional pages that have some, but little, information on slackpkg+:
 
Old 06-03-2015, 06:19 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
One big inconvenience is building 32-bit libraries and then converting them to -compat32 packages. I've found that I really need a separate 32-bit installation to do it, and that trying to build them with 32dev.sh doesn't always work.
 
Old 06-03-2015, 08:14 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I avoided the 32-bit problem by setting a USE flag on my SlackBuilds.

ARCH=x86_64 ./<package_name>.SlackBuild

However, modern SlackBuilds do have a mechanism to auto-detect the system being used and set the environment appropriately.

32dev.sh isn't meant to work in all situations. The reason is, dependencies within the system aren't always met for 32-bit as they are with 64-bit.

This is why AlienBOB gave use the converter package to download the standard i486 packages as needed and convert them to x86_64-compat32 packages. It's not always foolproof, but it does work.

The Multilib we have is honestly a minimal set to get it working, and then allow you to expand it on your own as needed. It does take work, but it can be done. I think the only SBo package I couldn't get to build was the emulator Gens. I solved that problem quickly by using the MESS emulator.

Last edited by ReaperX7; 06-03-2015 at 08:19 PM.
 
Old 06-03-2015, 08:49 PM   #7
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 316

Rep: Reputation: Disabled
Quote:
Originally Posted by BCarey View Post
Hi,

In this thread there were some concerns raised about multilib. In my own experience using multilib on three systems it is very easy to install and maintain (with slackpkg+). The only issues I have come up against are an occasional slackbuild.org slackbuild which tries to link the 32 bit libraries even if LDFLAGS is set. I have dealt with this by uninstalling the compat32 packages for the build and then reinstalling them. Other than that I have had no issues.

So I would like to pose the question: What issues/problems/inconveniences have others run into when using multilib?

Brian
As I recall the thread, or my participation in it, this wasn't the impression intended. I didn't mean to suggest multilib was problematic per se. The person whose post I found compelling also seemed only to be suggesting, all else being equal, singlelib is more desirable than multilib. My question was whether, given the choice, it would make more sense to use a plain 32 Slackware over mixing in my particular case. It sounded that way to me hearing from the people using 32 bit, but there's lots I don't know (e.g. no one's sounded in on whether Linux takes advantage of x64's better architecture to make pages either executable or writable but not both, as OpenBSD has).

I've read over the multilib instructions and am still considering that option whenever I get around to trying to install squeak and/or pharo. I'd likely lean towards not using slackpkg+ but manually installing the mixed glibc and gcc and whatever few other packages the smalltalk VMs might need. The appeal of slackware for me right now is to do things myself until that gets boring so I've abstained from slackpkg+ so far. Even slackpkg I only used once to catch up on security updates on my initial, late 14.1 install. Later in my slackware career maybe I'll accept more gifts of what Larry Wall calls vicarious suffering, but now I'm fetishizing my own suffering. (I've even started using vi keybindings in emacs using viper for god's sake, so don't pay attention to me.)

So a lot of it's just purist/hobbiest/aesthetic considerations. That libraries go in lib64 still annoys me. Not as much as how it looks on Windows with 64 bit binaries in system32 and 32 bit binaries in SysWoW64 or whatever it's called. No doubt this is unfair given the direction of the arrow of time... so sue me I'm irrational.
 
Old 06-03-2015, 08:59 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
SysWOW64 actually is labeled correctly.

It is supposed to read out as: System_Windows32-on-Windows64.
 
Old 06-04-2015, 12:50 AM   #9
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
the FAQ mentions the problem

Quote:
I have problems compiling with my unofficial and unsupported multilib setup.
I think we had the topic the multilib in official will possible not happen one,
but mention it from time to time and see if something changes can not hurt
=>Slackware 64 should come with multilib included
 
Old 06-04-2015, 02:09 AM   #10
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by BCarey View Post
I have dealt with this by uninstalling the compat32 packages for the build and then reinstalling them. Other than that I have had no issues.
You can also move /usr/lib to /usr/lib_ and compile the program that breaks due to multilib, and move it back once it compiled. Might be faster than uninstalling all compat32 packages. I did that for libmp3splt, since LDFLAGS did not work either.
 
Old 06-04-2015, 03:23 AM   #11
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
I am curious... Why does Slackware64 install the libraries to /usr/lib64 and not /usr/lib? I do not remember what the reason behind this was.
 
Old 06-04-2015, 03:48 AM   #12
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by solarfields View Post
I am curious... Why does Slackware64 install the libraries to /usr/lib64 and not /usr/lib? I do not remember what the reason behind this was.

According to the wiki:

Quote:
This article contains instructions on how to create a true multilib Slackware64. A multilib 64bit Linux system is capable of running 64bit as well as 32bit software. The Filesystem Hierarchy Standard documents the optimal method to achieve a clean separation between 64bit and 32bit software on a single system. When starting with the development of “Slackware64” (the official port to the x86_64 architecture) we chose to adopt this standard. Therefore Slackware64 has been configured to look for 64bit libraries in /lib64 and /usr/lib64 directories. This is why I call Slackware64 “multilib-ready” - even though 32bit libraries will be looked for in /lib and /usr/lib, Slackware64 does not ship with any 32bit software. There is one more step that must be taken (by you, the user) before Slackware64 can be called “multilib-enabled”.
So it's due to FHS?
 
1 members found this post helpful.
Old 06-04-2015, 03:50 AM   #13
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
thank you!
 
Old 06-04-2015, 09:40 AM   #14
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 316

Rep: Reputation: Disabled
Quote:
Originally Posted by a4z View Post
the
FAQ mentions the problem I think we had the topic the multilib in
official will possible not happen one,
but mention it from time to time and see if something changes can not
hurt
=>Slackware 64 should come with multilib included
If there were a poll I'd hope another option listed would be to
gradually phase out even multilib readiness over time (like in 10 years
or something). Someday the need to run 32 bit only programs should go
away. At that time the 64 on the end of lib will be a blemish.
 
Old 06-04-2015, 09:43 AM   #15
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Still I do not see, for example /libarmv7l and /usr/libarmv7l in my ARM installations...

I other hand, I miss something, or the Linux tree shall be agnostic for ARCH, and eventually, a secondary thing/enhancement shall go in its directories?

Is not logical to have x86_64 libs in /lib and /usr/lib, and whatever arch-compat in /lib32 /usr/lib32 or even /lib16 /usr/lib16 and for the hard fans of Z80 even /lib8 and /usr/lib8 ?
 
  


Reply



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
[ANN] mk-slack64-multilib : A tool to create slackware64+multilib tree/iso phenixia2003 Slackware 5 12-28-2012 05:42 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
chapter 5.7 concerns the2k Linux From Scratch 9 10-02-2006 02:41 PM
concerns davidpurple Linux - Newbie 9 10-12-2001 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:56 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
Open Source Consulting | Domain Registration