libstdc++
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Jan 2007
    Posts
    11
    Linux (Fedora) Firefox 61.0

    libstdc++

    Trying to move to Fedora 28 and when compiling a system it needs libstdc++. Using Installing the f28 version it fails with

    Error: Transaction check error:
    file /usr/share/gcc-8/python/libstdcxx/v6/__pycache__/printers.cpython-36.opt-1.pyc from install of libstdc++-8.0.1-0.20.fc28.i686 conflicts with file from package libstdc++-8.1.1-5.fc28.x86_64
    file /usr/share/gcc-8/python/libstdcxx/v6/__pycache__/printers.cpython-36.pyc from install of libstdc++-8.0.1-0.20.fc28.i686 conflicts with file from package libstdc++-8.1.1-5.fc28.x86_64
    .....................

    What to do? Thanks, Paul

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,782
    Linux Chrome 68.0.3440.84

    Re: libstdc++

    It is a 32 bit versus 64 package problem. If you already have the libstdc++-8.0.1-0.20.fc28.i686 (32 bit) package installed, then remove it first. If the 32 bit package is not installed but is trying to install along with the 64 bit package, then use dnf to specify specifically to install the 64 bit version.
    Code:
    # dnf install libstdc++.x86_64
    If the above still tries to install both the 32 bit and 64 bit versions, then try,
    Code:
    # dnf --exclude=*.i686 install libstdc++.x86_64

  3. #3
    Join Date
    Aug 2018
    Location
    NY
    Posts
    3
    Linux (Fedora) Firefox 57.0

    Re: libstdc++

    I had these problem a couple of days ago and it was a real pain to solve. Fedora shouldn't create these problems for their users since it pretty much caused by its own official updates.

  4. #4
    Join Date
    Jan 2007
    Posts
    11
    Linux (Fedora) Firefox 61.0

    Re: libstdc++

    The file is installed

    sudo dnf install libstdc++.x86_64
    [sudo] password for pat:
    Last metadata expiration check: 0:13:57 ago on Thu 09 Aug 2018 04:08:45
    PM CDT.
    Package libstdc++-8.1.1-5.fc28.x86_64 is already installed, skipping.
    Dependencies resolved.
    Nothing to do.
    Complete!

    Here is the build command specifying 32 bit

    g++ -Wall -m32 -ggdb -D ENABLE_COMM_DUMPS -I ./ -I /usr/include/libxml2
    -O1 Server.o Main.o
    . . . . . . .

    but the link fails

    /usr/bin/ld: skipping incompatible
    /usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.so when searching for -lstdc++
    /usr/bin/ld: cannot find -lstdc++
    collect2: error: ld returned 1 exit status

    Thanks for your help.

    Paul

  5. #5
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,782
    Linux Chrome 68.0.3440.84

    Re: libstdc++

    If you are running a 64 bit system then you need to compile your driver as 64 bit, not 32 bit. It is very possible the config scripting is looking for -lstdc++ in /usr/lib/...., which in Fedora is for 32 bit libraries. Fedora uses /usr/lib64/... for 64 bit libraries.
    Code:
    $ locate stdc++
    /usr/lib64/libstdc++.so.6
    /usr/lib64/libstdc++.so.6.0.25
    /usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.25-gdb.py
    /usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.25-gdb.pyc
    /usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.25-gdb.pyo
    /usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.25-gdb.cpython-36.opt-1.pyc
    /usr/share/gdb/auto-load/usr/lib64/__pycache__/libstdc++.so.6.0.25-gdb.cpython-36.pyc
    Possibly edit the configure script to not use "-m32" and change /lib/ to /lib64/ where applicable.

  6. #6
    Join Date
    Jan 2007
    Posts
    11
    Linux (Fedora) Firefox 61.0

    Re: libstdc++

    I need a 32 bit compile as a lot of our systems are running on older hardware. Thanks

  7. #7
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    73
    Posts
    23,565
    Linux (Fedora) Chrome 68.0.3440.106

    Re: libstdc++

    Paul's message ended up in our mail, rather than here, so I'll post it:

    The company I'm consulting with has a lot of systems in the
    field running SuSE SLED. SLED 15 was a disaster for me so thought I'd
    try Red Hat, but I've not been able to compile an application (see Using
    Fedora thread libstdc++). I need a 32 bit system as a lot of the systems
    are running on older computers.

    In summary the libstdc++ f28.x86_64 package is installed, The g++
    compile specifies m32, but the link can not find lstdc++.
    From the sounds of that, wouldn't he be better installing the 32 bit, i686 F28 version? https://getfedora.org/en/workstation/download/
    Linux & Beer - That TOTALLY Computes!
    Registered Linux User #362651


    Don't use any of my solutions on working computers or near small children.

  8. #8
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    710
    Linux (Ubuntu) Firefox 61.0

    Re: libstdc++

    Have you tried installing the i686 version of libstdc++ alongside the x86_64 version using dnf? I can see a x86_64 dnf install attempt above but not the i686 version.

  9. #9
    Join Date
    Jan 2007
    Posts
    11
    Linux (Fedora) Firefox 61.0

    Re: libstdc++

    HaydnH thanks.

  10. #10
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    710
    Linux (Fedora) Chrome 68.0.3440.75

    Re: libstdc++

    Quote Originally Posted by paulth
    HaydnH thanks.
    No worries, I assume that worked? Installing 32bit libraries on a 64bit OS for compiling purposes is usually just a case of installing the i686 version alongside and possibly the "-devel" i686 version for the header files.

  11. #11
    Join Date
    Jan 2007
    Posts
    11
    Linux (Fedora) Firefox 61.0

    Re: libstdc++

    Worked great.

Similar Threads

  1. Replies: 3
    Last Post: 5th November 2008, 03:37 AM
  2. libstdc++-
    By comptech520 in forum Using Fedora
    Replies: 11
    Last Post: 28th January 2008, 01:46 AM
  3. libstdc++.so.6
    By mike86 in forum Using Fedora
    Replies: 6
    Last Post: 7th February 2006, 01:42 PM
  4. Help with libstdc++
    By futureguy in forum Using Fedora
    Replies: 3
    Last Post: 21st November 2005, 08:35 AM
  5. libstdc++.so.2.8?
    By rlobrecht in forum Using Fedora
    Replies: 3
    Last Post: 8th September 2005, 04:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •