Multilib-capable gcc on 64bit systems

Hello there,
I post this for those who are interested in building 32bit binaries without a chroot.
I just finished building and testing my gcc-multilib package.
It allows you to build 32bit binaries using the -m32 paramter, like this:
> uname -m
x86_64
> g++ -m32 main.cpp
./a.out
I am a 32bit binary!
> file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
> ldd32 a.out
linux-gate.so.1 => (0xf7f3d000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7e27000)
libm.so.6 => /lib32/libm.so.6 (0xf7e01000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7de5000)
libc.so.6 => /lib32/libc.so.6 (0xf7c9f000)
/lib32/ld-linux.so.2 (0xf7f3e000)
You can find the AUR package here:
http://aur.archlinux.org/packages.php?ID=28545
But to build it you need a multilib capable gcc, so most of you wont be able to use this.
For you, I have put an already compiled version up, you can find it here:
  [Update]: Fixed a lot of things in the package, now at release 7
  http://timeoutd.org/gcc-multilib-4.4.0- … pkg.tar.gz MD5 1b094d6bb0cbaa56f60b7f31280eb9b4
Vote for the AUR package
Have fun compiling!
PS: Should I add this to the wiki?
--Marenz
Last edited by Marenz (2009-07-21 05:18:53)

Should I add this to the wiki?
Feel free to do it, welcome to the community
Btw, Doesn't know the default built gcc this? On fedora i used this, it's sure with the default.

