<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 - llvm - 7.0 and llvm 8.0 specify binutils version using flag"
href="https://bugs.llvm.org/show_bug.cgi?id=42369">42369</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm - 7.0 and llvm 8.0 specify binutils version using flag
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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 have been trying to build llvm 7 and 8 on RedHat 7 machine.
Would like to use specific binutils version other than the OS one.
So please let us know do we have any specific flag/option which we can use with
the build steps of llvm to specify binutils installed path [library] so llvm
can use those binutils to build.
FYI , below are the steps we are using from our end to build llvm:
----------------------------------------------------------------------------
mkdir build
pushd build
export CLANG_GCC=/opt/gcc/x86_64/8.3.0a/bin/gcc
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DGCC_INSTALL_PREFIX=/opt/gcc/x86_64/8.3.0a/ \
-DCMAKE_CXX_LINK_FLAGS="-L/opt/gcc/x86_64/8.3.0a/lib64" \
-DCMAKE_INSTALL_RPATH=$ORIGIN/../lib:%{gccpath}/lib64 \
-DCMAKE_CROSSCOMPILING=True -DCMAKE_BUILD_TYPE=Release \
-DLLVM_EXTERNAL_CLANG_SOURCE_DIR=../../cfe-%{version0}.src \
-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../../clang-tools-extra-%{version0}.src
-DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=../../compiler-rt-%{version0}.src
-Wno-dev --enable-zlib -DCMAKE_BUILD_TYPE=Release --enable-gold
--enable-plugins -DLLVM_ENABLE_ZLIB:BOOL=ON ..
make -j10 install DESTDIR="${RPM_BUILD_ROOT}"
----------------------------------------------------------------------------
It would be great if anyone help us here.</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>