Giter Club home page Giter Club logo

ufo's People

Contributors

davis-matthew avatar ivlzme avatar parasol-aser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ufo's Issues

Explaining use of offline analyzer

I'm trying ufo-predict, but got lost in how to use it correctly.

Suppose ufo-trace_20131 is the trace directory generated by the online tracking procedure when tested on test.cc. The output of java -jar ~/Downloads/runufo.jar is like:

21:19:55.776 [main] INFO aser.ufo.Main - app_name test; trace_dir /home/hongxu/concurrency/UFO/test/ufo-trace_20131.
21:19:55.779 [main] INFO aser.ufo.Main - solver_timeout 120
21:19:55.779 [main] INFO aser.ufo.Main - solver_mem 2000
21:19:55.779 [main] INFO aser.ufo.Main - window_size 100000
java.lang.NumberFormatException: For input string: "ffffffffff600000"
        at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.base/java.lang.Long.parseLong(Long.java:692)
        at aser.ufo.trace.EventLoader.loadCModuleInfo(EventLoader.java:156)
        at aser.ufo.trace.EventLoader.init(EventLoader.java:69)
        at aser.ufo.Session.init(Session.java:70)
        at aser.ufo.Main.main(Main.java:29)
21:19:55.806 [main] INFO aser.ufo.trace.EventLoader - tid: 0 Total Events:  67
21:19:55.806 [main] INFO aser.ufo.trace.EventLoader - tid: 1 Total Events:  22
Total loading time:  8ms
Total reachability analysis time:  2ms
Start Events: 1
Join Events: 1
Lock Events: 4
Unlock Events: 4
Wait/Notify Events: 2
Alloc Events: 7
DeAlloc Events: 9
Total Sync Events: 12
Total Alloc Events: 7
Total USE Events: 6
Total Free Events: 9
Total Read Events: 4
Total Write Events: 2
Total Events: 89
21:19:55.825 [main] INFO aser.ufo.Session - candidateUafLs: 1

------- #1 use call stack  
? pc: 0x4b6ad8
  /home/hongxu/LLVM/6.0.0/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:882 pc: 0x449e5e

------- #0 free call stack  
/home/hongxu/LLVM/6.0.0/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:624 pc: 0x44d0eb
  ? pc: 0x4b6bb9
    ? pc: 0x4b6ded

=================================

Session 1 | avg vals -1 | constr max 0  avg -1 | total constr 0 | total candidate UaF 0 
Solved UAF: {}

The result seems not expected since there supposed to be a UAF. To me, it seems that the solving procedure is not actually processed?

(There is a minor issue that there is a [vsyscall]|ffffffffff600000|ffffffffff601000| inside _module_info.txt which fails Long.parseLong.)

Another issue that confuses me is that TracePreprocessor has a main entry. May I know how to use this?

I ran it with <WRAPPER> /home/hongxu/concurrency/UFO/test/ufo-trace_20131 /home/hongxu/concurrency/UFO/test/out-ufo-trace, and it throws an exception:

Creating: "/home/hongxu/concurrency/UFO/test/out-ufo-trace": true
Start to uncompress 5 trace files from /home/hongxu/concurrency/UFO/test/ufo-trace_20131
java.io.IOException: [/home/hongxu/concurrency/UFO/test/ufo-trace_20131/1] Could not read enough data, requested: 1191182336  actual: 264
	at aser.ufo.TracePreprocessor.unzipBlocks(TracePreprocessor.java:160)
	at aser.ufo.TracePreprocessor$1.call(TracePreprocessor.java:77)
	at aser.ufo.TracePreprocessor$1.call(TracePreprocessor.java:74)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:844)
java.io.IOException: PARSING_ERROR(2)
	at org.xerial.snappy.SnappyNative.throw_error(SnappyNative.java:98)
	at org.xerial.snappy.SnappyNative.uncompressedLength(Native Method)
	at org.xerial.snappy.Snappy.uncompressedLength(Snappy.java:634)
	at aser.ufo.TracePreprocessor.unzipBlocks(TracePreprocessor.java:164)
	at aser.ufo.TracePreprocessor$1.call(TracePreprocessor.java:77)
	at aser.ufo.TracePreprocessor$1.call(TracePreprocessor.java:74)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:844)
