Question gcc-multilib [Solved]

Hi, and maybe a dumb question but I have 64bit arch and I sometimes install something and it wants to replace gcc-lib with gcc-multilib how does this effect me?
thanks
--jerry
Last edited by jk121960 (2012-08-17 12:00:50)

gcc-multilib is the default gcc with an additional multilib toolchain (for 32bit binaries on 64bit linux). This does not affect the 64bit system.

Similar Messages

  • [SOLVED] GCC multilib: cannot find shared library

    Hi,
    I'm trying to compile a systemc program to a 32-bit executable on arch x86_64.  I'm using GCC multilib.  Program compiles fine, but I get the following error when trying to run.
    /home/[myusername]/workspace/systemc_test/Debug/systemc_test: error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory
    Compiler:
    g++ -std=c++0x -DSC_INCLUDE_DYNAMIC_PROCESSES -I/usr/local/systemc/include -O0 -g3 -Wall -c -fmessage-length=0 -m32 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
    Linker:
    g++ -L/usr/local/systemc/lib-linux -m32 -o "systemc_test" ./main.o -lsystemc
    ls /usr/local/systemc/lib-linux/
    libsystemc-2.3.1.so  libsystemc.a  libsystemc.la  libsystemc.so  pkgconfig
    What am I doing wrong?  For the record, this works fine on Ubuntu (64-bit with multilib) using the same version of the systemc library, compiled and installed in exactly the same manner.
    Thanks!
    Last edited by kamz (2014-08-04 02:38:02)

    You're correct -- doesn't find that path.
    ldd systemc_test
    linux-gate.so.1 (0xf77ac000)
        libsystemc-2.3.1.so => not found
        libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf768f000)
        libm.so.6 => /usr/lib32/libm.so.6 (0xf7643000)
        libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7628000)
        libc.so.6 => /usr/lib32/libc.so.6 (0xf7465000)
        /lib/ld-linux.so.2 (0xf77ad000)
    Adding /usr/local/systemc/lib-linux to LD_LIBRARY_PATH solves the problem.  I used a script under /etc/profile.d/ to set this at session start, so I now consider this solved.  Out of curiousity, is it possible to avoid having to do this?

  • Gcc-multilib & ppl [solved]

    The last update for ppl broke gcc-multilib. It kept complaining about not finding any libppl.so.9.
    Not sure if it's connected, but when installing from aur, makepkg also failed on not finding x86_64-unknown-linux-gnu, or something like that.
    I don't have the exact outputs, since I already restarted, sry about that.
    For the time being I solved it by replacing gcc-multilib with gcc .
    Last edited by lman (2012-03-04 15:11:44)

    lman wrote:Edit: gcc-multilib already new one, still waiting on libtool-multilib, hope it syncs soon
    A quick solution I use for such circumstances is to manually download the package from the website and pacman -U it.

  • [Solved] gcc-multilib alongside gcc?

    Hi everyone. Apologies if this has been asked before, I've been searching around for a while and have not found an answer yet.
    Is it at all possible to have both gcc and gcc-multilib installed on x86_64 at one time? Pacman complains about conflicts between the two if you attempt to install both. If there are actual file conflicts, would it be possible to install gcc-multilib to a location such as /opt, and would this remedy the conflicts?
    Cheers!
    Last edited by xdelv (2011-08-16 13:54:35)

    bernarcher wrote:Why do you want to do so? gcc-multilib fully qualifies as gcc with additional capabilities. You will most probably get conflicts if you use both in parallel.
    Hi, thanks for the quick reply. I was under the impression that gcc-multilib was only capable of compiling multilib packages, and I don't want to give up my ability to compile native 64bit packages as well. Is that not the case?
    Edit: I've just found https://bbs.archlinux.org/viewtopic.php?id=102828 which seems to answer my question, in that "gcc-multilib includes just about every architecture, which is why it's 68 MB instead of about16". That's awesome, it seems "multilib" in my mind was associated with lib32 packages only, instead of multiple architectures. Thank you for helping me figure this out!
    Last edited by xdelv (2011-08-16 13:54:05)

  • [solved: I am a dope] Can gcc and gcc-multilib coexist?

    If I try to install gcc-multilib, it conflicts with my existing 64-bit gcc package. Is there a way for me to install it in another path or install the binaries from gcc-multilib as gcc32, g++32 etc?
    Last edited by rhd (2012-02-20 02:50:55)

    rhd wrote:
    I'm learning 32-bit assembly and the tutorial I am using has a small collection of example code and a little library which needs a 32-bit copy of libgcc.a.
    libgcc.a is owned by gcc and not gcc-libs and so here I am, attempting to install the multilib package instead of the 64-bit version. The -m32 flag doesn't help. [edit: the -m32 flag to gcc, which tells it to compile for a 32 bit arch]
    $ nosr libgcc.a
    core/gcc
    community/arm-elf-gcc-base
    community/arm-wince-cegcc-gcc
    community/avr-gcc
    community/mingw32-gcc
    community/mingw32-gcc-base
    multilib/gcc-multilib
    I tried to point out that gcc-multilib provides gcc. Everything gcc does, you can do with gcc-multilib. You can't have both installed at the same time (but you wouldn't want/need to, either).
    Last edited by falconindy (2012-02-18 15:01:10)

  • [SOLVED] gcc-multilib vs cross32-gcc

    What is the difference between gcc-multilib from http://supraverse.net/arch and cross32-gcc from community repo? I currently use gcc-multilib. If cross32-gcc provides the same functionality, how do I use this gcc for compiling 32-bit binaries.
    I use gcc-multilib mainly to compile grub-legacy, grub2 for bios and grub2 for i386 UEFI. Can anyone try compiling grub2-efi-bzr (with _EFI_ARCH=i386 in the PKGBUILD) in Arch64 using cross32-gcc. I maintain that package and i am willing to modify the PKGBUILD to use cross32-gcc in case of cross-compiling. Thanks in advance.
    Last edited by skodabenz (2011-01-30 19:37:06)

    Marenz wrote:
    RetroX wrote:
    cross32-gcc is actually just the 32-bit gcc package for 64-bit platforms.  gcc-multilib includes just about every architecture, which is why it's 68 MB instead of about16.
    Also, the gcc-multilib package is neat, but it doesn't seem to be maintained very well.  It doesn't actually specify that it conflicts with the regular GCC, and it seems to be out of date currently.
    Well, yes, I don't have the time and right now not even the hardware to update it (my 64bit desktop is pretty far away right now), sorry about that.
    If anyone is willing to step in here, be my guest. Just provide me with the packages. I can also offer write access to the related git repositroy with the PKGBUILDs.
    --Marenz
    Ah, that's fine.  I guess that I'll just use the cross32-gcc.
    And I didn't notice that this topic was a week old. D:
    Sorry about that.
    Last edited by RetroX (2010-08-21 16:07:45)

  • How can a question marked as "solved" be restored to unsolved status?

    How do you remove the “This solved my question” status icon if the answer turns out to be wrong?
    Variations of this question can be found in a few discussion threads in the Apple Support Community. I found one very similar question marked as “This solved my question.” Unfortunately the answer was, “It can't be changed.” I have reasons for trying to, at least, get a more definitive answer.
    A primary purpose of these discussions is to resolve issues. It is very frustrating to read through long threads that claim to have an answer, only to find that the question was mistakenly marked “solved.” I spent over an hour on a thread that was marked as resolved. The member that made the mistake wanted to remove the “solved” status--even asked for help several times. I finished the thread just in case either issue was resolved. No, neither issue was resolved.
    May someone, Apple if necessary, explain how to revert the “solved” status or help fix the problem? If it is a known issue with no workaround, it would be very helpful to have an explanation. Accordingly, are there plans to fix this problem, and a rough idea when? This could be a “This solved my question” hallmark worth celebrating!
    Caution: This discussion or parts of it may be revised or deleted while I attempt to find a solution or workaround. Once I've given up or the issue is resolved, I will indicate so, even if it requires a repost. Relevant contributions will be indicated either way.

    leonieDF and  seventy one pointed out, (paraphrasing) all posts can be helpful in some way, even if the original owner of the discussion didn't get their question resolved.
    Maybe if I keep using this tool I'll change my mind, but most of the time I'd rather save time getting something solved than not.
    If anyone believes there are legitimate reasons owners and participants of a discussion would benefit from the ability of the owner to reset the solved status, you're welcome to chime in.
    These excerpts from my original post express why I think a change is needed:
    Stiltskin!: “The member that made the mistake wanted to remove the “solved” status--even asked for help several times. I finished the thread just in case either issue was resolved. No, neither issue was resolved.”
    Stiltskin!: “I didn't find any entry in that thread with an answer to revert the icon. So I got the idea it wasn't common knowledge because so many posters asked the owner to fix it even though the owner kept asking how to do it.”
    A big part of why I started this discussion is because I noticed others (and myself) expressed interest in this feature (owner ability to reset a discussion's solved status). If anyone want's to respond to that, please do.
    Nobody's brought it up but my discussion's header question doesn't express what I'm talking about now. I would change it if I could. I'd encourage future contributors (if any) to read through the explanation of my question in the first post to understand my perspective beyond "How can a question marked as 'solved' be restored to unsolved status?"
    Thank you all for your input!

  • Gcc-multilib not found

    Hello,
    I want to upgrade my system but it fails for two packages from aur lib32-avahi and lib32-libtasn1 because they need the dependency gcc-multilib which I cannot find.
    $ yaourt -Syu --aur
    :: Synchronising package databases...
    ==> Software upgrade (new version) :
    aur/lib32-avahi 0.6.25-3.1 -> 0.6.30-2
    aur/lib32-libtasn1 2.6-1 -> 2.9-1
    ==> lib32-avahi dependencies:
    - expat (already installed)
    - lib32-glib2 (already installed)
    - lib32-dbus-core (already installed)
    - lib32-libcap (already installed)
    - lib32-libdaemon (building from AUR)
    - lib32-gdbm (building from AUR)
    ==> Continue building lib32-avahi ? [Y/n]
    ==> -------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for lib32-avahi:
    ==> lib32-gdbm dependencies:
    - lib32-glibc (already installed)
    - gdbm>=1.8.3 (already installed)
    - gcc-multilib (building from AUR)
    ==> Continue building lib32-gdbm ? [Y/n]
    ==> ------------------------------------
    ==>
    ==> Building and installing package
    ==> Install or build missing dependencies for lib32-gdbm:
    error: target not found: gcc-multilib
    ==> Restart building lib32-gdbm ? [y/N]
    ==> -----------------------------------
    Same for lib32-libtasn
    any idea ?
    Thank you
    By the way, is there a way to know if these two packages are a dependency of another one or something ? Because I don't remember why I installed it...
    Last edited by martvefun (2011-05-22 08:20:11)

    Thank you it seems to work.
    I've lots of conflict like
    :: binutils-multilib and binutils are in conflict. Remove binutils?
    :: gcc-libs-multilib and gcc-libs are in conflict. Remove gcc-libs?
    :: gcc-multilib and gcc are in conflict. Remove gcc?
    Can I do that safely ?
    So if I understand all the packages in multilib repo are to compile 32 packages in 64 bit system. I don't need to do it now so maybe I can just remove these packages...
    Last edited by martvefun (2011-05-22 09:23:33)

  • Libx32-glibc won't install due to gcc-multilib-x32 dependency

    I'm trying to install the libx32-glibc package (https://aur.archlinux.org/packages/libx32-glibc/) which does not list any dependencies on the package web page. However, when I try to install it, it shows this message:
    ==> Making package: libx32-glibc 2.17_5-1 (****)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Installing missing dependencies...
    [sudo] password for ****:
    error: target not found: gcc-multilib-x32>=4.7
    ==> ERROR: 'pacman' failed to install missing dependencies.
    I need libx32-glibc to install gcc-multilib-x32 which gives this message when trying to install:
    $ makepkg -s
    ==> Making package: gcc-multilib-x32 4.8.0_3-1 (****)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Installing missing dependencies...
    [sudo] password for ****:
    error: target not found: libx32-glibc>=2.17
    ==> ERROR: 'pacman' failed to install missing dependencies.
    How can I get gcc-multilib-x32 to install? I tried removing the dependency check in the PKGBUILD but that had other issues.

    The circular dependency was made intentionally, it is actually the same circular dependency you can find in the main repo: gcc -> gcc-libs -> glibc -> gcc (make). Because making glibc requires a valid gcc while gcc requires glibc to be functional.
    To build this, you actually need the packages glibc-x32-seed and gcc-x32-seed. Then you can build libx32-glibc to replace glibc-x32-seed, then eventually gcc-multilib-x32 to replace gcc-x32-seed.
    There're more information about this in this thread and this blog post in Chinese.

  • Safe to replace gcc with gcc-multilib?

    It seems to me that every single useful package requires that I replace gcc-libs with gcc-libs-multilibs, binutils with binutils-multilib, and gcc with gcc-multilib, and it's frustrating. I'm trying to install pipelight in order to be able to do online schooling in Arch instead of having to switch to windows all the time, but I'm leery about replacing all these packages due to countless problems I've had with gcc-libs in the past. Is it safe to replace all these packages? Can't name any right now but there's been quite a few extremely useful packages that I won't install because it requires me to replace all these packages.
    EDIT: I'm sorry, correction, this doesn't happen with pipelight specifically. It happens when I try to install a dependency; wine-silverlight. Yaourt also tells me that it's an unsupported and potentially dangerous package, although I didn't see anything signifying that in the AUR. I'm starting to believe yaourt says this about every package.
    Last edited by xworld (2014-01-16 20:42:45)

    All AUR packages are unsupported, may be potentially dangerous and you should inspect the PKGBUILDs before using them to build and install packages.
    If you're using a 64-bit system and have to use multilib, you do install lib32-* or *-multilib packages, nothing wrong with that. Why do you think it's unsafe?
    xworld wrote:I'm leery about replacing all these packages due to countless problems I've had with gcc-libs in the past.
    Any examples?

  • Gcc multilib failed to update

    [root@log 09:35:04]$ pacman -Syu gcc-multilib
    :: Synchronizing package databases...
    local is up to date
    aur is up to date
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    warning: cannot resolve "glibc>=2.19", a dependency of "gcc-libs-multilib"
    warning: cannot resolve "gcc-libs-multilib=4.8.2-8", a dependency of "gcc-multilib"
    warning: cannot resolve "glibc>=2.19", a dependency of "gcc-libs-multilib"
    warning: cannot resolve "gcc-libs-multilib=4.8.2-8", a dependency of "gcc-multilib"
    warning: cannot resolve "gcc-multilib=4.8.2-8", a dependency of "gcc-go-multilib"
    warning: cannot resolve "glibc>=2.19", a dependency of "gcc-libs-multilib"
    :: The following packages cannot be upgraded due to unresolvable dependencies:
          gcc-multilib  gcc-go-multilib  gcc-libs-multilib
    :: Do you want to skip the above packages for this upgrade? [y/N] y
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: gcc-libs-multilib: requires lib32-gcc-libs=4.8.2-7

    Try using an up to date mirror or wait a bit. glibc has been recently updated and maybe the mirror you're using hasn't synced it yet.
    When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    It makes the code more readable and - in case of longer listings - more convenient to scroll through.

  • GCC Error [SOLVED]

    After a full update it seems the GCC has a problem
    this is the error I get :
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1/cc1: error while loading shared libraries: libcloog-isl.so.1: cannot open shared object file: No such file or directory
    gcc-libs-multilib 4.6.1-3
    gcc-multilib 4.6.1-3
    Thanks for your help
    Last edited by fzerorubigd (2011-08-27 15:44:28)

    just before update I was playing with anjuta and right after the update the IDE failed on compile a simple program up to now
    So its after the update but I don't know which package is the problem

  • Replace with gcc-multilib

    Morning Folks,
    My arch linux system runs very very well. Now I would like to use eagle, a CAD software to design circuit boards (PCBs).
    Eagle is available in the AUR: https://aur.archlinux.org/packages.php?ID=15941
    The last time (a year or two ago) I messed up my entire system by installing that package. Installing eagle from the AUR requires to install gcc-multilib, which somehow replaces the current, existing gcc.
    Is it safe to do that, or was I doing something wrong? I really really need my toolchain running like it does now.
    ~ Tectu

    As far as I know, multilib is just "the same gcc" but with it you cannot only build x86_64 code, but also 32-bit code, right?
    After installing gcc-multilib, I'll be still able to call    $ gcc   and build some 64-bit code like now? I ask because I work with cross compiling, and I don't want to mess things up again
    ~ Tectu
    Last edited by Tectu (2012-09-17 12:47:40)

  • Problem installing gcc-multilib

    Hi all,
    I am trying to install lib32-jpeg7 from AUR but I am getting
    an error that the system needs gcc-multilib.
    I then go to /etc/pacman.conf and add the following lines:
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    I then do pacman -Syy
    and that's what I get back
    error: failed retrieving file 'multilib.db' from ftp.archlinux.org : File unavailable (e.g., file not found, no access)
    What should I do?
    Thanks in advance

    I've downloaded the demo of sunblast
    http://www.sunblastthegame.com/download.php
    After I untar it on to my home folder
    it says this:
    [konos@archBox sunblast_demo_linux32]$ ./sunblastdemo
    ./sunblastdemo: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
    So I googled the library and found that it belongs to the lib32-libjpeg package which I tried to download with yaourt.
    Yaourt then complained that it needs gcc-multilib to build it and cancelled the operation!
    So.. I figured out that I have to manually install gcc-multilib first and then lib32-libjpeg with yaourt in order to make it work..!
    P.S. @Karol: I 've already installed the package you are suggesting
    Last edited by konos5 (2011-10-26 00:20:02)

  • Installing gcc-multilib after gcc installed.

    Hey there,
    I'm trying to install gcc-multilib on my 64 bit machine as I'm trying to compile some binaries for a 32 bit system so I'm trying to install the multilib version of gcc however when I go to install it it obviously conflicts with the gcc I currently have installed and in order to install it I'd need to remove gcc-libs which basically uninstalls a large majority of my system because everything relies on gcc-libs.
    Sorry if this is the wrong area I just don't really know what to do.
    Thanks

    Are you trying to remove gcc-libs manually rather than letting pacman do it as part of the transaction that replaces gcc with gcc-multilib? Because gcc-multilib should pull in gcc-libs-multilib which provides gcc-libs, so stuff depending on that should be fine.

Maybe you are looking for

  • Family Sharing, iTunes Account NOT Apple ID

    I'd like to turn on Family Sharing. However, it seems the only way to turn on Family Sharing is through my Apple ID on my iOS device Settings > iCloud > Family Sharing The issue I have is that my iTunes and App Store purchases are not using my Apple

  • Multiple Failures Related?

    Here's an oddity. Software Update--gets only 15% into action then freezes before finding anything. Disk Utility--searches forever, and can't even find the disks. Downloaded Security Updates and Java Updates--non compos mentis, get part way through, t

  • Mad Men - "Unable to process your request?"

    Purchased Mad Men Final Season 2 weeks ago - but when I click your link it ain't working. Come on Apple!!! Please fix!! Thank you.

  • [svn:fx-trunk] 8136: Adjustments to default size and padding for TextInput and TextArea skins.

    Revision: 8136 Author:   [email protected] Date:     2009-06-23 16:16:49 -0700 (Tue, 23 Jun 2009) Log Message: Adjustments to default size and padding for TextInput and TextArea skins. TextInput default with is big enough to hold 10 characters (it wi

  • Encoding file size for standard DVD too large - please advise

    Hi - I shot an 6-hour training session that went well.  I shot it at 1280 x 720.  For the web version it will be no problem, as I'll just export to F4V. But i'm having a difficult time figuring out the export settings for the DVD.  I know that the di