Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scons: building terminated because of errors. #950

Closed
cschissler opened this issue Nov 14, 2011 · 20 comments
Closed

scons: building terminated because of errors. #950

cschissler opened this issue Nov 14, 2011 · 20 comments

Comments

@cschissler
Copy link

Hello, I am installing mapnik2 on ubuntu os. I am getting the following error after "sudo python scons/scons.py install". Please advise...


You are compiling Mapnik trunk (aka Mapnik2)
See important details at:
http://trac.mapnik.org/wiki/Mapnik2


Notice: dependencies not met for plugin 'occi', not building...
Notice: dependencies not met for plugin 'rasterlite', not building...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/mapped_memory_cache.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 -DNDEBUG -DHAVE_CAIRO -fPIC -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -Iagg/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 src/mapped_memory_cache.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:34,
from src/mapped_memory_cache.cpp:26:
/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15: error: reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [src/mapped_memory_cache.os] Error 1
scons: building terminated because of errors.

@springmeyer
Copy link
Member

@cschissler - hmm, never seen this before and I compile all the time on ubuntu. Something must be unique about your setup. Can you describe in detail how you installed boost and what version you have of boost, ubuntu, etc?

Also, paste the output of:

g++ --version

@cschissler
Copy link
Author

Thanks for getting back to me Dane. I am going to start out with a new clean instance of ubuntu on another vbox. I'll see how that goes and if I get the same issue I will report back asap.

@springmeyer
Copy link
Member

@cschissler - ideally we should figure out why this is happening, right? I'm not proposing your system is messed up, rather there is something about it triggering this error and we should get to the bottom of it. Otherwise you'll likely just run into it again. So, can you please respond to my questions above?

@springmeyer springmeyer reopened this Nov 14, 2011
@cschissler
Copy link
Author

Hi Dane,

I went through the following method for installing on Ubuntu 10.4

sudo apt-get install
g++
libboost-filesystem1.42-dev
libboost-iostreams1.42-dev
libboost-program-options1.42-dev
libboost-python1.42-dev
libboost-regex1.42-dev
libboost-system1.42-dev
libboost-thread1.42-dev
python-dev
libxml2
libxml2-dev
libfreetype6
libfreetype6-dev
libjpeg62
libjpeg62-dev
libpng12-0 - includes zlib
libpng12-dev
libgeotiff-dev
libtiff4
libtiff4-dev
libtiffxx0c2
ttf-unifont
ttf-dejavu
ttf-dejavu-core
ttf-dejavu-extra
libicu-dev
build-essential
python-nose
libltdl7
libltdl-dev
libgdal1-1.6.0
libgdal1-dev - includes libpq5
python-gdal

sudo apt-get install curl
curl http://download.berlios.de/mapnik/mapnik-2.0.0.tar.bz2 > mapnik-2.0.0.tar.bz2
bzip2 -d mapnik-2.0.0.tar.bz2
tar xvf mapnik-2.0.0.tar

cd mapnik-2.0.0
python scons/scons.py configure INPUT_PLUGINS=all OPTIMIZATION=3 SYSTEM_FONTS=/usr/share/fonts
python scons/scons.py
sudo python scons/scons.py install

I am still re-installing on a clean machine since I really went a little bonkers with aptitude install....But of course if you see some problem with the above process I will use the correction on the new instance.

@springmeyer
Copy link
Member

Ubuntu 10.4? Interesting. This is likely a boost/compiler bug, so try doing:

sudo apt-get update
sudo apt-get upgrade

Also, it will not make a difference but you should be pulling mapnik from https://github.com/mapnik/mapnik.

@cschissler
Copy link
Author

Hi Dane, I am running Ubuntu 11.10., sorry I had that wrong. I performed the update and upgrade commands. Unfortunately I am still getting the same error:

"reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [src/mapped_memory_cache.os] Error 1
scons: building terminated because of errors."

I also noticed the following error occurred beforehand when configuring the input_plugins

Notice: dependencies not met for plugin 'occi', not building...
Notice: dependencies not met for plugin 'rasterlite', not building...

Do you think the above has something to do with it?

@springmeyer
Copy link
Member

