llvm-build: error: invalid target to enable: 'ABC' (not in project)

Hi,
I’m new to LLVM. I tried to build LLVM for an existing architecture (ARM) and it worked. Then I tried building it for a new architecture that I added (ABC) and I got this error

CMake Error at CMakeLists.txt:540 (message):

Unexpected failure executing llvm-build: Usage: llvm-build [options]

llvm-build: error: invalid target to enable: ‘ABC’ (not in project)

– Configuring incomplete, errors occurred!

Does anyone know what the problem is? I am using LLVM 3.9.0.

Thanks

Hassan Elmadi

PS: I’m using Ubuntu 18.04

Hassan Elmadi

That's a *very* old LLVM and you're unlikely to get much help with it.

It's hard to know with the limited information available but I'd guess
either ABC is not a directory under lib/Target or ABC is not listed in
lib/Target/LLVMBuild.txt.

                         -David

Hassan ELMADI via llvm-dev <llvm-dev@lists.llvm.org> writes: