Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619578 - sci-geosciences/mapserver-7.0.5 : CMake Error at mapscript/.../CMakeLists.txt:44 (install):
Summary: sci-geosciences/mapserver-7.0.5 : CMake Error at mapscript/.../CMakeLists.txt...
Status: RESOLVED DUPLICATE of bug 582332
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-24 18:19 UTC by Toralf Förster
Modified: 2019-06-28 18:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.99 KB, text/plain)
2017-05-24 18:19 UTC, Toralf Förster
Details
CMakeError.log (CMakeError.log,4.68 KB, text/plain)
2017-05-24 18:19 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,63.94 KB, text/plain)
2017-05-24 18:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,339.87 KB, text/plain)
2017-05-24 18:19 UTC, Toralf Förster
Details
environment (environment,246.10 KB, text/plain)
2017-05-24 18:19 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,34.41 KB, application/x-bzip)
2017-05-24 18:19 UTC, Toralf Förster
Details
sci-geosciences:mapserver-7.0.5:20170523-223041.log (sci-geosciences:mapserver-7.0.5:20170523-223041.log,9.01 KB, text/plain)
2017-05-24 18:19 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,53.18 KB, application/x-bzip)
2017-05-24 18:19 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***