Similar Messages

  • Multilib conflicts with native 64bit packages (gcc-libs and binutils)

    hi all :>
    i tried to build arduino from the AUR on my 64bit system (32bit version runs nice on my netbook! thanks! ). However i can't build it because it depends on gcc-libs-multilib and binutils-multilib from the multilib repo, which are conflicting with gcc-libs and binutils.
    is it safe to remove the 64bit equivalents of gcc-libs and binutils and replace them with gcc-libs-multilib and binutils-multilib?
    best regards :>

    pablox wrote:I know this is an old post, but it's one of the first results on google and actually answers the question... shouldn't it be marked as [SOLVED] ?
    The first poster should mark [solved] if the replies solve the issue for him. I don't think he even read the replies, judging from his lack of response on this thread. Regardless, no reason to bump this thread, we have necro-bumping rules for a reason.
    Closing.

  • Generating 32 bit code on 64bit system

    redhat el4 update 3, 2.6.9-34.ELsmp on a sun w2100z
    With the Solaris x86 compiler the default is 32 bit code even
    on a 64 bit system. Is a way to get 32 bit code generated on
    a 64bit system with the Linux version? Other than running
    on a 32 bit system (which works fine).
    mw

    As a general rule, you should try using appropriate gcc flag if that functionality is not covered in our compilers -flags output. If neither provides the needed functionality, ask, something could have been overlooked.
    Chris, I don't think we have new flags mentioned anywhere yet, docs update is scheduled to happen later, somewhere closer to release. We could make a list of adopted gcc-style flags.

  • [Solved] 32bits app on 64bits system

    Hi,
    I get the following message when trying to execute the anubis program :
    $ anubis
    bash: /usr/bin/anubis: Aucun fichier ou dossier de ce type
    (which means No such file or directory)
    The file exists so I guess the probem is that anubis is a 32bits prog and my system is arch64.
    According to the wiki it is possible to execute a 32bits app on a 64bits system if I install the lib32 libraries.
    So which library should I install ?
    WIll these solve my problem ?
    Last edited by Nanor (2011-07-22 09:56:57)

    loafer wrote:
    multilib is a repo rather than a package.  See here:
    https://wiki.archlinux.org/index.php/Ar … _Arch64.3F
    oh sh*t you're right... i forgot ,thanks for the right link this will answer his problem.
    i'm running a multilib system to due flash problems.......
    Last edited by gregor (2011-07-22 09:42:42)

  • Install coldfusion 8 32 bit on 64bit system

    in agreement with docs
    http://kb2.adobe.com/cps/403/kb403277.html#main__Toc193176416
    ("As of ColdFusion 8 Update 1, the Standard Edition can run as a 32-bit application on all supported 64-bit platforms in addition to 32-bit platforms")
    i'm trying to install coldfusion-801-lin.bin on
    a linux 64bit system
    but i receive this error
    [root@lnx1 store]# ./coldfusion-801-lin.bin
    Preparing to install...
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    strings: '/lib/libc.so.6': No such file
    Launching installer...
    ./coldfusion-801-lin.bin: /tmp/install.dir.9137/Linux/resource/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    ./coldfusion-801-lin.bin: line 2479: /tmp/install.dir.9137/Linux/resource/jre/bin/java: Success
    =========
    if i tryng to install coldfusion-801 64bit version,
    the serial number is not valid
    (my serial number is CF standard, upg license)
    you can help me?
    many thanks!

    First, it would be a good idea for you to specify what distro of Linux you're using, as not all are supported by Adobe.
    Second, this is probably your problem right here:
    http://askubuntu.com/questions/40416/why-is-lib-libc-so-6-missing
    In a nutshell, CF expects the 32-bit version of libc.so.6 to be in /lib, but it's probably not. You might be able to modify the installer to point to the correct location for that file, or you might be able to create a symlink to the file - but as the above link describes, creating a symlink might have negative consequences.
    As for installing CF 8 64-bit, that's only available with Enterprise, not Standard. If you want CF Standard 64-bit, you need to upgrade to CF 9.
    Dave Watts, CTO, Fig Leaf Software

  • How to use VBScript to access a 32bit ODBC System DSN (Excel) on a Windows 7 64bit system?

    What is the correct way to connect to a 32bit System DSN (Excel) on a Windows 7 64bit system?
    I've recently switched from Windows XP Pro x32 to Windows 7 x64.  Now, one of my scripts that uses an ODBC connection will no longer work.  After a bit of searching, I discovered that Windows 7 x64 does not currently have 64bit Excel drivers.  However, you can set up 32-bit connections by running "C:\Windows\SysWOW64\odbcad32.exe".  Unfortunately, my script still won't work even though I set up the System DSN exactly like I did on my old computer.  When I run my script, I get the following error:
    Quote:
    Script:  X\XML_Check.vbs
    Line:  212
    Char:  3
    Error:  [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.
    Code:  80004005
    Source:  Microsoft OLE DB Provider for ODBC Drivers
    Line 212 contains:
    objConnection.Open "DSN=charge_codes_XLS;"
    It seemed to me that wscript.exe will only communicate properly with an identical environment (x32 to x32 or x64 to x64, but not x64 to x32 or x32 to x64).  With that in mind, I found a way around the error by running my script via the 32bit version of Windows Script Host.  I changed the shortcut path from "X:\XML_CHECK.vbs" to "C:\Windows\SysWOW64\wscript.exe X:\XML_CHECK.vbs" and the script appears to function ok. 
    What I really want to know is if there is a way to run my script via the 64bit version of wscript.exe yet have it connect to the 32bit ODBC subsystem? Is there a specific connection string I can use or am I just out of luck until Microsoft puts out 64bit Excel drivers?

    I faced the same issue recently. There was a 32bit MSOffice installed on the 64bit server and the same visual basic code worked from MS Office script debugger, and did not in the cscript/wscript.
    It seems that 
      - the  cscript/wscript used 64bit ODBC driver
      - the  office used     32bit ODBC driver
    Excel drivers are installed for 32bit ODBC (because of 32 bit office the ODBC manager 32bit was a full hand of drivers).
    Excel drivers are NOT installed for 64bit ODBC manager (because of 32 bit OFFICE) and can not be installed while the 32bit MS OFFICE is installed.
    The SQL drivers are installed for 64bit ODBC (so that is why the SQL connection was established well)
    The solution would be to run .js .vbs scripts in 32 bit environment:
    \windows\SysWOW64\cscript.exe or \windows\SysWOW64\wscript.exe 
    Search for more with: how do i run a vbscript in 32 bit mode on a 64 bit machine

  • I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    See this User Tip by turingtest2
      https://discussions.apple.com/docs/DOC-6562

  • If I were to buy the 7 Home Premium SP1 64bit, System Builder OEM DVD 1 Pack from Amazon to install Microsoft Windows 7 on my Mac, would it be compatible with my computer when I put it in bootcamp? (I have all of the current software updates)

    If I were to buy the 7 Home Premium SP1 64bit, System Builder OEM DVD 1 Pack from Amazon to install Microsoft Windows 7 on my Macbook Pro, would it be compatible with my computer if I put it in bootcamp? (I have all of the current software updates)

    In order to run Windows Applications, you must own the applications and, since they require Windows, you must own Windows. There are technologies like wine that will allow Windows applications to run without Windows, but they tend to be flakey at best.

  • To request my serial number for Adobe After Effects to upgrade to 64bit system

    I have AE cs6 and I need to upgrade to 64bit system.
    How and where to request my serial number for Adobe After Effects to upgrade to a compatible 64-bit operating system? (because no customer service answered me)

    I don't understand your problem.
    After Effects CS6 runs on 64 bit systems.  You use the same serial number you use on a 32 bit system.
    If you want to upgrade to the CC subscription version, you can do so on the Adobe website.
    What do you mean that no customer service answered you?  Did you speak to Adobe Support?  What did they say?

  • Does DirectX 9.0c support 64bit system?

    I just know that 32bit dll doesn't work  with 64 bit system.
    so I wonder DirectX 9.0c is working with 64bit system?
    thanks for reading.
    have a nice day.

    Hi mastise,
    Thank you for posting in MSDN forum.
    Based on your issue, I did some research about this issue. I found that the Directx 9.0 c is working with the Windows XP Pro x64 Edition.
    For more information:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ee416805(v=vs.85).aspx
    https://msdn.microsoft.com/en-us/library/windows/desktop/ee416788(v=vs.85).aspx
    So please ensure what OS you install on your machine.
    If you have any issues about this Directx 9.0 c, I suggest you could post this issue directly to this Windows Develp forum for this Directx 9.0 c:https://msdn.microsoft.com/en-us/windows/desktop/aa904945.aspx
    , you will get more useful information.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is Firefox 4.0 now compatible with ZoneAlarm Browser 1.5.260.0 and Windows Vista Home Premium, 64Bit System, Service Pack 2?

    Is Firefox 4.0 now compatible with ZoneAlarm Browser 1.5.260.0 and Windows Vista Home Premium, 64Bit System, Service Pack 2? Earlier when checking for updates there were compatibility issues. Were these issues resolved to allow me secure operation with Firefox 4.0?

    I also am a zone alarm user and was not to happy about the issue with 4.0
    I use sky .fm for music and was not happy when it would not play. required update to latest flash,which didn't work no matter what. even the suggestion in another thread.

  • Installing qt5-32bit program on 64bit system

    I am trying to build a 32bit program that's using Qt 5 as toolkit on my 64bit system. For Qt 4 there's a lib32 package, for Qt 5 I cannot find any. How can I build this program without building Qt on my own when a lib32-qt5 package is missing?
    Thank you!
    Last edited by OlafLostViking (2014-05-13 00:13:28)

    Make the lib32-qt* packages yourself and trow them up on aur

  • Does the Developer Workplace also run on 64bit systems?

    I know that this is not a supported platform, it seems that the developer studio is inly supported on XP 32bit. But I like to make full use of my 4GB RAM and therefore install the whole NW CE 7.1 environment including JEE server and development studio on a 64bit system (Linux or Windows Server 2003). Does this work or won't it even install?
    Did anyone try this before? Will there be a new version in the near future that is supported to run on 64bit systems?

    Hi Srivastava,
    thanks for your reply. At least there is some hope now that it will run on 64 bit but from the various OSS notes I still do not get a clear picture. The notes you explicitly mentioned seem to be rather old. Now I found note 953763, which says:
    Supported Operating Systems for Development Systems
    If you want to install a SAP NetWeaver CE development system, the following operating systems are supported:
    Microsoft Windows XP Professional SP2 (or higher) (32-bit)
    Microsoft Windows 2003 Server SP1 (or higher) (64-bit)
    From that note I guess that also the installation of NetWeaver Developer Studio will work on Windows Server 2003 64-bit.
    Is anyone using this particular configuration?

  • How do you clean install CS6 on a new PC Win7 64bit system?

    How do you clean install CS6 on a new PC Win7 64bit system?
    I think I've upgraded all th way from Version 7.

    There is no problem. If no previous, activated software is detected on the system, the upgrade installer will simply revert to its secondary mode and request to input the old serial in a second step for verification. Unless you do some exotic crossgrade/ sidegrade stuff, this should work with no problems whatsoever.
    Mylenium

  • ITunes & Apple Mobile Device Driver Not Compatible w/ Windows 64bit Systems

    In short, I spent over 2 hours on the phone tonight with Apple Support. The call was elevated to a software engineer. After several minutes he apologigized and state the Apple Mobile Device Driver is not compatible with Windows 64Bit systems.
    Therefore I can't activate or do anything for that matter. I effectivly have a $600 paper weight. I asked the engineer if they have any intention fixing it and never received a direct response.
    None of the documentation that I have found states 64bit Operating Systems are not supported. The support rep stated nor he or his collegues were unware the mobile device driver didn't support 64 bit OSs either. I consider this to be really misleading and a huge oversight on Apple's part.
    I wrapped up the call by asking him how I go about returning the device without being struck by the 10% restocking fee. He didn't know.
    Anyone have Steve's number? I sure would be nice to get at the minimum a full refund.
    I just thought everyone else should know so you don't tie up support lines and waste your time trying to find a resolution.
    Regards,
    KSPad

    OMG same thing here; rather annoyed and now have set up accounts on 2 comps(both 64 vista ultimate); about to try my 32 bit vista on my lappy; we'll see... i don;t have high hopes thoush.
    What i knew about iPhone before buying it:
    What You Need
    To use iPhone, you need:
    A new two-year wireless service plan with AT&T
    A Mac or a PC with a USB 2.0 port and one of the following operating systems:
    Mac OS X version10.4.10 or later
    Windows XP Home or Professional with Service Pack 2 or later
    Windows Vista Home Premium, Business, Enterprise, or Ultimate edition
    iTunes 7.3 or later, available at www.itunes.com
    An iTunes Store account
    An Internet connection
    You must be at least 18 years old to open a new AT&T wireless account. You will need a
    major credit card to open a new iTunes Store account.
    Yeahyeah check all that stuff;
    Oh well; just when i thought i'd finally cross over to the beautiful packaging of APPLE. I remember in design school that form follows function. Thanks.
      Windows Vista  

Maybe you are looking for

  • Can't get batch from droplet to start processing

    I'm using Compressor 4.0.7 running 10.8.5, but I've seen similar posts on other boards (Creative Cow) reaching back 2-3 years with same issue so I don't think it is new. When using a droplet to submit a batch vs. submitting manually through Compresso

  • How to unlock iPad without itunes

    How do you unlock the IPad without having a computer for iTunes.  My niece somehow changed her code, & forgot what it is. Can she use my iTunes to recover?

  • Bug in an app

    I purchased an app from the Mac App Store to download the "Holy Bible Audio Book" to my iMac. It worked the first day, then stopped working afterwards. It said failed download and there was no audio. I emailed the seller and still waiting for respons

  • Best External Hard Drive for Carbon Copy Cloner?

    I'm about to do a clean install of Leopard on my *Mac Pro* but I want to back up/clone my current system (10.4.11) to an *external hard drive* first. Based on the recommendations of similar users (Logic Studio) -- a clean install is preferable to an

  • APEX images and scripts through relay

    Hello At the moment I'm using APEX from inside a java (weblogic) environment using a URLConnection. I have removed most of the content from the templates so that my application now spits out straight HTML without the headers, etc. eg. it will just ou