compile fails with trunk #1082

Closed
mediafactory opened this Issue Feb 14, 2012 · 13 comments

Projects

None yet

2 participants

@mediafactory

g++ -o plugins/input/ogr/ogr_index_featureset.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-300 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -fPIC -Ideps/agg/include -I. -Iinclude -I/usr/local/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql plugins/input/ogr/ogr_index_featureset.cpp
In file included from /usr/include/boost/interprocess/detail/utilities.hpp:29:0,
from /usr/include/boost/interprocess/mapped_region.hpp:20,
from include/mapnik/mapped_memory_cache.hpp:33,
from plugins/input/ogr/ogr_index_featureset.cpp:33:
/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15: error: reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [plugins/input/ogr/ogr_index_featureset.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

@springmeyer
Member

This should have been fixed in e9bb566. What mapnik version are you using? Are you able to pull from master?

@mediafactory

the error happens on master :-(

@springmeyer
Member

Can you paste here the output of:

g++ -version

and

cat /usr/include/boost/version.hpp
@mediafactory

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

// Boost version.hpp configuration header file ------------------------------//

// (C) Copyright John maddock 1999. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

// See http://www.boost.org/libs/config for documentation

#ifndef BOOST_VERSION_HPP
#define BOOST_VERSION_HPP

//
// Caution, this is the only boost header that is guarenteed
// to change with every boost release, including this header
// will cause a recompile every time a new boost version is
// released.
//
// BOOST_VERSION % 100 is the patch level
// BOOST_VERSION / 100 % 1000 is the minor version
// BOOST_VERSION / 100000 is the major version

#define BOOST_VERSION 104200

//
// BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
// but as a string in the form "x_y[_z]" where x is the major version
// number, y is the minor version number, and z is the patch level if not 0.
// This is used by <config/auto_link.hpp> to select which library version to link to.

#define BOOST_LIB_VERSION "1_42"

#endif

@springmeyer springmeyer pushed a commit that closed this issue Feb 14, 2012
Dane Springmeyer add permissive flag to ogr and shape plugins to work around boost int…
…erprocess compile bug - closes #1082 - refs #950 and #1001
e2d398f
@springmeyer
Member

okay, git pull and try again?

@mediafactory

no, now it stops:

g++ -o utils/shapeindex/shapeindex.o -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-300 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -Iplugins/input/shape -Ideps/agg/include -I. -Iinclude -I/usr/local/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql utils/shapeindex/shapeindex.cpp
In file included from /usr/include/boost/interprocess/detail/utilities.hpp:29:0,
from /usr/include/boost/interprocess/mapped_region.hpp:20,
from include/mapnik/mapped_memory_cache.hpp:33,
from plugins/input/shape/shapefile.hpp:33,
from utils/shapeindex/shapeindex.cpp:34:
/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15: error: reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [utils/shapeindex/shapeindex.o] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

@mediafactory

uuhh, same error, wait a second

@mediafactory

no, different (looked equal to me at first)...

@springmeyer
Member

that is a different spot, git pull and try again?

@mediafactory

hmm, git says, I am already up-to-date - is guthub delayed?

@springmeyer springmeyer pushed a commit that referenced this issue Feb 14, 2012
Dane Springmeyer yet another -fpermissive - refs #1082, #950 and #1001 c272835
@springmeyer
Member

try again.

@mediafactory

works, thx

@springmeyer springmeyer pushed a commit that referenced this issue Feb 15, 2012
Dane Springmeyer yet another -fpermissive - refs #1082, #950 and #1001 53e171c
@springmeyer
Member

note: also just backported (git cherry-pick'd) these to the 2.0.x branch.

@springmeyer springmeyer pushed a commit that referenced this issue Jan 27, 2014
Dane Springmeyer remove workaround for boost less than 1.46 since 1.47 is now the min …
…needed - refs #1082
777e067
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment