Skip to content

build: fix oss-fuzz build.#5843

Merged
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:fix-fuzzer-build
Feb 5, 2019
Merged

build: fix oss-fuzz build.#5843
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:fix-fuzzer-build

Conversation

@htuch
Copy link
Member

@htuch htuch commented Feb 5, 2019

Due to the external_cmake changes (amongst others), we've regressed on
the fuzzer build. We need to do the final link now inside the cc_binary,
as external_cmake has issues with transitivity and unrelated binaries
(see bazel-contrib/rules_foreign_cc#222).

Risk level: Low
Testing: oss-fuzz Docker build for Envoy's fuzzers.

Signed-off-by: Harvey Tuch htuch@google.com

Due to the external_cmake changes (amongst others), we've regressed on
the fuzzer build. We need to do the final link now inside the cc_binary,
as external_cmake has issues with transitivity and unrelated binaries
(see bazel-contrib/rules_foreign_cc#222).

Risk level: Low
Testing: oss-fuzz Docker build for Envoy's fuzzers.

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch requested a review from snowp February 5, 2019 18:08
htuch added a commit to htuch/oss-fuzz that referenced this pull request Feb 5, 2019
Envoy should build again once
envoyproxy/envoy#5843 and this merge.

Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Contributor

@snowp snowp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, but LGTM

name = name + "_driverless",
copts = envoy_copts("@envoy", test = True),
linkopts = envoy_test_linkopts(),
linkopts = ["-lFuzzingEngine"] + envoy_test_linkopts(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So will -lFuzzingEngine no longer be passed by the oss-fuzz build? We only set it here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jonathanmetzman pushed a commit to google/oss-fuzz that referenced this pull request Feb 5, 2019
Envoy should build again once
envoyproxy/envoy#5843 and this merge.

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch merged commit 98a441f into envoyproxy:master Feb 5, 2019
@htuch htuch deleted the fix-fuzzer-build branch February 5, 2019 20:50
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
Due to the external_cmake changes (amongst others), we've regressed on
the fuzzer build. We need to do the final link now inside the cc_binary,
as external_cmake has issues with transitivity and unrelated binaries
(see bazel-contrib/rules_foreign_cc#222).

Risk level: Low
Testing: oss-fuzz Docker build for Envoy's fuzzers.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants