I tried building LLVM with the downloaded sources. I am building it with gcc4.3.
After getting configured successfully, and running ‘make’, build fails with the following message:
make: Entering directory
/home/guest/SRC/llvm-2.1/lib/System' llvm: Compiling DynamicLibrary.cpp for Release build DynamicLibrary.cpp: In static member function âstatic void* llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(const char*)â: DynamicLibrary.cpp:178: error: âstrcmpâ was not declared in this scope DynamicLibrary.cpp:179: error: âstrcmpâ was not declared in this scope DynamicLibrary.cpp:180: error: âstrcmpâ was not declared in this scope make: *** [/home/guest/SRC/llvm-2.1/lib/System/Release/DynamicLibrary.o] Error 1 make: Leaving directory /home/guest//SRC/llvm-2.1/lib/System’
make: *** [all] Error 1
Please let me know what may be the wrong here.
$ gcc -v
Using built-in specs.
Configured with: ./configure --prefix=/home/guest/gcc4.3.0/install_gcc_4.3.0 --with-mpfr=/home/guest/mpfr/install_mpfr
Thread model: posix
gcc version 4.3.0 (GCC)
Linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux