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

Original Poster
Blog Entries: 2

Rep: Reputation: 37

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: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
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 (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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



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 10:36 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