try uninstalling libboost 1.42 (apt get remove), and re-installing libboost 1.46 (which is also available on 11.10).

@cschissler
Copy link
Author

I am going down the liboost list and resinstalling them with the 1.46 versions. I tried to uninstalling libboost-regex 1.42-dev and installing libboost-regex1.46-dev. Bellow are the return messages. Seems a bit suspect.

sudo apt-get install libboost-regex1.46-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-regex1.46-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libboost-regex1.42.0 libboost-program-options1.42.0 libboost-thread1.42.0
libboost-serialization1.42.0 libboost-date-time1.42.0
libboost-iostreams1.42.0 libboost-filesystem1.42.0 libboost-system1.42.0
libboost-python1.42.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
craig@craig-VirtualBox:$ sudo apt-get remove libboost-regex1.42-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libboost-regex1.42-dev is not installed, so not removed
The following packages were automatically installed and are no longer required:
libboost-regex1.42.0 libboost-program-options1.42.0 libboost-thread1.42.0
libboost-serialization1.42.0 libboost-date-time1.42.0
libboost-iostreams1.42.0 libboost-filesystem1.42.0 libboost-system1.42.0
libboost-python1.42.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
craig@craig-VirtualBox:
$ sudo apt-get install libboost-regex1.46-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-regex1.46-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libboost-regex1.42.0 libboost-program-options1.42.0 libboost-thread1.42.0
libboost-serialization1.42.0 libboost-date-time1.42.0
libboost-iostreams1.42.0 libboost-filesystem1.42.0 libboost-system1.42.0
libboost-python1.42.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@springmeyer
Copy link
Member

so remove them with apt-get autoremove then try compiling mapnik again.

@cschissler
Copy link
Author

Thank you Dane! I was able to compile and import the mapnik2 module in python=)

Just fyi, I still got the following notices when with the compile:

Notice: dependencies not met for plugin 'occi', not building...
Notice: dependencies not met for plugin 'rasterlite', not building...

Thanks again!

Craig

@springmeyer
Copy link
Member

those notices are not a problem. cheers.

springmeyer pushed a commit that referenced this issue Jan 9, 2012
springmeyer pushed a commit that referenced this issue Jan 9, 2012
@gravitystorm
Copy link

Just for posterity, I too ran into this problem. I've got many machines running 11.04 working fine with 1.42, but not my new one with 11.10 on it. So I suspect either the libboost1.42 packages have changed, or a different g++ version between 11.04 and 11.10 has exposed this issue.

g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1

If there's going to be a 2.0.1 release, it might be worth backporting the compiler error patch to it?

@springmeyer
Copy link
Member

@gravitystorm thanks for the followup - ya this was a tricky one to track down.

Yes, there will be a 2.0.1 tag, and great call on backporting. Working on a patch right now.

springmeyer pushed a commit that referenced this issue Feb 14, 2012
springmeyer pushed a commit that referenced this issue Feb 15, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
@vanschelven
Copy link

I'm still running into this issue after a removal of libboost-python1.42.0, reinstalling 1.46.0, reconfiguring and calling python scons/scons.py

Ubuntu 11.10

@Dmitry1987
Copy link

Hello, I am sorry if this is a wrong 'issue page' to ask, but google brought me here after I searched:

scons: *** [bindings/python/mapnik_geometry.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

I have installed boost_1_56, and all other libs I found related (from guides of others).

./configure of mapnik shows: All Required dependencies found!

then on "make" it starts with:

scons: warning: Support for pre-2.7.0 Python version (2.6.6) is deprecated.
File "scons/scons.py", line 192, in
scons: Building targets ... [ ====> and here goes "g++ bla bla bla....." a lot <=====]
..................=====> and stops with <=== ............
scons: *** [bindings/python/mapnik_geometry.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

what can be wrong? I installed python 2.7 with "make & make altinstall" as guided somewhere. but it didn't help.

Thank you!

@Dmitry1987
Copy link

Also, something tells me this lines will explain where is the problem (......no matching function for call to ‘eval(const boost........): so i guess it has something to do with boost library?

include/mapnik/util/geometry_to_svg.hpp:42: instantiated from here
/usr/local/include/boost/phoenix/statement/if.hpp:62: error: no matching function for call to ‘eval(const boost::phoenix::actor<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::assign, boost::proto::argsns_::list2<boost::proto::exprns_::expr<boost::proto::tagns_::tag::terminal, boost::proto::argsns_::term<boost::spirit::argument<0> >, 0l>,

@VigneshwaranRM
Copy link

Hi,

I'm Getting this error while building with with scon.. Could someone help me to resolve this ?

~/SandBox$ scons
scons: Reading SConscript files ...

scons: warning: Ignoring missing SConscript 'controller/SConscript'
File "/home/vigneshwaran/SandBox/SConstruct", line 16, in

scons: warning: Ignoring missing SConscript 'build/noarch/nova_contrail_vif/SConscript'
File "/home/vigneshwaran/SandBox/SConstruct", line 19, in

scons: warning: Ignoring missing SConscript 'build/noarch/neutron_plugin/SConscript'
File "/home/vigneshwaran/SandBox/SConstruct", line 26, in
scons: done reading SConscript files.
scons: Building targets ...
o build/debug/tools/sandesh/compiler/main.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/main.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/sandeshy.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include build/debug/tools/sandesh/compiler/sandeshy.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/sandeshl.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include build/debug/tools/sandesh/compiler/sandeshl.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/generate/t_cpp_generator.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/generate/t_cpp_generator.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/generate/t_html_generator.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/generate/t_html_generator.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/generate/t_generator.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/generate/t_generator.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/generate/t_xsd_generator.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/generate/t_xsd_generator.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/generate/t_c_generator.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/generate/t_c_generator.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/generate/t_py_generator.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/generate/t_py_generator.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/parse/parse.o -c -g -O0 -DDEBUG -DSANDESH -Itools/sandesh/compiler -Ibuild/include tools/sandesh/compiler/parse/parse.cc
sh: 1: o: not found
o build/debug/tools/sandesh/compiler/sandesh -g build/debug/tools/sandesh/compiler/main.o build/debug/tools/sandesh/compiler/md5.o build/debug/tools/sandesh/compiler/sandeshy.o build/debug/tools/sandesh/compiler/sandeshl.o build/debug/tools/sandesh/compiler/generate/t_cpp_generator.o build/debug/tools/sandesh/compiler/generate/t_html_generator.o build/debug/tools/sandesh/compiler/generate/t_generator.o build/debug/tools/sandesh/compiler/generate/t_xsd_generator.o build/debug/tools/sandesh/compiler/generate/t_c_generator.o build/debug/tools/sandesh/compiler/generate/t_py_generator.o build/debug/tools/sandesh/compiler/parse/parse.o
sh: 1: o: not found
Install file: "build/debug/tools/sandesh/compiler/sandesh" as "build/bin/sandesh"
scons: *** [build/bin/sandesh] build/debug/tools/sandesh/compiler/sandesh: No such file or directory
scons: building terminated because of errors.

@springmeyer
Copy link
Member

@VigneshwaranRM it does not look like you are trying to build Mapnik. Mapnik uses scons but your problem does not look like a problem with Mapnik. So you should contact the author of the software you are trying to build. The issues appears to be related to the compiler not being set.

@VigneshwaranRM
Copy link

Hi Springmeyer,

I resolved those errors and successfully build the system. Thanks.

I done this build for opencontrail. Now I need to know how to proceed further for installing and accessing Opencontrail GUI. If you know please let me know.

Thank you

@avirupd-egnaroinc
Copy link

Hi Springmeyer,

git clone git://github.com/mapnik/mapnik
cd mapnik
git branch 2.2 origin/2.2.x
git checkout 2.2
python scons/scons.py configure INPUT_PLUGINS=all OPTIMIZATION=3 SYSTEM_FONTS=/usr/share/fonts/truetype/
sudo make install

After this I am getting scons: building terminated because of errors.
make: *** [install] Error 2

I have tried to solve this by using sudo apt-get upgrade, sudo apt-get autoremove
But this does not help. Still getting the same error. Please help me with this.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants