Summary: | sci-libs/avogadrolibs-0.8.0 : CMake Error at avogadro/.../CMakeLists.txt:5 (include_directories): | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Chemistry-Related Packages <sci-chemistry> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kredba, yamadharma |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=619544 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
CMakeOutput.log
emerge-history.txt environment sci-libs:avogadrolibs-0.8.0:20160712-164007.log fixes avogadrolibbs-0.8.0 & 0.9.0 to compile with gcc-6 & gcc-7 |
Description
Toralf Förster
![]() Created attachment 440496 [details]
CMakeOutput.log
Created attachment 440498 [details]
emerge-history.txt
Created attachment 440500 [details]
environment
Created attachment 440502 [details]
sci-libs:avogadrolibs-0.8.0:20160712-164007.log
Created attachment 474364 [details, diff]
fixes avogadrolibbs-0.8.0 & 0.9.0 to compile with gcc-6 & gcc-7
fixes a cmake file to compile with gcc-6 and gcc-7
This patch fixes the build of avogadrolibs, I think both 0.8.0 and 0.9.0 versions. However there is a problem with the cmake refering to /usr/lib64/libjson.a and /usr/lib64/libjsoncpp.a
The/usr/lib64/libjson.a problem may be fixed by making a link to it from libjson-c.a
The /usr/lib64/libjsoncpp.a problem may be fixed by deleting the line -DBUILD_STATIC_LIBS=OFF in jsoncpp-1.8.0.build
Then also avogadro2 will build
See also bug 619544. As I said there: The code should use CMAKE_C_COMPILER_VERSION or CMAKE_CXX_COMPILER_VERSION (depending on the language here) instead. These variables are determined by CMake itself and are available since CMake 2.8.10. No need to parse anything from the compiler. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a80747f1a93efa92be9944ba77feafd4650c7ea commit 9a80747f1a93efa92be9944ba77feafd4650c7ea Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-04-07 19:01:22 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-04-08 09:53:52 +0000 sci-libs/avogadrolibs: Add 1.91.0_p20180406 snapshot Closes: https://bugs.gentoo.org/645248 Closes: https://bugs.gentoo.org/649862 Closes: https://bugs.gentoo.org/588706 Closes: https://bugs.gentoo.org/577214 Package-Manager: Portage-2.3.28, Repoman-2.3.9 sci-libs/avogadrolibs/Manifest | 1 + .../avogadrolibs-1.91.0_pre20180406.ebuild | 71 ++++++++++++++++++++++ ...gadrolibs-1.91.0_pre20180406-underlinking.patch | 18 ++++++ sci-libs/avogadrolibs/metadata.xml | 3 +- 4 files changed, 92 insertions(+), 1 deletion(-) |