<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Enable 32 bit libraries in llvm 6.0.0 - issue"
href="https://bugs.llvm.org/show_bug.cgi?id=39876">39876</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Enable 32 bit libraries in llvm 6.0.0 - issue
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>abinaya.manikandan@wipro.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Hi,
We are using RedHat6 and RedHat7 machine.
As per our user request we are trying to build llvm - 6.0.0 by enabling 32 and
64 bit libraries.
Option that we are using in our build step is below:
********************************************************************************
*export CFLAGS="-O4 -m32 -m64"
*export LDFLAGS="-m32 -m64"
export CLANG_GCC=/opt/gcc/x86_64/6.1.0a/bin/gcc
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \
-DCMAKE_C_COMPILER=/opt/gcc/x86_64/6.1.0a/bin/gcc \
-DCMAKE_CXX_COMPILER=/opt/gcc/x86_64/6.1.0a/bin/g++ \
-DGCC_INSTALL_PREFIX=/opt/gcc/x86_64/6.1.0a/ \
-DCMAKE_CXX_LINK_FLAGS="-L/opt/gcc/x86_64/6.1.0a/lib64" \
-DCMAKE_INSTALL_RPATH=$ORIGIN/../lib:%{gccpath}/lib64\
-DCMAKE_CROSSCOMPILING=True -DCMAKE_BUILD_TYPE=Release \
-Wno-dev --enable-zlib -DCMAKE_BUILD_TYPE=Release \
--enable-gold --enable-plugins \
*-DLLVM_BUILD_32_BITS:BOOL=ON \
--enable-targets \
*-DLLVM_TARGETS_TO_BUILD="X86" \
-DLLVM_ENABLE_ZLIB:BOOL=ON ..
make
make install
NOTE: The line which highlighted with star (*) is the one added to enabled 32
and 64 bit.
*******************************************************************************
Below mentioned URL where we referred:
<a href="https://stackoverflow.com/questions/1474243/build-32-bit-with-64-bit-llvm-gcc?rq=1">https://stackoverflow.com/questions/1474243/build-32-bit-with-64-bit-llvm-gcc?rq=1</a>
<a href="https://llvm.org/docs/CMake.html">https://llvm.org/docs/CMake.html</a>
We are not sure how to enable 32 and 64 bit libraries in llvm - 6.0.0.
Can anyone please help us here to get llvm 32 and 64 bit libraries.
Regards,
Abinaya</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>