Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Not able to build 32 and 64 bit library on llvm - 8.0.0 #41447

Open Quuxplusone opened 5 years ago

Quuxplusone commented 5 years ago
Bugzilla Link PR42477
Status NEW
Importance P release blocker
Reported by Abinaya sandhiya (abinaya.manikandan@wipro.com)
Reported on 2019-07-02 01:38:55 -0700
Last modified on 2019-07-16 23:45:09 -0700
Version 8.0
Hardware Other Linux
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Hi,

We have been trying to build llvm - 8.0.0 on RHEL 6.0 and RHEL 7.0 OS by
enabling both 32 and 64 bit library.

But the issue is we could get only 64bit library and not 32.

For your information, we are using below option to enable both 32 and 64 in llvm

----------------------------------------------------------------------------
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \
            -DCMAKE_C_COMPILER=/opt/gcc/x86_64/6.3.1a/bin/gcc \
            -DCMAKE_CXX_COMPILER=/opt/gcc/x86_64/6.3.1a/bin/g++ \
            -DGCC_INSTALL_PREFIX=/opt/gcc/x86_64/6.3.1a/ \
            -DCMAKE_CXX_LINK_FLAGS="-L/opt/gcc/x86_64/6.3.1a/lib" \
            -DCMAKE_INSTALL_RPATH=$ORIGIN/../lib:%{gccpath}/lib\
            -DCMAKE_CROSSCOMPILING=True -DCMAKE_BUILD_TYPE=Release  \
            -Wno-dev  --enable-zlib -DCMAKE_BUILD_TYPE=Release \
            --enable-gold --enable-plugins \
            //-DLLVM_TARGETS_TO_BUILD="X86" \//
            --with-termlib \
            -DLLVM_ENABLE_ZLIB:BOOL=ON ..

make

make install
----------------------------------------------------------------------------
Note : Already we have the same issue with llvm - 7 and it has been fixed by
the same option which you suggested in another llvm case:
https://bugs.llvm.org/show_bug.cgi?id=39876

Now its not working with llvm - 8.0.0.

NOTE: we could build both 32 and 64 bit on RHEL >= 6.5 and > 7.0 and the issue
is only on lower version of RedHat OS.

Please find attached below for more details:
----------------------------------------------------------------------------
Looking for __cxa_throw in stdc++ - found
-- Looking for __i386__
-- Looking for __i386__ - not found
-- Compiler-RT supported architectures: x86_64
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG
-- Performing Test COMPILER_RT_HAS_STD_C11_FLAG - Success
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG
-- Performing Test COMPILER_RT_HAS_VISIBILITY_HIDDEN_FLAG - Success
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG
-- Performing Test COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG - Success
-- Performing Test COMPILER_RT_HAS_FREESTANDING_FLAG
-- Performing Test COMPILER_RT_HAS_FREESTANDING_FLAG - Success
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG
-- Performing Test COMPILER_RT_HAS_XRAY_COMPILER_FLAG - Failed
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD
-- Performing Test COMPILER_RT_HAS_ATOMIC_KEYWORD - Success
-- Builtin supported architectures: x86_64
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS - Success
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK - Success
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Success
-- Performing Test HAS_THREAD_LOCAL
-- Performing Test HAS_THREAD_LOCAL - Success
-- Linker detection: GNU ld
-- Linker detection: GNU ld
-- Builtin supported architectures: x86_64
-- sanitizer_common tests on "Linux" will run against
"asan;tsan;msan;ubsan;lsan"
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Clang version: 8.0.0’
----------------------------------------------------------------------------

Please help us here and let me know if anymore details needed from your end.
Quuxplusone commented 5 years ago

Can we get any update here.