ad-freiburg / loom

Software suite for the automated generation of geographically correct or schematic transit maps.
GNU General Public License v3.0
132 stars 12 forks source link

Error when make -j #10

Closed yan-map closed 6 months ago

yan-map commented 10 months ago
src/transitmap/output/protobuf/CMakeFiles/proto.dir/build.make:73: *** target pattern contains no '%'. Stop.
make[1]: *** [CMakeFiles/Makefile2:668: src/transitmap/output/protobuf/CMakeFiles/proto.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  3%] Built target dot_dep
[ 13%] Built target shared_dep
[ 30%] Built target util
[ 32%] Built target loom_dep
make: *** [Makefile:146: all] Error 2
patrickbr commented 10 months ago

Which OS / version do you have? How exactly did you prepare the build environment (cmake ..?). What is your cmake and make version?

yan-map commented 10 months ago

Which OS / version do you have? How exactly did you prepare the build environment (cmake ..?). What is your cmake and make version?

Ubuntu 20.04.6 LTS Cmake 3.27.8 GNU Make 4.2.1 gcc 9.4.0

I've used cmake .. and then tried make -jand make install

Unfortunately, the Docker method is not suitable when using gtfs2graph: an error occurs: Cannot read from ZIP file, was compiled without libzip

patrickbr commented 10 months ago

That is strange, because we build on Ubuntu 20.04 with Github actions, and everything works smoothly there (https://github.com/ad-freiburg/loom/actions/runs/6548744759/job/17784104184).

As the error seems to be related to libprotobuf, I just tried compiling without it, but that also worked without problems.

After cmake .., could you post the full contents of build/src/transitmap/output/protobuf/CMakeFiles/proto.dir/build.make here?

Regarding the Docker method: indeed, the Docker container is currently build without ZIP-support. You have to extract the GTFS zip into a directory and give that directory as a GTFS input path.

I will fix the Dockerfile ASAP to also include the optional dependencies libzip and libprotobuf-dev.

patrickbr commented 10 months ago

libzip and libprotobuf-dev are now installed in the Dockerfile. Note, however, that you cannot give the ZIP path directly to the interactive Docker run command, as Docker has no access to this file inside the container. You have to mount some path inside the Container to achieve that.

hydraseek-pauseai commented 3 weeks ago

I'm also getting the exact same error originally mentioned in this thread. I've been trying a million different things to try and get it to work, and it's compiled successfully once, but I have no idea why. It seems to have something to do with the C compiler? Help would be appreciated. Thanks!

src/transitmap/output/protobuf/CMakeFiles/proto.dir/build.make:73: *** target pattern contains no '%'. Stop. make[1]: *** [CMakeFiles/Makefile2:668: src/transitmap/output/protobuf/CMakeFiles/proto.dir/all] Error 2