tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Docker build fails during make

Open skylarmt opened this issue 7 years ago • 3 comments

Step 7/9 : RUN make
 ---> Running in 5a1a716bb109
g++ -O3 -Wall -Wno-unknown-pragmas -Wno-sign-compare -std=c++11 -pthread  -o src/pbf_blocks.o -c src/pbf_blocks.cpp -I/usr/local/include -isystem ./include -I./src -I/usr/local/include/lua5.1 -I/usr/include/lua5.1
In file included from /include/pbf_blocks.h:11:0,
                 from src/pbf_blocks.cpp:1:
/include/osmformat.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^
/include/osmformat.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^
/include/osmformat.pb.h:14:2: error: #error your headers.
 #error your headers.
  ^
/include/osmformat.pb.h:22:35: fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
Makefile:13: recipe for target 'src/pbf_blocks.o' failed
make: *** [src/pbf_blocks.o] Error 1
The command '/bin/sh -c make' returned a non-zero code: 2

skylarmt avatar Feb 24 '19 01:02 skylarmt

hello @skylarmt I am facing same challenge were you able to fix it? everything runs fine on my fedora 28 but that machine has less system resources so conversion of a small country pbf to mbtiles takes lot of time to complete. so I decided to do so on a server running docker but this is preventing me from continuing. I will most likely create a docker image based on fedora as I am not an ubuntu dude

rexfordnyrk avatar Mar 18 '19 09:03 rexfordnyrk

20 years ago, one of my friend told me to take time to carefully read logs before complaining. I've kept his advice in mind... 😀

-> google/protobuf/arena.h: No such file or directory Did you try to add it in your system ?

clement-igonet avatar Nov 09 '19 15:11 clement-igonet

Well I resolved this long time ago, I forgot how tho.

rexfordnyrk avatar Nov 22 '19 12:11 rexfordnyrk