Done: 883 (0.000842 MB) -> 46 (0.000044 MB). Rate: 1919.565217%

May I know what's going on?

Java Exception in Docker

I am trying to run UFO using docker but I keep getting exception when trying to run java -jar ufo-predict/runufo.jar

The error message is exception in "main":

Exception in thread "main" java.lang.NullPointerException
	at aser.ufo.misc.Addr2line.<init>(Addr2line.java:40)
	at aser.ufo.Session.init(Session.java:56)
	at aser.ufo.UFOMain.main(UFOMain.java:27)

I edited my config.properties to be

app_name=test
# trace directory to be analyzed
trace_dir=./ufo_traces
# solver timeout seconds
solver_time=120
#default symbolizer
symbolizer=atos
# solver_mem MB
solver_mem=2000
# window size
window_size=100000
# fast detect does not solve constraints to verify UAFs
fast_detect=false

and also tried changing the second line to trace_dir=./ufo_test_trace and trace_dir=./ufo_test_trace_22 to match the directory name of ufo_test_trace_22 in the ufo directory.

How to Use UFO to compile a project

Hi, I want to use UFO to test some open source softwares, but how can I compile them with UFO?
the usage example is only a single test file, could you please give some more examples ?

Chrome build error in Docker

Not sure if this is the right place to post but I could not find any information about the error anywhere.

I have followed the direction on building chromium on linux with custom clang and have successfully created .ninja files in src/out/Default.

However, every time I try to build chromium in docker using ninja, I keep getting these errors:

clang++: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang++: error: unknown argument: '-fcomplete-member-pointers'

I already configured my args.gn to point to the custom clang library; here is my args.gn:

clang_base_path = "/ufo/build"
clang_use_chrome_plugins = false
is_debug = false
enable_nacl=false
is_tsan=true
symbol_level = 1
is_component_build = true

For full error:

