how to solve it

hi,
when I run "make -C ./llvm/test/Programs", it show following error:

Hi yueqiang,

It worked for me. It looks like you might need to reconfigure in order to get the dependencies rebuilt.

Go to your llvm build directory and run:

./config.status

If you need to reconfigure you can run:

$(LLVM_SRC_DIR}/configure --help

to get the options (there are many but you’ll probably only need a few ).

The options I use (don’t copy an paste these!) are:

../llvm/configure --with-llvmgccdir=/proj/work/llvmgcc/cfrontend --prefix=/proj/install --with-gnu-ld

Reid.

<i>hi,
when I run "make -C ./llvm/test/Programs", it show following error:
-------------------------------------------------------------------------------------------
[root@RH9 llvm]# make -C ./llvm/test/Programs
make: Entering directory `/usr/local/llvm/llvm/test/Programs'
make[1]: Entering directory
`/usr/local/llvm/llvm/test/Programs/SingleSource'
make[2]: Entering directory
`/usr/local/llvm/llvm/test/Programs/SingleSource/UnitTests'
make[3]: Entering directory
  `/usr/local/llvm/llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp'
make[3]: *** No rule to make target `Output/C++Catch.linked.rll', needed
by `Output/C++Catch.linked.bc'.  Stop.
make[3]: Leaving directory
  `/usr/local/llvm/llvm/test/Programs/SingleSource/UnitTests/SetjmpLongjmp'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/usr/local/llvm/llvm/test/Programs/SingleSource/UnitTests'
make[1]: *** [UnitTests/.makeall] Error 2
  make[1]: Leaving directory 
`/usr/local/llvm/llvm/test/Programs/SingleSource'
make: *** [SingleSource/.makeall] Error 2
make: Leaving directory `/usr/local/llvm/llvm/test/Programs'
  [root@RH9 llvm]#
 
----------------------------------------------------------------------------------------------
how to solve it?

yueqiang

_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu         </i><i>[http://llvm.cs.uiuc.edu](http://llvm.cs.uiuc.edu)
[http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev](http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev)</i>

> <br><br><br><br><br><br> |
> - |

yueqiang wrote:

hi,
when I run "make -C ./llvm/test/Programs", it show following error:

A few questions:

1. Does the build work if you do the following?

% cd ./llvm/test/Programs
% make

2. What are the pathnames to the source tree and object tree?

3. Can you show us how you configured LLVM?

4. If the build continues to fail, please run it again with gmake VERBOSE=1 and send the output to llvmdev@cs.uiuc.edu. That will give us more information to diagnose the problem.

Another recommendation: It seems that you are building LLVM as root. You should not need root to build LLVM, and I would encourage you to build LLVM as a regular user on your system. Bugs are more dangerous if exposed by the root user.

Regards,

John T. Criswell