<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - libclang_rt.fuzzer_no_main-x86_64.a in monorepo and non-monorepo builds is very different"
href="https://bugs.llvm.org/show_bug.cgi?id=41956">41956</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libclang_rt.fuzzer_no_main-x86_64.a in monorepo and non-monorepo builds is very different
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>The size and contents of libclang_rt.fuzzer_no_main-x86_64.a differs a lot
between the monorepo and pre-monorepo builds (see below). Any idea why? Which
version is the right one?
$ svn export <a href="https://llvm.org/svn/llvm-project/llvm/trunk">https://llvm.org/svn/llvm-project/llvm/trunk</a> llvm
$ cd llvm
$ svn export <a href="https://llvm.org/svn/llvm-project/cfe/trunk">https://llvm.org/svn/llvm-project/cfe/trunk</a> tools/clang
$ svn export <a href="https://llvm.org/svn/llvm-project/compiler-rt/trunk">https://llvm.org/svn/llvm-project/compiler-rt/trunk</a>
projects/compiler-rt
$ mkdir build && cd build
$ cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
$ ninja lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
$ ls -l lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
-rw-r--r-- 1 hwennborg primarygroup 18151582 May 21 13:15
lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
$ ar -t lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
FuzzerCrossOver.cpp.o
FuzzerDataFlowTrace.cpp.o
FuzzerDriver.cpp.o
FuzzerExtFunctionsDlsym.cpp.o
FuzzerExtFunctionsWeak.cpp.o
FuzzerExtFunctionsWindows.cpp.o
FuzzerExtraCounters.cpp.o
FuzzerFork.cpp.o
FuzzerIO.cpp.o
FuzzerIOPosix.cpp.o
FuzzerIOWindows.cpp.o
FuzzerLoop.cpp.o
FuzzerMerge.cpp.o
FuzzerMutate.cpp.o
FuzzerSHA1.cpp.o
FuzzerTracePC.cpp.o
FuzzerUtil.cpp.o
FuzzerUtilDarwin.cpp.o
FuzzerUtilFuchsia.cpp.o
FuzzerUtilLinux.cpp.o
FuzzerUtilPosix.cpp.o
FuzzerUtilWindows.cpp.o
$ git clone --depth 1 <a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
$ cd llvm-project
$ mkdir build && cd build
$ cmake -GNinja -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_PROJECTS="clang;compiler-rt" ../llvm
$ ninja lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
$ ls -l lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
-rw-r--r-- 1 hwennborg primarygroup 21612992 May 21 13:19
lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
$ ar -t lib/clang/9.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
fuzzer_no_main.o</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>