[llvm-bugs] [Bug 42369] New: llvm - 7.0 and llvm 8.0 specify binutils version using flag
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 24 04:59:13 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42369
Bug ID: 42369
Summary: llvm - 7.0 and llvm 8.0 specify binutils version using
flag
Product: new-bugs
Version: 8.0
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: abinaya.manikandan at wipro.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190624/64787eee/attachment-0001.html>
More information about the llvm-bugs
mailing list