[llvm-dev] Building llvm1.6 on ubuntu 14.
Muhammad Umar Janjua via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 7 11:18:56 PDT 2016
I have not seen my message posted. Can you let me know what's the issue.
From: Muhammad Umar Janjua <umar_janjua at yahoo.com>
To: Llvm-dev <llvm-dev at lists.llvm.org>
Sent: Tuesday, 5 April 2016, 16:57
Subject: Building llvm1.6 on ubuntu 14.
I just had an old project with llvm1.6.
I tried to compile it on the ubuntu 14..
First, I copied cfrontend, called ./fixheaders and then did configure.
Everything worked well. It required g++/bison/flex, which I installed.
Then I tried to use make ( no gmake). It gave these errors...
Any wonder..how to fix this.
ubuntu at ubuntu:~/build1.6$ make
make[1]: Entering directory `/home/ubuntu/build1.6/lib/System'
llvm[1]: Compiling Path.cpp for Debug build
In file included from /home/ubuntu/build1.6/../llvm/lib/System/Path.cpp:14:0:
/home/ubuntu/build1.6/../llvm/include/llvm/System/Path.h:250:33: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const char* const c_str() const { return path.c_str(); }
^
/home/ubuntu/build1.6/../llvm/lib/System/Path.cpp: In function ‘llvm::sys::LLVMFileType llvm::sys::IdentifyFileType(const char*, unsigned int)’:
/home/ubuntu/build1.6/../llvm/lib/System/Path.cpp:52:39: error: ‘memcmp’ was not declared in this scope
if (memcmp(magic,"!<arch>\n",8) == 0)
^
make[1]: *** [/home/ubuntu/build1.6/lib/System/Debug/Path.o] Error 1
make[1]: Leaving directory `/home/ubuntu/build1.6/lib/System'
make: *** [all] Error 1
ubuntu at ubuntu:~/build1.6$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160407/826edd10/attachment.html>
More information about the llvm-dev
mailing list