Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 616962

Summary: sci-chemistry/avogadro2-0.9.0 : CMake Error at /.../AvogadroLibsTargets.cmake:205 (message):
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Chemistry-Related Packages <sci-chemistry>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gentoo_bugs.nu_q5v, milan
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
CMakeOutput.log
emerge-history.txt
environment
etc.portage.tbz2
sci-chemistry:avogadro2-0.9.0:20170429-092113.log
temp.tbz2
fixes a cmake file to compile with gcc-6 and gcc-7

Description Toralf Förster gentoo-dev 2017-04-29 09:35:39 UTC
-- Found Git: /usr/bin/git (found version "2.12.2") 
-- Could not use git to determine source version, using version 0.9.0
CMake Error at /usr/lib64/cmake/avogadrolibs/AvogadroLibsTargets.cmake:205 (message):
  The imported target "jsoncpp" references the file

     "/usr/lib64/libjsoncpp.a"

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: plasma-systemd_20170420-191853

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.9 [icedtea-7]
2)	IcedTea JDK 7.2.6.9 [icedtea-bin-7]
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
4)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8  system-vm
  [4]   jamvm
Comment 1 Toralf Förster gentoo-dev 2017-04-29 09:35:42 UTC
Created attachment 471256 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-04-29 09:35:45 UTC
Created attachment 471258 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2017-04-29 09:35:50 UTC
Created attachment 471260 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-04-29 09:35:53 UTC
Created attachment 471262 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-04-29 09:35:55 UTC
Created attachment 471264 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-04-29 09:35:59 UTC
Created attachment 471266 [details]
sci-chemistry:avogadro2-0.9.0:20170429-092113.log
Comment 7 Toralf Förster gentoo-dev 2017-04-29 09:36:02 UTC
Created attachment 471268 [details]
temp.tbz2
Comment 8 milan hodoscek 2017-05-26 12:30:57 UTC
Created attachment 474360 [details, diff]
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 refereing for /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
Comment 9 milan hodoscek 2017-05-31 13:49:32 UTC
The text in comment #8 actually belongs to the bug (is copied from there) Bug #588706  (avogadrolibs bug) but fixes also the problem for the avogadro2 so I left it here.
Comment 10 Andreas Sturmlechner gentoo-dev 2018-03-04 12:33:28 UTC

*** This bug has been marked as a duplicate of bug 624242 ***