Build problems with llvm-tblgen

Hi all,

when trying to build LLVM+Clang (r180247) on a BlueGene/Q, I get the following error message (multiple times):

llvm[3]: Building PPC.td code emitter with tblgen
llvm-tblgen: Unknown command line argument '-gen-emitter'. Try: '/homea/jjsc13/jjsc1301/.pool/.build/llvm_r180241/Release+Asserts/bin/llvm-tblgen -help'
llvm-tblgen: Did you mean '-mc-emitter'?

Has anyone encountered this yet? When I actually run the suggested command, I can see that indeed no -gen-emitter is listed among the options, but -mc-emitter is. However, there is one weird line (*):

    -print-records - Print all records to stdout (default)
    - - Generate machine code emitter (*)
    -gen-register-info - Generate registers and register classes info

It seems like the option is there, but somehow "invisible"… Any thoughts on how I can fix this? I didn't have this problem when I built a r15… release some time ago.

Michael

From: "Michael Schlottke" <m.schlottke@aia.rwth-aachen.de>
To: llvmdev@cs.uiuc.edu
Sent: Friday, April 26, 2013 12:58:14 AM
Subject: [LLVMdev] Build problems with llvm-tblgen

Hi all,

when trying to build LLVM+Clang (r180247) on a BlueGene/Q, I get the
following error message (multiple times):

llvm[3]: Building PPC.td code emitter with tblgen
llvm-tblgen: Unknown command line argument '-gen-emitter'. Try:
'/homea/jjsc13/jjsc1301/.pool/.build/llvm_r180241/Release+Asserts/bin/llvm-tblgen
-help'
llvm-tblgen: Did you mean '-mc-emitter'?

Do you have a clean build directory? As you're building a Release+Asserts variant, you'll need to run: make ENABLE_OPTIMIZED=1 clean

-Hal