<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/24/2014 04:19 PM, Eric
Christopher wrote:<br>
</div>
<blockquote
cite="mid:CALehDX497rfUKv8kJ=6sPsciwU+1ur3-eruHHQ6tBHdTwg0osw@mail.gmail.com"
type="cite">
<pre wrap="">On Mon, Feb 24, 2014 at 4:14 PM, reed kotler <a class="moz-txt-link-rfc2396E" href="mailto:rkotler@mips.com"><rkotler@mips.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm trying to build a native hosted mips compiler on ubuntu x86.
When I run configure with clang/llvm as the compiler, configure thinks that
zlib is present and that valgrind is.
But later on the make it cannot find zlib.h. If I tell it to not do
compression, then it does not look for
zlib.h but dies looking for valgrind, even if I tell it to disable-valgrind.
If I configure using gcc-mips, it decides on it's own that zlib.h is not
available.
It also decides that valgrind is not available.
Why the difference?
</pre>
</blockquote>
<pre wrap="">
How are you configuring?
-eric
</pre>
</blockquote>
<br>
(You can see our wiki page
<a class="moz-txt-link-freetext" href="https://dmz-portal.mips.com/wiki/Build_mips_clang_llvm">https://dmz-portal.mips.com/wiki/Build_mips_clang_llvm</a> )<br>
<br>
Basically:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre style="padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); line-height: 1.1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">$ OPT="-target mipsel-linux-gnu -mips32r2 -gcc-toolchain ${MIPS}"
</pre>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<pre style="padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); line-height: 1.1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">$ $CLANG_SRC/configure \
--prefix=$CLANG_INSTALL \
--build=i686-pc-linux-gnu \
--host=mipsel-linux-gnu \
--enable-optimized \ # turn on optimization
"--with-extra-options=${OPT}" \
"--with-extra-ld-options=${OPT}" \
CC=$CLANG_TC/bin/clang \
CXX=$CLANG_TC/bin/clang++ \
RANLIB=$MIPS/bin/mips-linux-gnu-ranlib \
AR=$MIPS/bin/mips-linux-gnu-ar \
build_alias=i686-unknown-linux-gnu host_alias=mipsel-linux-gnu
</pre>
<br>
<blockquote
cite="mid:CALehDX497rfUKv8kJ=6sPsciwU+1ur3-eruHHQ6tBHdTwg0osw@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap="">Any ideas?
Reed
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>