Re: libc++ on Fedora 25 broken?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That is what worries me actually. Apparently libc++abi has to be linked to libc++ but that is not the case with current package:

ldd /usr/lib64/libc++.so
    linux-vdso.so.1 (0x00007ffe1c7d8000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f09d5072000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f09d4cac000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f09d49a3000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f09d479b000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f09d4584000)
    /lib64/ld-linux-x86-64.so.2 (0x000055b90043d000)


I am not a pro in C++, compilers and linkers so perhaps someone with more knowledge can explain how this is supposed to work in the first place.

I also cannot find libc++abi or libcxx-abi in the repo unless it is "cleverly" named as something else.

Perhaps also relavant: https://whatofhow.wordpress.com/2016/03/01/libclibcabi-on-linux/


stan je 18. 01. 2017 ob 23:17 napisal:
On Wed, 18 Jan 2017 21:21:17 +0100
cen <imbacen@xxxxxxxxx> wrote:

Trying to compile a hello world cpp on Fedora 25 with clang++ and
libc++.

sudo dnf install clang libcxx-devel

#include <iostream>
#include <string>

int main()
{
      std::string a = "abc";
      std::cout << a;
}

clang++ -stdlib=libc++ hello.cpp

This results in a bunch of linker errors. What am I missing?
Tried, got many linker errors.  Searched on cxa_end_catch, and found
this page.  Might get you closer.
http://stackoverflow.com/questions/7016730/compiling-with-clang-using-libc-undefined-references

Didn't track down the package for -lc++abi, left as an exercise for the
reader.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux