[llvm-bugs] [Bug 39876] New: Enable 32 bit libraries in llvm 6.0.0 - issue

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 4 01:46:36 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39876

            Bug ID: 39876
           Summary: Enable 32 bit libraries in llvm 6.0.0 - issue
           Product: new-bugs
           Version: 6.0
          Hardware: PC
                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 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: 

https://stackoverflow.com/questions/1474243/build-32-bit-with-64-bit-llvm-gcc?rq=1
https://llvm.org/docs/CMake.html

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

-- 
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/20181204/73c82cf2/attachment.html>


More information about the llvm-bugs mailing list