Opened 6 years ago

Last modified 2 years ago

#57983 assigned defect

mapnik @3.0.22: ValueError: invalid literal for int() with base 10: ''

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: stromnov (Andrey Stromnov), cooljeanius (Eric Gallager)
Port: mapnik

Description

mapnik doesn't seem to want to build on Mountain Lion or earlier:

scons: Reading SConscript files ...

Welcome to Mapnik...

Configuring build environment...
Configuring on Darwin in *release mode*...
Checking for freetype-config... yes
Checking for dlfcn.h support ... yes
Checking if compiler (/opt/local/bin/clang++-mp-5.0) supports -std=c++11 flag... (cached) yes
Checking for C library z... yes
Checking for C++ library icuuc... yes
Checking for ICU version >= 4.2... (cached) Checking for C++ library harfbuzz... yes
Checking for HarfBuzz version >= 0.9.34... Checking for HarfBuzz with freetype support
(cached) no
Searching for boost libs and headers... (cached) 
Found boost libs: /opt/local/lib
Found boost headers: /opt/local/include
Found boost lib name extension: -mt
Checking for C++ header file boost/version.hpp... yes
Checking for Boost version >= 1.47... yes
Found boost lib version... 
Checking for C++ library boost_system-mt... yes
Checking for C++ library boost_filesystem-mt... yes
Checking for C++ library boost_regex-mt... yes
Checking for C++ library boost_program_options-mt... yes
ValueError: invalid literal for int() with base 10: '':
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_mapnik/mapnik/work/mapnik-v3.0.22/SConstruct", line 1576:
    boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')]
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_mapnik/mapnik/work/mapnik-v3.0.22" && /usr/bin/python scons/scons.py configure CXX="/opt/local/bin/clang++-mp-5.0" CC="/opt/local/bin/clang-mp-5.0" CUSTOM_CXXFLAGS="-Os -stdlib=macports-libstdc++" CUSTOM_CFLAGS="-Os" CUSTOM_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names" PREFIX=/opt/local DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_mapnik/mapnik/work/destroot CAIRO=False CPP_TESTS=False FREETYPE_CONFIG=/opt/local/bin/freetype-config PROJ_INCLUDES=/opt/local/lib/proj49/include PROJ_LIBS=/opt/local/lib/proj49/lib BOOST_INCLUDES=/opt/local/include BOOST_LIBS=/opt/local/lib ICU_INCLUDES=/opt/local/include ICU_LIBS=/opt/local/lib PNG_INCLUDES=/opt/local/include PNG_LIBS=/opt/local/lib JPEG_INCLUDES=/opt/local/include JPEG_LIBS=/opt/local/lib TIFF_INCLUDES=/opt/local/include TIFF_LIBS=/opt/local/lib CAIRO_INCLUDES=/opt/local/include CAIRO_LIBS=/opt/local/lib SQLITE_INCLUDES=/opt/local/include SQLITE_LIBS=/opt/local/lib HB_INCLUDES=/opt/local/include HB_LIBS=/opt/local/lib WEBP_INCLUDES=/opt/local/include WEBP_LIBS=/opt/local/lib INPUT_PLUGINS=shape,csv,raster,geojson,topojson 
Exit code: 2

Change History (2)

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

The above was on 10.7. This is on 10.6:

scons: *** SCons version 3.0.1 does not run under Python version 2.6.1.
Python < 3.5 is not yet supported.
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_mapnik/mapnik/work/mapnik-v3.0.22" && /usr/bin/python scons/scons.py configure CXX="/opt/local/bin/clang++-mp-5.0" CC="/opt/local/bin/clang-mp-5.0" CUSTOM_CXXFLAGS="-Os -stdlib=macports-libstdc++" CUSTOM_CFLAGS="-Os" CUSTOM_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names" PREFIX=/opt/local DESTDIR=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_mapnik/mapnik/work/destroot CAIRO=False CPP_TESTS=False FREETYPE_CONFIG=/opt/local/bin/freetype-config PROJ_INCLUDES=/opt/local/lib/proj49/include PROJ_LIBS=/opt/local/lib/proj49/lib BOOST_INCLUDES=/opt/local/include BOOST_LIBS=/opt/local/lib ICU_INCLUDES=/opt/local/include ICU_LIBS=/opt/local/lib PNG_INCLUDES=/opt/local/include PNG_LIBS=/opt/local/lib JPEG_INCLUDES=/opt/local/include JPEG_LIBS=/opt/local/lib TIFF_INCLUDES=/opt/local/include TIFF_LIBS=/opt/local/lib CAIRO_INCLUDES=/opt/local/include CAIRO_LIBS=/opt/local/lib SQLITE_INCLUDES=/opt/local/include SQLITE_LIBS=/opt/local/lib HB_INCLUDES=/opt/local/include HB_LIBS=/opt/local/lib WEBP_INCLUDES=/opt/local/include WEBP_LIBS=/opt/local/lib INPUT_PLUGINS=shape,csv,raster,geojson,topojson 
Exit code: 1

comment:2 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.