[cfe-dev] svn update then make gives cc1 error: unrecognized command line option '-Wcovered-switch-default'

Joerg Sonnenberger joerg at britannica.bec.de
Sat Oct 6 06:12:40 PDT 2012


On Sat, Oct 06, 2012 at 04:59:43AM -0500, Larry Evans wrote:
> Finally finished the build, but got link error at maybe last step:
> 
> > make[4]: Entering directory `/home/evansl/download/llvm/svn/build/tools/clang/tools/driver'
> > llvm[4]: Compiling cc1_main.cpp for Debug+Asserts build
> > llvm[4]: Compiling cc1as_main.cpp for Debug+Asserts build
> > llvm[4]: Compiling driver.cpp for Debug+Asserts build
> > llvm[4]: Linking Debug+Asserts executable clang
> > clang: error: unable to execute command: Killed
> > clang: error: linker command failed due to signal (use -v to see invocation)
> > clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
> > clang: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
> > make[4]: *** [/home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang] Error 254
> > make[4]: Leaving directory `/home/evansl/download/llvm/svn/build/tools/clang/tools/driver'
> > make[3]: *** [all] Error 1
> > make[3]: Leaving directory `/home/evansl/download/llvm/svn/build/tools/clang/tools'
> > make[2]: *** [all] Error 1
> > make[2]: Leaving directory `/home/evansl/download/llvm/svn/build/tools/clang'
> > make[1]: *** [clang/.makeall] Error 2
> > make[1]: Leaving directory `/home/evansl/download/llvm/svn/build/tools'
> > make: *** [all] Error 1
> > ~/download/llvm/svn/build $ 
> 
> Maybe the problem is I'm using gcc and clang++, or maybe the last step
> is replacing the driver.exe using the driver.exe?

Or you are running out of memory. Especially for a debug build, it can
easily require 2GB or more.

Joerg



More information about the cfe-dev mailing list