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

Bug 619578

Summary: sci-geosciences/mapserver-7.0.5 : CMake Error at mapscript/.../CMakeLists.txt:44 (install):
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED DUPLICATE    
Severity: normal CC: tb
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
CMakeError.log
CMakeOutput.log
emerge-history.txt
environment
etc.portage.tbz2
sci-geosciences:mapserver-7.0.5:20170523-223041.log
temp.tbz2

Description Toralf Förster gentoo-dev 2017-05-24 18:19:07 UTC
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at mapscript/python/CMakeLists.txt:44 (install):
  install FILES given no DESTINATION!



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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: desktop-gcc5_20170516-214204

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

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]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
Comment 1 Toralf Förster gentoo-dev 2017-05-24 18:19:10 UTC
Created attachment 474030 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-05-24 18:19:13 UTC
Created attachment 474032 [details]
CMakeError.log
Comment 3 Toralf Förster gentoo-dev 2017-05-24 18:19:17 UTC
Created attachment 474034 [details]
CMakeOutput.log
Comment 4 Toralf Förster gentoo-dev 2017-05-24 18:19:20 UTC
Created attachment 474036 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-05-24 18:19:23 UTC
Created attachment 474038 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-05-24 18:19:26 UTC
Created attachment 474040 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-05-24 18:19:30 UTC
Created attachment 474042 [details]
sci-geosciences:mapserver-7.0.5:20170523-223041.log
Comment 8 Toralf Förster gentoo-dev 2017-05-24 18:19:33 UTC
Created attachment 474044 [details]
temp.tbz2
Comment 9 Thomas Beutin 2019-01-25 15:40:53 UTC
Can you please try to disable python and check if this helps? It looks like a pyhton2/3 mismatch here. What is your default python version?
Comment 10 Thomas Beutin 2019-01-25 15:43:58 UTC
(In reply to Thomas Beutin from comment #9)

> [...]What is your default python version?

Sorry for that question - i found the answer in your bug description.

Can you please check if it helps to set python2 as the preferred version?
Comment 11 Thomas Beutin 2019-01-28 13:33:26 UTC
I checked this on my machines - the real error is here:

> -- Found PythonInterp: /usr/bin/python (found version "3.4.6") 

so it uses python3, but...


>   File "<string>", line 1
>     from distutils.sysconfig import get_python_inc; print get_python_inc(True)
>                                                                        ^

... this is invalid in python3 - it's python2 only syntax, which ...


> SyntaxError: invalid syntax

... is stated here.

>   File "<string>", line 1
>     import sys; print sys.prefix
>                         ^
> SyntaxError: invalid syntax

The same here...


> -- Found PythonLibs: /usr/lib/libpython3.4m.so (found version "3.4.6") 
> CMake Deprecation Warning at /usr/share/cmake/Modules/UseSWIG.cmake:226 (message):
>   SWIG_ADD_MODULE is deprecated.  Use SWIG_ADD_LIBRARY instead.
> Call Stack (most recent call first):
>   mapscript/python/CMakeLists.txt:32 (SWIG_ADD_MODULE)
> 
> 
>   File "<string>", line 1
>     from distutils.sysconfig import get_python_lib; print get_python_lib(True)
>                                                                        ^
> SyntaxError: invalid syntax

... and here.

I hope this helps to fix this.
Comment 12 Toralf Förster gentoo-dev 2019-06-28 18:08:54 UTC

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