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

            Bug ID: 41956
           Summary: libclang_rt.fuzzer_no_main-x86_64.a in monorepo and
                    non-monorepo builds is very different
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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 https://llvm.org/svn/llvm-project/llvm/trunk llvm
$ cd llvm
$ svn export https://llvm.org/svn/llvm-project/cfe/trunk tools/clang
$ svn export https://llvm.org/svn/llvm-project/compiler-rt/trunk
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 https://github.com/llvm/llvm-project
$ 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to