LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-31-2020, 10:44 AM   #16
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 220

Original Poster
Blog Entries: 2

Rep: Reputation: 33

Quote:
Originally Posted by orbea View Post
Thanks, this seems to be the problem.

Code:
[iml-1.0.4p1.p2] /usr/lib/libgmp.so: error adding symbols: File in wrong format
A quick workaround would be to add this to the slackbuild.

Code:
sed -i "s|/lib|/lib${LIBDIRSUFFIX}|" build/pkgs/iml/spkg-install
There may be other places that require similar fixes.
This does not work, the build fails with the same error. Unless I don't understand where the build script this command should go - I put it right before "make build".
 
Old 04-03-2020, 09:23 AM   #17
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 220

Original Poster
Blog Entries: 2

Rep: Reputation: 33
Quote:
Originally Posted by mickski56 View Post
I have just tried this and sage at least built without error on my multilib install.
You will also need to add

if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi

somewhere just after the arch detection section of the slackbuild in order to set LIBDIRSUFFIX.
Also LIBDIRSUFFIX should probably be LIBSUFFIX
This works, it now builds on both vanilla and multilib. Thanks!
 
Old 04-03-2020, 09:55 AM   #18
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
Quote:
Originally Posted by thethinker View Post
This works, it now builds on both vanilla and multilib. Thanks!
you're leaving both blank and only assigning one,
Code:
if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
fi
why not just do this, if true, do this , else do that.
Code:
[ "$ARCH" = "x86_64" ]  && 
{ LIBDIRSUFFIX="64" ; } || 
{ LIBDIRSUFFIX=""   ; }

#which can be written
[ "$ARCH" = "x86_64" ]  && { LIBDIRSUFFIX="64" ; } || { LIBDIRSUFFIX=""   ; }
or the ole'

if [ "$ARCH" = "x86_64" ] ;
then 
     LIBDIRSUFFIX="64"
else
     LIBDIRSUFFIX=""
fi

Last edited by BW-userx; 04-03-2020 at 09:58 AM.
 
  


Reply

Tags
compilation, multilib, sagemath


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
Is it possible to have a 32-bit compatibility driver? Shingoshi Linux - Kernel 8 06-29-2009 01:54 PM
Slackware 64 Bit .. Needs 32 bit compatibility clowther Linux - Software 3 06-06-2009 12:55 PM
32-bit compatibility on a 64-bit AMD box ?? Rod Butcher Linux - General 4 01-11-2007 05:10 PM
32 bit compatibility for 64 bit distros Phil Brooks Linux - Software 9 03-31-2005 06:27 PM
If you have a AMD 64 chip with Fedora 64 bit OS are there compatibility 32bit issues C++ Newbie Linux - Newbie 2 04-07-2004 10:54 PM

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

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