[llvm-bugs] [Bug 43677] New: llvm-9.0.0 build issue on RHEL7
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 15 04:46:50 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43677
Bug ID: 43677
Summary: llvm-9.0.0 build issue on RHEL7
Product: new-bugs
Version: 9.0
Hardware: Other
OS: Linux
Status: NEW
Severity: release blocker
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 RHEL7 machine to build llvm - 9.0.0.
we are using option to enable both 32 and 64 bit library.
please find below command which we are using to build llvm:
--------------------------------------------------------------------------------
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \
-DCMAKE_C_COMPILER=/opt/gcc/x86_64/9.2.0a/bin/gcc \
-DCMAKE_CXX_COMPILER=/opt/gcc/x86_64/9.2.0a/bin/g++ \
-DGCC_INSTALL_PREFIX=/opt/gcc/x86_64/9.2.0a/ \
-DCMAKE_CXX_LINK_FLAGS="-L/opt/gcc/x86_64/9.2.0a/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
--------------------------------------------------------------------------------
And the gcc version we are using is,
--------------------------------------------------------------------------------
[root at abinaya-test rpmbuild]$ gcc --version
gcc (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--------------------------------------------------------------------------------
Facing below build issue:
--------------------------------------------------------------------------------
[ 33%] Linking CXX static library
../../../../lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer-i386.a
/opt/binutils/x86_64/2.32/bin/ld: relocatable linking with relocations from
format elf64-x86-64
(/root/rpmbuild/BUILD/llvm-9.0.0.src/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_i386/lib/libc++.a(algorithm.cpp.o))
to format elf32-i386 (fuzzer.o) is not supported
make[2]: *** [lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer-i386.a] Error 1
make[2]: *** Deleting file
`lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer-i386.a'
make[1]: ***
[projects/compiler-rt/lib/fuzzer/CMakeFiles/clang_rt.fuzzer-i386.dir/all] Error
2
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.8Bs8vE (%build)
--------------------------------------------------------------------------------
Please anyone help us here, we have been investigate lot and couldn't get any
idea about this issue.
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/20191015/41b2bef9/attachment-0001.html>
More information about the llvm-bugs
mailing list