This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer][symbolizer] Checkout zlib
ClosedPublic

Authored by vitalybuka on Aug 15 2023, 6:36 PM.

Details

Summary

And make build script incremental.

We will eventually convert the script into ExternalProject_Add.

Diff Detail

Event Timeline

vitalybuka created this revision.Aug 15 2023, 6:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 6:36 PM
Herald added a subscriber: Enna1. · View Herald Transcript
vitalybuka requested review of this revision.Aug 15 2023, 6:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 6:36 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
MaskRay accepted this revision.Aug 15 2023, 7:11 PM
MaskRay added inline comments.
compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
55

$PWD

This revision is now accepted and ready to land.Aug 15 2023, 7:11 PM
vitalybuka edited the summary of this revision. (Show Details)Aug 15 2023, 7:28 PM
vitalybuka marked an inline comment as done.

PWD

This revision was landed with ongoing or failed builds.Aug 15 2023, 11:22 PM
This revision was automatically updated to reflect the committed changes.
hoy added a subscriber: hoy.Oct 31 2023, 10:17 AM

It looks like without ZLIB_SRC there isn't a clear way to specify a custom zlib source. Also the git clone action may not work in an environment without internet access. Can you advise how I should work around those? Thanks.

It looks like without ZLIB_SRC there isn't a clear way to specify a custom zlib source. Also the git clone action may not work in an environment without internet access. Can you advise how I should work around those? Thanks.

build_symbolizer.sh is a convenience script that is optional. It's not used if COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER (default to OFF) is off.
For a constrained environment without internet access, just use the default COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER=OFF :)

hoy added a comment.Oct 31 2023, 10:41 AM

It looks like without ZLIB_SRC there isn't a clear way to specify a custom zlib source. Also the git clone action may not work in an environment without internet access. Can you advise how I should work around those? Thanks.

build_symbolizer.sh is a convenience script that is optional. It's not used if COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER (default to OFF) is off.
For a constrained environment without internet access, just use the default COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER=OFF :)

I see. But we do want to use the internal symbolizer :) Do you think we can add ZLIB_SRC back while still keeping the git clone there?

It looks like without ZLIB_SRC there isn't a clear way to specify a custom zlib source. Also the git clone action may not work in an environment without internet access. Can you advise how I should work around those? Thanks.

build_symbolizer.sh is a convenience script that is optional. It's not used if COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER (default to OFF) is off.
For a constrained environment without internet access, just use the default COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER=OFF :)

I see. But we do want to use the internal symbolizer :) Do you think we can add ZLIB_SRC back while still keeping the git clone there?

Yes. I think restoring ZLIB_SRC is fine:)

Internally we use Bazel to reimplement the script and don't use the script.
The script is for sanitizer build bots and other users who build the internal symbolizer. I agree that having ZLIB_SRC is useful.

hoy added a comment.Oct 31 2023, 11:08 AM

It looks like without ZLIB_SRC there isn't a clear way to specify a custom zlib source. Also the git clone action may not work in an environment without internet access. Can you advise how I should work around those? Thanks.

build_symbolizer.sh is a convenience script that is optional. It's not used if COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER (default to OFF) is off.
For a constrained environment without internet access, just use the default COMPILER_RT_ENABLE_INTERNAL_SYMBOLIZER=OFF :)

I see. But we do want to use the internal symbolizer :) Do you think we can add ZLIB_SRC back while still keeping the git clone there?

Yes. I think restoring ZLIB_SRC is fine:)

Internally we use Bazel to reimplement the script and don't use the script.
The script is for sanitizer build bots and other users who build the internal symbolizer. I agree that having ZLIB_SRC is useful.

Sounds good. I can work on the restoration.