[LLVMdev] Build error for llvm-2.9 on RHEL5

Eli Friedman eli.friedman at gmail.com
Sun May 29 17:00:21 PDT 2011


On Sun, May 29, 2011 at 4:37 PM, Arjun Singri <arjunsingri at gmail.com> wrote:
> Hi,
> I am getting the following build error while building llvm on RHEL5. Please
> help me fix this:
> gmake[2]: Leaving directory
> `/rhel5pdi/home/asin/llvm_install/tools/llvm-config'
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 18: use:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 19: use:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 20: use:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 21: use:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 24: my:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 25: my:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 26: my:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 27: my:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 28: my:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 29: my:
> command not found
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 30: syntax
> error near unexpected token `('
> /rhel5pdi/home/asin/llvm_install/Release/bin/llvm-config: line 30: `my $ARCH
>                = lc(q{x86});'
> gmake[2]: Entering directory `/rhel5pdi/home/asin/llvm_install/tools/opt'
> /rhel5pdi/home/asin/llvm-2.9/Makefile.rules:959: *** llvm-config --libs
> failed.  Stop.
> gmake[2]: Leaving directory `/rhel5pdi/home/asin/llvm_install/tools/opt'
> gmake[1]: *** [opt/.makeall] Error 2
> gmake[1]: Leaving directory `/rhel5pdi/home/asin/llvm_install/tools'
> gmake: *** [all] Error 1

llvm-config is a Perl script, and it looks like somehow it's getting
run in something that isn't perl.  What does the first line of
Release/bin/llvm-config look like?

-Eli




More information about the llvm-dev mailing list