Commit Graph

44 Commits

Author SHA1 Message Date
jonathanmetzman 7fb04e4fda
Fix clang updating script to actually track Chrome's (#3806)
Fix clang updating script to actually update clang based on Chrome's

With this change, clang (llvm-project) will be updated from:
e84b7a5fe230e42b8e6fe451369874a773bf1867
to Chrome's current version:
99ac9ce7016d701b43b8f0c308dc3463da57d983.

This commit fixes two bad bugs:
1. Using the output of a command instead of the return code.
2. Using ! to determine whether the command succeeded ! in bash
will do the same thing for 0 and 1.

These bugs were hidden by OUR_LLVM_REVISION which we traditionally
set to the last commit we rolled back to. If this were a comment
instead of stored as a variable that is not supposed to be used
unless FORCE_OUR_REVISION is set, this bug probably could have
been caught earlier. Instead, the code always used the value
provided by this variable.

Fixes https://github.com/google/oss-fuzz/issues/3805
2020-05-13 17:07:18 -07:00
Max Moroz 340882a3ce
[infra] Build LLD inside base-clang image. (#3597) 2020-04-08 22:03:12 -07:00
jonathanmetzman 5668cc422c
Install clang using git (#3060) 2019-11-22 13:21:29 -08:00
jonathanmetzman c4202c2f48
Revert "Use "x86" instead of "i386" for better name recognition. (#2685)" (#2687)
This reverts commit 0c6cc5cae8.
2019-08-12 10:54:18 -07:00
jonathanmetzman 0c6cc5cae8
Use "x86" instead of "i386" for better name recognition. (#2685)
It seems more people understand x86 than i386, use this term instead.
2019-08-12 10:35:16 -07:00
Abhishek Arya e2003e1f39
Remove code for copying dataflow scripts (#2461)
Dataflow scripts are removed in
51570280af
2019-05-24 13:01:21 -07:00
jonathanmetzman 12fa975bc3 Update regex for clang revision (#2460) 2019-05-24 11:19:55 -07:00
jonathanmetzman 3df4e14520
Revert "[infra] Roll clang to r360398 (#2405)" (#2408)
This reverts commit 4a9941d9c4.
2019-05-13 15:07:29 -07:00
jonathanmetzman c60fcd7247
Add initial support for i386 builds (#2347)
This feature is not yet officially supported
2019-05-13 15:01:25 -07:00
jonathanmetzman 4a9941d9c4
[infra] Roll clang to r360398 (#2405) 2019-05-13 10:26:40 -07:00
jonathanmetzman 316c1df6a4
Roll clang to r359254 (#2358)
Roll clang to r359254 to uptake fixes for exception handling and MSAN.
2019-04-30 10:19:20 -04:00
jonathanmetzman a047d08b8e
Revert "[infra] Revert the recent clang roll to fix some builds (#2315) (#2316) (#2356)
* Revert "[infra] Revert the recent clang roll to fix some builds (#2315). (#2316)"

This reverts commit 8b34fd89d2.
2019-04-29 16:22:20 -04:00
Max Moroz 8b34fd89d2
[infra] Revert the recent clang roll to fix some builds (#2315). (#2316) 2019-04-12 09:14:09 -07:00
jonathanmetzman 97eca89ed9
Build clang so that it can compile targets with `-fsanitize=fuzzer` (#2311)
Build clang so that it can compile targets with -fsanitize=fuzzer
without adding any runtime dependencies.
2019-04-11 09:51:19 -07:00
Max Moroz 946d0603ba
[infra] Enabling DataFlow build configuration (#1632). (#2292)
* [infra] Enabling DataFlow build configuration (#1632).

* Copy all data flow scripts from the libFuzzer repo.
2019-04-09 07:25:14 -07:00
Sebastian Pop 890c999225 enable builds of base images for AArch64 (#2176)
First step to enable oss-fuzzers to run on native aarch64 as mentioned in
https://github.com/google/oss-fuzz/issues/1754#issuecomment-461926649
2019-02-20 16:16:46 +11:00
Max Moroz b58fb5dfdb [infra] Remove unused coverage-report-server.py from base-clang image. 2019-01-03 12:44:07 -08:00
Max Moroz e348738942 [infra] Bump LLVM revision to r342582 to fix MSan issues. 2018-09-19 13:23:42 -07:00
Max Moroz e6bf26c8dd
[infra] Bump LLVM revision to r338452. (#1708) 2018-08-13 07:44:21 -07:00
Max Moroz 815727b0b3
[infra] Add retry wrapper to LLVM checkout commands. (#1668)
* [infra] Add retry wrapper to LLVM checkout commands.

* Fix a typo.

* Clean up the retry wrapper as per discussion with Abhishek.

* Fix disabling / enabling exit-on-error mode, bash is hard!

* Fix a comment.
2018-07-27 14:19:32 -07:00
Max Moroz 704da2ddac
[infra] Do not force our LLVM revision. (#1653) 2018-07-26 10:01:41 -07:00
Abhishek Arya d24dfd4971
Revert #1560 2018-06-27 08:27:13 -07:00
Abhishek Arya ffe166e75c
Fix #1560 2018-06-25 14:59:03 -07:00
Oliver Chang 952a758fce
Downgrade clang (#1560) 2018-06-25 14:25:35 +10:00
Max Moroz cfa75aa5c5 [infra] Bump LLVM revision to r333631 (fixes #1475). 2018-06-01 13:02:38 -07:00
Max Moroz 8b206083f7 [infra] Bump LLVM revision to r333416 (fixes #1469, #1279). 2018-05-31 12:52:59 -07:00
Oliver Chang 8db9a9081b Blacklist __gxx_personality_* libcxxabi functions (#1099). 2018-02-07 10:51:47 +11:00
Oliver Chang 2809452c40 Revert unwinder changes (#1099).
Actually breaks msan.
2018-02-05 16:31:18 +11:00
Oliver Chang 99bd56b54c fix typo 2018-02-05 15:41:32 +11:00
Oliver Chang 7ff3be27fb Use llvm unwinder (#1099). 2018-02-05 11:36:16 +11:00
Oliver Chang 8152732d30
Roll llvm (for #1030) 2017-12-09 15:05:37 -08:00
Oliver Chang 4862fdf384 Manually bump llvm revision to 315377 (#857).
Once chromium rolls past this, we will still update automatically.
2017-10-11 08:19:21 -07:00
Oliver Chang 78efe3f702 Use https for checking out llvm 2017-08-29 16:17:44 -07:00
Oliver Chang e1e4c337e4 Use new libFuzzer location.
Fixes #785
2017-08-21 18:10:12 -07:00
Oliver Chang af86b0cbdb Use chromium clang revision for base-clang image. (#640)
We still use trunk libFuzzer (from chromium mirror).
2017-05-31 12:30:29 -07:00
Oliver Chang 49baa72f5b Revert lld changes.
Causing:

"==19==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed" everywhere

Revert "[infra] disabling unused command line argument error"

This reverts commit 4332b19a9f.

Revert "[infra] using lld. Fixes #295. (#297)"

This reverts commit 446a6a7534.
2017-01-19 17:25:20 -08:00
Mike Aizatsky 446a6a7534 [infra] using lld. Fixes #295. (#297) 2017-01-19 13:14:30 -08:00
Mike Aizatsky 2de24fc520 [infra] build msan version of libcxx into /usr/msan/lib (#59). 2016-12-14 13:16:11 -08:00
Mike Aizatsky 26630f32cb [infra] .a merging is no longer necessary b/c it now happens during llvm build
60479ea31b

Thanks @EricWF

Issue #73
2016-11-18 12:45:02 -08:00
Mike Aizatsky 487e9f4ed6 [infra] removing FUZZER_LDFLAGS (fixes #73)
Workarounds libc++abi issue by folding libc++abi.a into libc++.a.
Will keep FUZZER_LDFLAGS empty for a while until tpm2 is fixed.
2016-11-18 12:16:35 -08:00
Mike Aizatsky 3599908dbf [infra] use $src, $out and $work in build scripts instead of /src, /out, /work (#88)
This will make it possible to run scripts outside of docker container.
2016-11-18 11:16:38 -08:00
Mike Aizatsky 48778facde folding coverage into base-libfuzzer since target images is where sources are 2016-11-03 20:13:29 -07:00
Mike Aizatsky 4a1014636d [infra] chown 2016-10-19 18:07:08 -07:00
Mike Aizatsky de6c41a671 [infra] building clang with a single RUN command.
Each RUN command creates an overlay layer. This results in keeeping all
intermediate files.

By consolidating all work in a single script, the size of base-clang
image is decreased from 3G to 1G.
2016-10-07 12:06:24 -07:00