ninja: Entering directory `out/Default/'
[1/1] Regenerating ninja files
[2/63289] CC obj/base/third_party/libevent/libevent/strlcpy.o
FAILED: obj/base/third_party/libevent/libevent/strlcpy.o 
../../../../../ufo/build/bin/clang -MMD -MF obj/base/third_party/libevent/libevent/strlcpy.o.d -DHAVE_CONFIG_H -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTHREAD_SANITIZER -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1 -DWTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=357024 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../base/third_party/libevent/linux -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -gcolumn-info -fsanitize=thread -fsanitize-blacklist=../../tools/memory/tsan_v2/ignores.txt -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -std=c11 --sysroot=../../build/linux/debian_sid_amd64-sysroot -c ../../base/third_party/libevent/strlcpy.c -o obj/base/third_party/libevent/libevent/strlcpy.o
clang: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang: error: unknown argument: '-fcomplete-member-pointers'
[3/63289] CXX obj/buildtools/third_party/libc++abi/libc++abi/stdlib_typeinfo.o
FAILED: obj/buildtools/third_party/libc++abi/libc++abi/stdlib_typeinfo.o 
../../../../../ufo/build/bin/clang++ -MMD -MF obj/buildtools/third_party/libc++abi/libc++abi/stdlib_typeinfo.o.d -DLIBCXXABI_SILENT_TERMINATE -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTHREAD_SANITIZER -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1 -DWTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=357024 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -gcolumn-info -fsanitize=thread -fsanitize-blacklist=../../tools/memory/tsan_v2/ignores.txt -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -fstrict-aliasing -fPIC -fvisibility=default -std=c++14 -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fexceptions -frtti -c ../../buildtools/third_party/libc++abi/trunk/src/stdlib_typeinfo.cpp -o obj/buildtools/third_party/libc++abi/libc++abi/stdlib_typeinfo.o
clang++: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang++: error: unknown argument: '-fcomplete-member-pointers'
[4/63289] CXX obj/buildtools/third_party/libc++/libc++/algorithm.o
FAILED: obj/buildtools/third_party/libc++/libc++/algorithm.o 
../../../../../ufo/build/bin/clang++ -MMD -MF obj/buildtools/third_party/libc++/libc++/algorithm.o.d -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS -DLIBCXX_BUILDING_LIBCXXABI -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTHREAD_SANITIZER -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1 -DWTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=357024 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -gcolumn-info -fsanitize=thread -fsanitize-blacklist=../../tools/memory/tsan_v2/ignores.txt -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fstrict-aliasing -fPIC -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -fvisibility=default -std=c++14 -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fexceptions -frtti -c ../../buildtools/third_party/libc++/trunk/src/algorithm.cpp -o obj/buildtools/third_party/libc++/libc++/algorithm.o
clang++: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang++: error: unknown argument: '-fcomplete-member-pointers'
[5/63289] CXX obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception_storage.o
FAILED: obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception_storage.o 
../../../../../ufo/build/bin/clang++ -MMD -MF obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception_storage.o.d -DLIBCXXABI_SILENT_TERMINATE -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTHREAD_SANITIZER -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1 -DWTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=357024 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -gcolumn-info -fsanitize=thread -fsanitize-blacklist=../../tools/memory/tsan_v2/ignores.txt -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -fstrict-aliasing -fPIC -fvisibility=default -std=c++14 -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fexceptions -frtti -c ../../buildtools/third_party/libc++abi/trunk/src/cxa_exception_storage.cpp -o obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception_storage.o
clang++: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang++: error: unknown argument: '-fcomplete-member-pointers'
[6/63289] CXX obj/base/test/test_child_process/test_child_process.o
FAILED: obj/base/test/test_child_process/test_child_process.o 
../../../../../ufo/build/bin/clang++ -MMD -MF obj/base/test/test_child_process/test_child_process.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTHREAD_SANITIZER -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1 -DWTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=357024 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -gcolumn-info -fsanitize=thread -fsanitize-blacklist=../../tools/memory/tsan_v2/ignores.txt -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fvisibility-inlines-hidden -c ../../base/test/test_child_process.cc -o obj/base/test/test_child_process/test_child_process.o
clang++: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang++: error: unknown argument: '-fcomplete-member-pointers'
[7/63289] CXX obj/buildtools/third_party/libc++/libc++/chrono.o
FAILED: obj/buildtools/third_party/libc++/libc++/chrono.o 
../../../../../ufo/build/bin/clang++ -MMD -MF obj/buildtools/third_party/libc++/libc++/chrono.o.d -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS -DLIBCXX_BUILDING_LIBCXXABI -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR -DMEMORY_SANITIZER_INITIAL_SIZE -DTHREAD_SANITIZER -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1 -DWTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCOMPONENT_BUILD -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_ABI_VERSION=Cr -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=357024 -DCR_SYSROOT_HASH=e7c53f04bd88d29d075bfd1f62b073aeb69cbe09 -DNDEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -fcomplete-member-pointers -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -no-canonical-prefixes -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -gcolumn-info -fsanitize=thread -fsanitize-blacklist=../../tools/memory/tsan_v2/ignores.txt -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fstrict-aliasing -fPIC -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -fvisibility=default -std=c++14 -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../build/linux/debian_sid_amd64-sysroot -fexceptions -frtti -c ../../buildtools/third_party/libc++/trunk/src/chrono.cpp -o obj/buildtools/third_party/libc++/libc++/chrono.o
clang++: error: unknown argument: '-fcrash-diagnostics-dir=../../tools/clang/crashreports'
clang++: error: unknown argument: '-fcomplete-member-pointers'
ninja: build stopped: subcommand failed.

Also, my head out/Default/toolchain.ninja returns

rule cc
  command =  ../../../../../ufo/build/bin/clang -MMD -MF ${out}.d ${defines} ${include_dirs} ${cflags} ${cflags_c} -c ${in} -o ${out}
  description = CC ${out}
  depfile = ${out}.d
  deps = gcc
rule cxx
  command =  ../../../../../ufo/build/bin/clang++ -MMD -MF ${out}.d ${defines} ${include_dirs} ${cflags} ${cflags_cc} -c ${in} -o ${out}
  description = CXX ${out}
  depfile = ${out}.d
  deps = gcc

which seems like it is using the correct clang and clang++

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.