Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7158

Get LLVM LibFuzzer building on PowerPC

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      After merging WT-6840, we saw some fallout on Evergreen where PPC machines weren't able to build the fuzz targets properly. I've temporarily disabled building the targets on PPC.

      If we begin using the fuzzer in Evergreen and feel that we're getting value out of it, we should try to get it working on PPC since testing across a range of environments is always a good thing.

      The Evergreen failure we can can be found here: https://evergreen.mongodb.com/task/wiredtiger_ubuntu1804_ppc_format_stress_sanitizer_ppc_test_fdf8783a2dccc30517248cd0130a0aab4fe5b632_21_02_03_12_38_40

      And the compilation error looked like this:

      [2021/02/03 13:22:02.399] /bin/bash ../../libtool  --tag=CC --tag=CC  --mode=link /usr/bin/clang -std=c11 -D_GNU_SOURCE -ggdb -fPIC -fsanitize=address -fno-omit-frame-pointer -I/opt/mongodbtoolchain/v3/lib/gcc/ppc64le-mongodb-linux/8.2.0/include -fsanitize=fuzzer -static  -o fuzz_config config/fuzz_config.o libfuzz_util.la -lrt -ldl -lpthread -lz -llz4 -lsnappy
      [2021/02/03 13:22:02.399] /bin/bash ../../libtool  --tag=CC --tag=CC  --mode=link /usr/bin/clang -std=c11 -D_GNU_SOURCE -ggdb -fPIC -fsanitize=address -fno-omit-frame-pointer -I/opt/mongodbtoolchain/v3/lib/gcc/ppc64le-mongodb-linux/8.2.0/include -fsanitize=fuzzer -static  -o fuzz_modify modify/fuzz_modify.o libfuzz_util.la -lrt -ldl -lpthread -lz -llz4 -lsnappy
      [2021/02/03 13:22:03.167] libtool: link: /usr/bin/clang -std=c11 -D_GNU_SOURCE -ggdb -fPIC -fsanitize=address -fno-omit-frame-pointer -I/opt/mongodbtoolchain/v3/lib/gcc/ppc64le-mongodb-linux/8.2.0/include -fsanitize=fuzzer -o fuzz_modify modify/fuzz_modify.o  ./.libs/libfuzz_util.a /data/mci/2bb7f46e81d81969154447b0c122d4e8/wiredtiger/build_posix/.libs/libwiredtiger.a -lrt -ldl -lpthread -lz -llz4 -lsnappy
      [2021/02/03 13:22:03.168] libtool: link: /usr/bin/clang -std=c11 -D_GNU_SOURCE -ggdb -fPIC -fsanitize=address -fno-omit-frame-pointer -I/opt/mongodbtoolchain/v3/lib/gcc/ppc64le-mongodb-linux/8.2.0/include -fsanitize=fuzzer -o fuzz_config config/fuzz_config.o  ./.libs/libfuzz_util.a /data/mci/2bb7f46e81d81969154447b0c122d4e8/wiredtiger/build_posix/.libs/libwiredtiger.a -lrt -ldl -lpthread -lz -llz4 -lsnappy
      [2021/02/03 13:22:03.200] /usr/bin/ld: cannot find /usr/lib/llvm-6.0/lib/clang/6.0.0/lib/linux/libclang_rt.fuzzer-powerpc64le.a: No such file or directory
      [2021/02/03 13:22:03.346] clang: error: linker command failed with exit code 1 (use -v to see invocation)
      [2021/02/03 13:22:03.346] Makefile:452: recipe for target 'fuzz_modify' failed
      [2021/02/03 13:22:03.346] make[2]: *** [fuzz_modify] Error 1
      [2021/02/03 13:22:03.346] make[2]: *** Waiting for unfinished jobs....
      [2021/02/03 13:22:04.132] /usr/bin/ld: cannot find /usr/lib/llvm-6.0/lib/clang/6.0.0/lib/linux/libclang_rt.fuzzer-powerpc64le.a: No such file or directory
      [2021/02/03 13:22:04.236] clang: error: linker command failed with exit code 1 (use -v to see invocation)
      [2021/02/03 13:22:04.236] Makefile:440: recipe for target 'fuzz_config' failed
      [2021/02/03 13:22:04.236] make[2]: *** [fuzz_config] Error 1
      [2021/02/03 13:22:04.236] make[2]: Leaving directory '/data/mci/2bb7f46e81d81969154447b0c122d4e8/wiredtiger/build_posix/test/fuzz'
      [2021/02/03 13:22:04.238] Makefile:2283: recipe for target 'all-recursive' failed
      [2021/02/03 13:22:04.238] make[1]: *** [all-recursive] Error 1
      [2021/02/03 13:22:04.238] make[1]: Leaving directory '/data/mci/2bb7f46e81d81969154447b0c122d4e8/wiredtiger/build_posix'
      [2021/02/03 13:22:04.240] Makefile:970: recipe for target 'all' failed
      [2021/02/03 13:22:04.240] make: *** [all] Error 2
      [2021/02/03 13:22:04.240]   fi
      [2021/02/03 13:22:04.240] fi
      [2021/02/03 13:22:04.240] Command failed: command encountered problem: error waiting on process '6a98458b-df29-4349-b887-22147dd4d927': exit status 2
      [2021/02/03 13:22:04.240] Task completed - FAILURE.
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: