llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.44k stars 12.17k forks source link

can't compile Mapnik #38387

Open llvmbot opened 6 years ago

llvmbot commented 6 years ago
Bugzilla Link 39039
Version 3.8
OS Linux
Reporter LLVM Bugzilla Contributor
CC @DimitryAndric

Extended Description

I'm working on Ubuntu 14.04 on an AWS EC2 box.

I'm trying to compile Mapnik following these instructions (except the second Clang install which tries to downgrade and causes other problems):

On the "make", it breaks on the command: clang++-3.8 -v -o src/renderer_common/render_group_symbolizer.os -c -std=c++14 -DU_USING_ICU_NAMESPACE=0 -D_GLIBCXX_USE_CXX11_ABI=0 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -pthread -ftemplate-depth-300 -Wsign-compare -Wno-unsequenced -Wtautological-compare -Wheader-hygiene -O3 -fPIC -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -DBIGINT -DBOOST_REGEX_HAS_ICU -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_WEBP -DHAVE_TIFF -DLINUX -DMAPNIK_THREADSAFE -DBOOST_SPIRIT_NO_PREDEFINED_TERMINALS=1 -DBOOST_PHOENIX_NO_PREDEFINED_TERMINALS=1 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DNDEBUG -DHAVE_CAIRO -DGRID_RENDERER -DSVG_RENDERER -Ideps -Ideps/mapbox/polylabel/include -Ideps/mapbox/protozero/include -Ideps/mapbox/geometry/include -Ideps/mapbox/variant/include -Ideps/agg/include -Iinclude -Imason_packages/.link/include -Imason_packages/.link/include/freetype2 -Imason_packages/.link/include/libpng16 -Imason_packages/linux-x86_64/libgdal/2.1.3/include -Imason_packages/.link/include/cairo -Imason_packages/.link/include/pixman-1 src/renderer_common/render_group_symbolizer.cpp

It says to file a bug report and attach two specified files, which I've done.

llvmbot commented 6 years ago

I can't attach the cpp file, because it's too large, even zipped up. I can uploading it somewhere later.

I was using 3.8, because that's what the Mapnik compilation instructions recommended. https://github.com/mapnik/mapnik/wiki/UbuntuInstallation

llvmbot commented 6 years ago

sh file Here is a zipped up version of the shell script that was supposed to come along

DimitryAndric commented 6 years ago

It seems the attachments didn't make it? Note that clang 3.8 is pretty old by now, and it is not likely there will be any updates, though you could apply a fix manually.