<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>I am building LLVM and Clang using gcc 7.1 with Cmake and Ninja on a system based on Ubuntu 12.04.</div>
<div><br>
</div>
<div>The following commands worked for clang 6.0.0 with all the source files installed:</div>
<div><br>
</div>
<div>/opt/cmake/bin/cmake -GNinja \<br>
-DCMAKE_C_COMPILER=/opt/gcc-7.1/bin/gcc \<br>
-DCMAKE_CXX_COMPILER=/opt/gcc-7.1/bin/g++ \<br>
-DGCC_INSTALL_PREFIX=/opt/gcc-7.1 \<br>
-DCMAKE_INSTALL_PREFIX=/home/fletcher/LLVM/llvm-6.0.distrib/local -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_TARGETS_TO_BUILD="host" -DLLVM_PARALLEL_LINK_JOBS=1 -DCMAKE_EXE_LINKER_FLAGS="-Xlinker -R/opt/gcc-7.1/lib64 -L/opt/gcc-7.1/lib64"
 ../llvm<br>
</div>
<div><br>
</div>
<div>Some things seem to have changed with version 7.0.0</div>
<div><br>
</div>
<div>(1)  There has been a change associated with libomptarget and now it fails as it is picking up an old version of cuda on my computer and complaining that the gcc is too new.  The only way I could find to get rid of this is to remove openmp.</div>
<div><br>
</div>
<div>(2) When I did this it still does not build as it cannot link a library with the following messages:</div>
<div><br>
</div>
<div>FAILED: lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a</div>
<div>--localize-hidden: not found</div>
<div><br>
</div>
<div>--localize-hidden seems to be an option for ld.  I have not traced any documentation.</div>
<div><br>
</div>
<div>What makes things difficult is that these failures occur after several hours of processing, having not been picked up by Cmake.</div>
<div><br>
</div>
<div>It may be that the system version of ld is being picked up and I need to take some action on that.</div>
<div><br>
</div>
<div>Any help will be appreciated.</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>John Fletcher</div>
<div><br>
</div>
<div><br>
</div>
</div>
</body>
</html>