Re: gcc-c++ and libatomic -- link issues

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

 



On 12/02/19 10:55 +0100, Jakub Jelinek wrote:
On Tue, Feb 12, 2019 at 09:49:23AM +0000, Jonathan Wakely wrote:
On that basis, why does gcc-c++ install libgomp and libgfortran?

I think gcc-c++ doesn't require libgfortran, gcc-gfortran does.

Ah yes, sorry. I ran 'mock -r fedora-rawhide-x86_64 --install gcc-c++'
and saw it installing libgfortran, but actually it was already
installed (because of an earlier BuildRequires seen in the mock
chroot) and it was upgrading it because gcc-c++ was being upgraded.

The reason to have libgomp in the dependencies was that it is a library that
isn't explicitly used on the command line, while to link against libatomic
you need to specify -latomic and so, like for any other random library you
need to make sure that the library is installed, one doesn't need to specify
-lgomp, simply linking with -fopenmp needs that library.

OK, that's logical.

Though, I admit that the sanitizer libraries behave like libgomp, yet they
aren't required by default (on the other side, those are development
instrumentation libraries).

libatomic might be needed for some uses of std::atomic, but nothing in
ISO C++ requires OpenMP or Fortran.

	Jakub
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux