cpp-loader icon indicating copy to clipboard operation
cpp-loader copied to clipboard

Getting "warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]" when trying to install cpp-loader

Open AndreRulofs opened this issue 8 years ago • 4 comments

Not sure how to fix this. I have installed everything on the requirement list. Im on 16.04 Ubuntu

AndreRulofs avatar Sep 11 '17 16:09 AndreRulofs

It seems related to the following issue: https://stackoverflow.com/questions/41673546/clang-warning-warning-unknown-warning-option-wno-maybe-uninitialized

My guess is that you don't have emscripten in your path.

arcanis avatar Sep 12 '17 14:09 arcanis

Hm errata. Can you try editing node_modules/cpp-loader/package.json to replace the following line:

"install": "clang++ $(llvm-config --cxxflags --ldflags) ./traverse/traverse.cc -lclang -o traverse.bin"

by:

"install": "clang++ $(llvm-config --cxxflags --ldflags) -Wno-unknown-warning-option ./traverse/traverse.cc -lclang -o traverse.bin"

Then, while you're still in node_modules/cpp-loader, run npm install. Go back to your project, and run webpack again. I think it should work.

arcanis avatar Sep 12 '17 14:09 arcanis

Apparently that wasn the problem. That was just some dumb warning. This is what I get after trying to install it. https://imgur.com/a/QXrs3

AndreRulofs avatar Sep 13 '17 22:09 AndreRulofs

How do I even enable these errors? Ive tried everything. The only solution seemed to be to change common.gypi. But that does not seem to have any effect.

AndreRulofs avatar Sep 14 '17 18:09 AndreRulofs