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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to