Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tools/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ DEV_EXTRAS_IMAGE = "gcr.io/pixie-oss/pixie-dev-public/dev_image_with_extras:$(DE

## Clang deb parameters
CLANG_VERSION := 15.0
CLANG_SUFFIX := pl12
CLANG_SUFFIX := pl13

CLANG_TAG="$(CLANG_VERSION)-$(CLANG_SUFFIX)"

clang_deb_fname := "clang-$(CLANG_TAG).deb"
clang_linters_deb_fname := "clang-linters-$(CLANG_TAG).deb"
clang_gs_path := gs://pixie-dev-public/clang/$(CLANG_TAG)
clang_deb_image_tag := "gcr.io/pixie-oss/pixie-dev-public/clang_deb_builder_image:$(CLANG_VERSION)"
CLANG_BUILD_DIR := "$(BUILD_DIR)/clang-$(CLANG_TAG)"

Expand Down Expand Up @@ -164,7 +163,6 @@ upload_clang_deb: build_clang_deb_image ## Target to build and upload clang deb
$(DOCKER) run --rm -e CLANG_SUFFIX=$(CLANG_SUFFIX) -e CLANG_VERSION=$(CLANG_VERSION) -v $(PWD)/$(CLANG_BUILD_DIR):/image $(clang_deb_image_tag)

sha256sum $(CLANG_BUILD_DIR)/* > $(CLANG_BUILD_DIR)/sha256sums
gsutil cp $(CLANG_BUILD_DIR)/* $(clang_gs_path)/
$(GH_RELEASE_UPLOAD) clang $(CLANG_TAG) $(CLANG_BUILD_DIR)/*

cat $(CLANG_BUILD_DIR)/sha256sums
Expand Down
37 changes: 37 additions & 0 deletions tools/docker/clang_deb_image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ FROM ubuntu:18.04@sha256:8aa9c2798215f99544d1ce7439ea9c3a6dfd82de607da1cec3a8a2f
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y --fix-missing
RUN apt-get install -y ruby ruby-dev rubygems build-essential
RUN gem install dotenv -v 2.8.1
RUN gem install --no-document fpm

RUN apt-get install -y bison build-essential flex git libedit-dev lsb \
Expand Down Expand Up @@ -177,6 +178,42 @@ RUN /scripts/build_llvm.sh \
--sysroot /sysroots/x86_64 \
--target_arch x86_64

# x86_64 sysroot with ASAN instrumentation.
RUN /scripts/build_llvm.sh \
--llvm_git_repo "${LLVM_GIT_PATH}" \
--c_compiler_path "${CLANG}" \
--cxx_compiler_path "${CLANGPP}" \
--install_dir /opt/llvm-15.0-libcxx-x86_64-sysroot-asan \
--build_type llvm_libs \
--target_libcxx_path /opt/libcxx-15.0-x86_64-sysroot \
--sysroot /sysroots/x86_64 \
--target_arch x86_64 \
--build_with_asan

# x86_64 sysroot with MSAN instrumentation.
RUN /scripts/build_llvm.sh \
--llvm_git_repo "${LLVM_GIT_PATH}" \
--c_compiler_path "${CLANG}" \
--cxx_compiler_path "${CLANGPP}" \
--install_dir /opt/llvm-15.0-libcxx-x86_64-sysroot-msan \
--build_type llvm_libs \
--target_libcxx_path /opt/libcxx-15.0-x86_64-sysroot \
--sysroot /sysroots/x86_64 \
--target_arch x86_64 \
--build_with_msan

# x86_64 sysroot with TSAN instrumentation.
RUN /scripts/build_llvm.sh \
--llvm_git_repo "${LLVM_GIT_PATH}" \
--c_compiler_path "${CLANG}" \
--cxx_compiler_path "${CLANGPP}" \
--install_dir /opt/llvm-15.0-libcxx-x86_64-sysroot-tsan \
--build_type llvm_libs \
--target_libcxx_path /opt/libcxx-15.0-x86_64-sysroot \
--sysroot /sysroots/x86_64 \
--target_arch x86_64 \
--build_with_tsan

# aarch64 sysroot
RUN /scripts/build_llvm.sh \
--llvm_git_repo "${LLVM_GIT_PATH}" \
Expand Down
3 changes: 3 additions & 0 deletions tools/docker/clang_deb_image/create_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ tar_llvm_libs "libcxx" "" "asan"
tar_llvm_libs "libcxx" "" "msan"
tar_llvm_libs "libcxx" "" "tsan"
tar_llvm_libs "libcxx" "x86_64"
tar_llvm_libs "libcxx" "x86_64" "asan"
tar_llvm_libs "libcxx" "x86_64" "msan"
tar_llvm_libs "libcxx" "x86_64" "tsan"
tar_llvm_libs "libcxx" "aarch64"

tar_llvm_libs "libstdc++" ""
Expand Down