Build Error

Hi,

I’m trying to build Clang on Redhat Linux. I recevied the following error

llvm[3]: Compiling SimplifyLibCalls.cpp for Debug+Asserts build
llvm[3]: Compiling Sink.cpp for Debug+Asserts build
llvm[3]: Compiling TailDuplication.cpp for Debug+Asserts build
llvm[3]: Compiling TailRecursionElimination.cpp for Debug+Asserts build
llvm[3]: Building Debug+Asserts Archive Library libLLVMScalarOpts.a
make[3]: *** [/root/llvm/Debug+Asserts/lib/libLLVMScalarOpts.a] Error 1
make[3]: Leaving directory /root/llvm/lib/Transforms/Scalar' make[2]: *** [Scalar/.makeall] Error 2 make[2]: Leaving directory /root/llvm/lib/Transforms’
make[1]: *** [Transforms/.makeall] Error 2
make[1]: Leaving directory `/root/llvm/lib’
make: *** [all] Error 1

-Any suggestions on how I could resolve this?

Thanks,
Prasanth

Hi,

I’m trying to build Clang on Redhat Linux. I recevied the following error

llvm[3]: Compiling SimplifyLibCalls.cpp for Debug+Asserts build
llvm[3]: Compiling Sink.cpp for Debug+Asserts build
llvm[3]: Compiling TailDuplication.cpp for Debug+Asserts build
llvm[3]: Compiling TailRecursionElimination.cpp for Debug+Asserts build
llvm[3]: Building Debug+Asserts Archive Library libLLVMScalarOpts.a
make[3]: *** [/root/llvm/Debug+Asserts/lib/libLLVMScalarOpts.a] Error 1
make[3]: Leaving directory /root/llvm/lib/Transforms/Scalar' make[2]: *** [Scalar/.makeall] Error 2 make[2]: Leaving directory /root/llvm/lib/Transforms’
make[1]: *** [Transforms/.makeall] Error 2
make[1]: Leaving directory `/root/llvm/lib’
make: *** [all] Error 1

-Any suggestions on how I could resolve this?

Thanks,
Prasanth

Hard to say, because it doesn't say what the failure is. I'd try make clean and then rebuild.

-Chris

Hi Prasanth,
There isn't enough information in your mail. We don't even know how
you ran make. If you run

make VERBOSE=1

it will display the commands executed by make. Perhaps that would give
an indication as to what the problem is.

Csaba

It seems, you’ve ran make with -jN. One thread failed compiling and printed error, but other threads continued working and printing stuff. So, the error message was left somewhere earlier.

Yes. Look earlier for the actual error.

-eric