Search code examples
chromium

Chromium rebuild error


After running command

ninja -C out\Default chrome

Got and errors:

    c:\src\chromium\src\base\strings\pattern.cc: 
        fatal error C1853: 'obj/base/base_cc.pch' header file is from a previous  of the compiler,  the precompiled header is C++ and you are using it from C (or vice versa)
            [11/1486] CXX obj/cc/paint/paint/precompile.cc.obj
            ninja: build stopped: subcommand failed.

Any idea how to fix?


Solution

  • I had the same issue, due to an upset of semi-installs. I solved it by doing a full clean of the build (and learning to use some ninja in the process).

    Run the following

    ninja -C out/Default -t clean
    

    and then rerun

    ninja -C out/Default Chrome
    

    Mine worked after this.