LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-20-2008, 10:47 AM   #1
DrAMac
LQ Newbie
 
Registered: Aug 2005
Location: Connecticut, USA
Distribution: Debian
Posts: 15

Rep: Reputation: 0
opinions on multiarch


I'm curious how stable and seamless multiarch has become with respect to using the current workarounds with amd64. The project began 2 years ago (?) with not much documentation about it existing today. Does anyone have experience to share?
 
Old 09-20-2008, 05:13 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What kind of "workaround" are you referring to?

I don't have any Debian experience but I've been using x86_64 for years and my 64 bit distribution is multiarch. The 32-bit and 64-bit libraries are segregated and the package system offers 32-bit versions of many of the applications and libraries so you have a choice on what to use. Some very common packages such as Open Office may be only available for 32 bit, so every 64 bit distro has been multiarch to some extent, but their approach may be different.

My distro installed the 32-bit version of Firefox until recent versions to prevent problems with a lack of 64-bit plugins.

AFAIK, there isn't that much to document except for the tool chain and process of developing for 32-bit on a x86_64 system. From a non-developer perspective, except for a couple of plug-ins its been a non-issue.

Last edited by jschiwal; 09-20-2008 at 05:19 PM.
 
Old 09-21-2008, 02:33 PM   #3
DrAMac
LQ Newbie
 
Registered: Aug 2005
Location: Connecticut, USA
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
The 2 workarounds are installing a 32bit chroot or the ia32-libs common library package. This link http://lwn.net/Articles/184092/ can explain the problem better than I can. There is a comment posted further down explaining why rpm is/was not true multiarch.
 
Old 09-21-2008, 03:43 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Thank you for that article. It is food for thought. A package system using /usr/local/ as the base for libraries on the system is not a good idea IMHO. The purpose of /usr/local/ is a place for you to install packages from source (not from your distro repo) and have it protected during an upgrade, reinstallation or from your package system. The package system is forbidden from installing files there, period.

It does make sense using /usr/local/ as the prefix for packages you build from source (that aren't the source packages for your distro). You have the freedom to use /lib & /lib32 instead if that makes more sense to you or /lib32 & /lib64 or have /usr/local/32bit/ and /usr/local/64bit/ prefix.

The /opt/ directory is supposed to be for optional items and tend to be used for large optional sub-systems like a new version of KDE, Java or Open Office, with each in it's own subdirectory. However, using /opt for smaller 32 bit versions on a 64 bit system is not as objectionable as re-purposing /usr/local/ IMHO.

I think that they would have used /lib and /lib32 except for the fact that people might install older 32 bit packages or from source. Even if a new package system will use /lib/ & /lib32 or /lib32 & /lib64, it will be common for people to build a package from source using "./configure && make && make install". If configure & make prepares and builds a 32 bit install then you will still have this problem.

I'm also worried about having a different solution causing too much fragmentation in Linux standards. Use /lib64 on RPM systems. Use /usr/local/lib32 for Debian, but you will find older packages using /lib/ instead. Also look in /opt/lib32 and /opt/<packagename>/lib/, unless the package normally installs to /opt, in which chase look in /opt/32bit/<packagename>/ or /opt/<packagename>/lib32. Add the lib64 variant to the above and you get the idea.i

Last edited by jschiwal; 09-22-2008 at 02:54 PM. Reason: typo
 
Old 09-21-2008, 04:03 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I just had a thought. You've heard about the petaflop computer that was just built. What do they do? They have both Opterons and Cell processors running at the same time on each and every blade. Programs written specifically for it may have binaries and libraries for both processors. In other words it is a hybrid architecture rather than a biarch architecture.

In the future, the CPUs in our computers will contain a mixture of CPU/GPU architectures on the same chip. I think that rules out the chroot workaround.
 
Old 09-21-2008, 08:09 PM   #6
DrAMac
LQ Newbie
 
Registered: Aug 2005
Location: Connecticut, USA
Distribution: Debian
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
I'm also worried about having a different solution causing too much fragmentation in Linux standards.
Me too and that's seems to be the crux of the problem. Multiarch isn't just a better way of doing 32-bit x86 on amd64, but also about mixing other cpu architectures like sparc or ppc. It adds a lot more complexity but it seems like this is where linux is going, whether it's debian or redhat based, and the current way of doing 32-bit on 64-bit will probably go by the wayside especially if changes are made to the package managers. Thanks for your input, I think this is intriguing too.
 
  


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
your opinions please agelsc *BSD 6 04-27-2007 01:25 PM
building a RPM for xmms (xmms-config, multiarch ???) bliblu Linux - Software 0 06-06-2006 09:01 PM
Problems with multiarch-utils. Him Linux - Software 1 09-14-2005 06:58 AM
Your opinions? oktober Linux - Laptop and Netbook 4 03-26-2005 05:44 PM
Opinions on the best way to do this? cyberdiamond Linux - Software 11 11-15-2002 07:00 PM

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

All times are GMT -5. The time now is 08:07 PM.

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