Thank you for replying. These are the first few lines from llvm-config:<div><br></div><div><div> use 5.006;</div><div>  use strict;</div><div>  use warnings;</div><div>  use Cwd 'abs_path';</div><div><br></div><div>

  #---- begin autoconf values ----</div><div>  my $PACKAGE_NAME        = q{llvm};</div><div><br></div><br><div class="gmail_quote">On Sun, May 29, 2011 at 5:00 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sun, May 29, 2011 at 4:37 PM, Arjun Singri <<a href="mailto:arjunsingri@gmail.com">arjunsingri@gmail.com</a>> wrote:<br>


> Hi,<br>
> I am getting the following build error while building llvm on RHEL5. Please<br>
> help me fix this:<br>
> gmake[2]: Leaving directory<br>
> `/rhel5pdi/home/asin/llvm_install/tools/llvm-config'<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 18: use:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 19: use:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 20: use:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 21: use:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 24: my:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 25: my:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 26: my:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 27: my:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 28: my:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 29: my:<br>
> command not found<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 30: syntax<br>
> error near unexpected token `('<br>
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 30: `my $ARCH<br>
>                = lc(q{x86});'<br>
> gmake[2]: Entering directory `/rhel5pdi/home/asin/llvm_install/tools/opt'<br>
> /rhel5pdi/home/asin/llvm-2.9/Makefile.rules:959: *** llvm-config --libs<br>
> failed.  Stop.<br>
> gmake[2]: Leaving directory `/rhel5pdi/home/asin/llvm_install/tools/opt'<br>
> gmake[1]: *** [opt/.makeall] Error 2<br>
> gmake[1]: Leaving directory `/rhel5pdi/home/asin/llvm_install/tools'<br>
> gmake: *** [all] Error 1<br>
<br>
</div></div>llvm-config is a Perl script, and it looks like somehow it's getting<br>
run in something that isn't perl.  What does the first line of<br>
Release/bin/llvm-config look like?<br>
<font color="#888888"><br>
-Eli<br>
</font></blockquote></div><br></div>