Fedora Linux Support Community & Resources Center
  #1  
Old 23rd June 2012, 03:32 AM
redwolfe Offline
Registered User
 
Join Date: Jun 2012
Location: Durham, NC
Posts: 2
linuxfirefox
Cool question on how to compile 32-bit packages on x86_64 system

Trying to compile VirtualBox 4.1.18 with 32-bit support on a Fedora rawhide x86_64 system.

There are a few problems getting thrugh the configure step. It tries to make a 32-bit package using gcc and fails. x86_64 systems are multilib, so they run 32-bit stuff ok, but how can one generate 32-bit packages?
Reply With Quote
  #2  
Old 23rd June 2012, 04:20 AM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 889
linuxfirefox
Re: question on how to compile 32-bit packages on x86_64 system

I think you need at least a minimal set of 32 bit packages, like: glibc-devel.i686 libgcc.i686
Reply With Quote
  #3  
Old 24th June 2012, 12:07 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,077
linuxfirefox
Re: question on how to compile 32-bit packages on x86_64 system

The 64 bit version does not support 32 bit guest operating systems?

Can't you just download RPM from Oracle?
Reply With Quote
  #4  
Old 24th June 2012, 04:35 PM
weitjong Online
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 943
linuxfedorafirefox
Re: question on how to compile 32-bit packages on x86_64 system

Have you tried to append the '-m32' compiler option in the Makefile? It should allow you to cross compile 32-bit application on 64-bit system.
__________________
YaoWT - Leave no window unbroken ♪ (^。^) 
Reply With Quote
  #5  
Old 24th June 2012, 04:53 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,501
linuxchrome
Re: question on how to compile 32-bit packages on x86_64 system

http://www.ithiriel.com/content/2011...ding-rpms-mock

Might help. Haven't used it in awhile though
Reply With Quote
  #6  
Old 24th June 2012, 06:19 PM
redwolfe Offline
Registered User
 
Join Date: Jun 2012
Location: Durham, NC
Posts: 2
linuxfirefox
Re: question on how to compile 32-bit packages on x86_64 system

I'm trying to get the Guest Additions to compile on a Fedora rawhide (F18) x86_64 guest.

The GA provided by the released F17 RPM (4.1.18_78361) doesn't compile under rawhide kernel
(3.5.0-git3) since the 3.5 kernel changed one of the APIs and removed a few interfaces. The VB devel
mailing list has a thread about this already, but the fixed code is only in the SVN repository.

So I've downloaded the whole shebang and am trying to build the whole thing. I've installed the i686 toolchain
and libraries (gcc glibc and the -devel RPMs) but there are still a few problems.

This is where I get a little frustrated. I'm no stranger to programming, I've got a few major projects
under my belt, but I've not dealt with dealing with the particular situation of cross-compiling for ix86
on an x86_64 based platform. The VB configure is a little bit fragile and complains about not being able
to simply use the "-m32" flag on a simple gcc invocation.

Specifically, the linker step is failing to find an appropriate lib for the "-lgcc_s" default library. Which tells
me that the -m32 flag is properly generating ix86 code now, but the linker needs an additional option or
something to correctly make an ix86 executeable. So, here I am asking the question.


There are some work-arounds for rawhide and VBox Guest Additions: The rpmfusion.org binary RPM for
x86_64 rawhide works, but is tied to the particular kernel version. I'd like to find the proper source-level
fixes and give them back to VB so it's less of a hassel for others.

---------- Post added at 01:19 PM ---------- Previous post was at 12:53 PM ----------

A little more research indicates that a mock chrot may be usefull...

However, the conditions that mock needs are not met: There isn't a .src.rpm for VBox available, and it doesn't solve the problem of building for both architectures from the 64-bit side.

This should not be that hard a question.
Reply With Quote
Reply

Tags
32bit, compile, packages, question, x8664

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing duplicate i386 packages on a x86_64 system after a Pre-Upgrade from FC8-FC10 timblack Using Fedora 16 20th October 2009 07:19 PM
How can I build i386 packages on a x86_64 system? nemesis963 Using Fedora 10 14th May 2008 01:05 PM
Question about duplicate packages in x86_64 CheeseMonger Using Fedora 2 30th December 2007 07:35 PM
Compile 32-bit code on x86_64 system don_zz Using Fedora 0 13th October 2006 11:05 PM
FC4 x86_64 - lots of duped packages on newly installed system Joffer Using Fedora 7 1st November 2005 10:06 AM


Current GMT-time: 04:17 (Sunday, 31-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat