LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-10-2010, 10:57 AM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
ORBit2 Slackbuild fails when building 32 bit package on current multilib


I am trying to build ORBit2 as a dependency for GConf and then google-chrome. This is a multilib system and I want 32 bit chrome. Both my 64 bit and compat32 packages are all current as of today per ftp://slackware.mirrors.tds.net/pub/slackware/. I have edited the Slackbuild as follows:
Code:
PRGNAM=ORBit2
VERSION=${VERSION:-2.14.18}  ### edited for VERSION
ARCH=${ARCH:-x86_64}  ### edited for ARCH
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX=""   ### edited per Eric's instructions
fi
The build fails each time with:
Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.4.3/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-slackware-linux/4.4.3/../../../libIDL-2.so when searching for -lIDL-2
/usr/lib64/gcc/x86_64-slackware-linux/4.4.3/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/libIDL-2.so when searching for -lIDL-2
/usr/lib64/gcc/x86_64-slackware-linux/4.4.3/../../../../x86_64-slackware-linux/bin/ld: cannot find -lIDL-2
collect2: ld returned 1 exit status
make[3]: *** [orbit-idl-2] Error 1
make[3]: Leaving directory `/tmp/SBo/ORBit2-2.14.18/src/idl-compiler'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/ORBit2-2.14.18/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/ORBit2-2.14.18'
make: *** [all] Error 2
I am using the newest version of ORBit2 as the above indicates, but this is just to see if the newer package would build. The X.X.17 version failed with the same output.
I have run:
Code:
. /etc/profile.d/32dev.sh
I've had no problems building this package with current in a pure 64 bit environment.

Last edited by damgar; 04-10-2010 at 11:01 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-10-2010, 11:06 AM   #2
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,612

Rep: Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414Reputation: 1414
Quote:
. /etc/profile.d/32dev.sh
That usually doesn't work for me either.

This is how I would build a 32-bit packages for my 64-bit multilib system:
  1. build the package on a 32-bit system
  2. move it to the 64-bit system
  3. run convertpkg-compat32 on the package if it's a library
  4. install the package

It works every time. I run 64-bit Slackware, and I have 32-bit Slackware in a VirtualBox virtual machine.

The -LIDL-2 error is exactly what I got when I tried to build a 32-bit Firefox package from source on my 64-bit system. Building it on my 32-bit system worked.

Last edited by dugan; 04-10-2010 at 11:11 AM.
 
Old 04-10-2010, 02:07 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,751

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
Does using this work?:
SLKCFLAGS="-m32 -O2"
 
1 members found this post helpful.
Old 04-10-2010, 02:23 PM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
just guessing, haven't tried it myself, but I think you need to install a libidl-compat32 package as a dependency for building ORBit2.
from a root prompt
Code:
cd /tmp
wget http://slackware.osuosl.org/slackware-current/slackware/l/libidl-0.8.10-i486-1.txz
convertpkg-compat32 -i libidl-0.8.10-i486-1.txz
installpkg libidl-compat32-0.8.10-x86_64-1.txz
if you need a ready made ORBit2 package to convert I have built one for i686.
 
2 members found this post helpful.
Old 04-10-2010, 02:26 PM   #5
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Originally Posted by gnashley View Post
Does using this work?:
SLKCFLAGS="-m32 -O2"
No it didn't..............but it got me experimenting and

Code:
  SLKCFLAGS="-O2 -mtune=i686"
DID WORK. I just copied the SLKCFLAGS from the arch that I was trying to build for. That's good to know. I have been using my slack13 system to build packages for the multilib system, although frankly I was doing just as well using Salix repositories. In that regard.

I guess I should start a new thread for the last bit of 32 bit google-chrome on multiltib PITAness which is that I can't access of all things gmail.com due to ssl failure. I've managed to get the internal flash going.
 
  


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
[SOLVED] Alien Bob's VLC slackbuild fails on current Daedra Slackware 4 10-25-2010 03:14 PM
Method for resolving 32 bit dependencies on multilib current? damgar Slackware 2 04-08-2010 09:58 AM
lmms slackbuild fails with -current the_penguinator Slackware 3 02-03-2010 09:24 AM
Slackware64 current multilib, do the 32 bit packages need to be updated as well? damgar Slackware 11 02-01-2010 11:08 AM
ffmpeg Slackbuild fails in current multilib damgar Slackware 4 01-09-2010 09:12 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration