[LLVMdev] Build failure: on Linux /x86

vishal kanaujia bluehive at gmail.com
Mon Apr 14 04:07:46 PDT 2008


Hi,
  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[1]: Entering directory `/home/guest/SRC/llvm-2.1/lib/System'
llvm[1]: 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[1]: *** [/home/guest/SRC/llvm-2.1/lib/System/Release/DynamicLibrary.o]
Error 1
make[1]: Leaving directory `/home/guest//SRC/llvm-2.1/lib/System'
make: *** [all] Error 1

Please let me know what may be the wrong here.

Thanks,
bluehive

PS:
$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
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)

$uname -a
Linux  2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080414/d71cbd47/attachment.html>


More information about the llvm-dev mailing list