Questions tagged [ninja]

Ninja is a small build system with a focus on speed.

Ninja is a small build system with a focus on speed. It is designed to have its input files generated by a higher-level build system, and it is designed to run builds as fast as possible. Website: https://ninja-build.org/

614 questions
5
votes
0 answers

Clang build is extremely slow and hangs up in the middle

I am getting started with writing my own clang tools. These are the steps I have followed so far: Checked out llvm 7.0 release build Checked out clang 7.0 release build Built clang and llvm using ninja with following flags (It was hanging up on me…
Tehreem
  • 939
  • 2
  • 14
  • 31
5
votes
1 answer

How to remove Ninja's limit on parallel link jobs?

I was using Ninja 1.8.2 on Debian 9 to build llvm-6.0 using llvm-5.0. When I inspected the CPU usage of my system, I found the CPU is not 100% used, and there's plenty memory left. After checking the output of cmake, I found it limiting the…
JiaHao Xu
  • 2,452
  • 16
  • 31
5
votes
1 answer

How to set a global compile flag in gn so it'll appear in the ninja files?

How to add a things like -O2 or a custom -DSOMETHING so they appear in cflags and defines of the *.ninja files? Recompiling this: https://webrtc.org/native-code/development/ It has changed the build system. Now the first build step is: gn gen…
Velkan
  • 7,067
  • 6
  • 43
  • 87
5
votes
1 answer

CMake + Ninja build does not parallelize across libraries

We have a (C++) program that's set up as a series of shared libraries with a nested hierarchy. That is, libB.so uses functions from and thus links against libA.so, libC.so uses functions from and links against both libB.so and libA.so, etc. For…
R.M.
  • 3,461
  • 1
  • 21
  • 41
5
votes
0 answers

`ninja` with multiple `build.ninja` files?

I would like to launch multiple ninja builds simultaneously. Each build is in its own directory and has its own build.ninja file. I could just do the following: cd ninja & cd ninja & ... cd ninja ....but…
Kyle Strand
  • 15,941
  • 8
  • 72
  • 167
5
votes
1 answer

ninja: fatal: chdir to '/out/Release' - No such file or directory

i get source code (chrome) by $ glient sync ran all the command request : - gclient config ...... - GYP_GENERATORS ... - build/intall-build-desp....... - GYP_DEFINES.... - etc... but when i try to build chromedriver like this…
Lazhar
  • 61
  • 2
  • 5
4
votes
3 answers

FILE_INFO_BY_HANDLE_CLASS not found when compile v8 on windows

I am compiling v8 on win10 pro 20H2 build. I had already fetch the source code and used gn gen --ide=vs out\x64_proj command under v8\src directory to generate visual studio projects. there are some small problems during process above,such as env…
4
votes
0 answers

Unable to build using clang-cl, CMake, and Ninja from a terminal

There are plenty of questions and answers relating to this, but none of them have gotten me past my current problem. I can build using CMake/Ninja/clang-cl fine from within Visual Studio, but I want this to be done within a Github Action so I need…
cmannett85
  • 21,725
  • 8
  • 76
  • 119
4
votes
2 answers

Rebuilding 'build.ninja': subcommand failed

I'm trying to build my CMake project in Visual Studio 2019, but all of a sudden, after using this exact make file and setup for almost two weeks, it throws the error- rebuilding 'build.ninja': subcommand failed I didn't even know I was using ninja,…
GreenDiggy
  • 43
  • 1
  • 6
4
votes
1 answer

CMake /w Ninja generates build files but no executable

My first time attempt at CMake and I need some help CMake /w Ninja & clang++ generates build files but no executable /CMakeLists.txt cmake_minimum_required(VERSION 3.17) list(APPEND CMAKE_MODULE_PATH…
4
votes
2 answers

How can I set CMAKE_MAKE_PROGRAM to Ninja?

I'm a newbie to CMake and am trying to understand how to configure CMake to use Ninja as the build tool. The specific problem I'm having is I'm trying to install YouCompleteMe plugin for vim using their install.py. I get the following…
kovac
  • 4,945
  • 9
  • 47
  • 90
4
votes
1 answer

CMake invocation of GLSLC with respect to includes/dependencies

I'm using glslc to compile GLSL shaders with #includes (not part of the core spec IIRC but supported in shaderc, which is the engine behind glslc, distributed with the LunarG Vulkan SDK) into SPIR-V for Vulkan and GL 4.5. glslc emits gcc-style…
Alterscape
  • 1,526
  • 1
  • 17
  • 34
4
votes
2 answers

How to compile WebRTC properly with Visual Studio in debug?

I'm trying to compile WebRTC, but because we use a number of libraries, some of which are closed source and beyond our control, how it gets compiled is rather sensitive to match. I've already had to edit the build/config/win/BUILD.gn script to use…
4
votes
0 answers

'Cannot open program database' problem in Windows docker container

I use ninja as the build tool of cmake, ninja build parallelly. When build in the physical machine, it compiles without any problem, but in a Windows docker container, it reports: fatal error C1041: cannot open program database 'blabla.pdb'; if…
Xiaofeng
  • 532
  • 7
  • 22
4
votes
1 answer

AOSP ninja build stopped: subcommand failed

I got the following error when I try to build A7.1. [ 15% 1827/11495] target Package: framework-res ...bj/APPS/framework-res_intermediates/package.apk) warning: string 'candidates_style' has no default translation. warning: string…
busybong
  • 41
  • 1
  • 2