mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
70ec62035c
Comment out subnormal (0x1) test inputs for fcvtzu/fcvtzs double-to- 64-bit-integer tests on AArch64. LLVM 22 misselects the SIMD form (fcvtzu d,d) which drops FE_INEXACT on subnormal inputs. Upstream: llvm/llvm-project#178603 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
2.0 KiB
Docker
57 lines
2.0 KiB
Docker
# Choose your LLVM version
|
|
ARG LLVM_VERSION=17
|
|
ARG UBUNTU_VERSION=24.04
|
|
ARG DISTRO_BASE=ubuntu${UBUNTU_VERSION}
|
|
ARG BUILD_BASE=ubuntu:${UBUNTU_VERSION}
|
|
ARG LIBRARIES=/opt/trailofbits
|
|
|
|
|
|
# Run-time dependencies go here
|
|
FROM ${BUILD_BASE} as base
|
|
|
|
# Build-time dependencies go here
|
|
# See here for full list of those dependencies
|
|
# https://github.com/lifting-bits/cxx-common/blob/master/docker/Dockerfile.ubuntu.vcpkg
|
|
FROM ghcr.io/lifting-bits/cxx-common/vcpkg-builder-ubuntu-v2:${UBUNTU_VERSION} as deps
|
|
ARG UBUNTU_VERSION
|
|
ARG LLVM_VERSION
|
|
ARG LIBRARIES
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -qqy python3 python3-pip libc6-dev wget liblzma-dev zlib1g-dev curl git build-essential ninja-build libselinux1-dev libbsd-dev ccache pixz xz-utils make rpm && \
|
|
if [ "$(uname -m)" = "x86_64" ]; then dpkg --add-architecture i386 && apt-get update && apt-get install -qqy gcc-multilib g++-multilib zip zlib1g-dev:i386; fi && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Source code build
|
|
FROM deps as build
|
|
ARG LLVM_VERSION
|
|
|
|
WORKDIR /remill
|
|
COPY ./ ./
|
|
|
|
RUN git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]"
|
|
|
|
RUN ./scripts/build.sh \
|
|
--llvm-version ${LLVM_VERSION} \
|
|
--prefix /opt/trailofbits \
|
|
--extra-cmake-args "-DCMAKE_BUILD_TYPE=Release" \
|
|
--disable-package
|
|
|
|
RUN pip3 install ./scripts/diff_tester_export_insns
|
|
|
|
# NOTE: At time of writing, tests only pass on x86_64 architecture
|
|
RUN cd remill-build && \
|
|
cmake --build . --target test_dependencies -- -j $(nproc) && \
|
|
CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --verbose --target test -- -j $(nproc) || [ "$(uname -m)" != "x86_64" ] && \
|
|
cmake --build . --target install
|
|
|
|
# Small installation image
|
|
FROM base as install
|
|
ARG LLVM_VERSION
|
|
|
|
COPY --from=build /opt/trailofbits /opt/trailofbits
|
|
COPY scripts/docker-lifter-entrypoint.sh /opt/trailofbits
|
|
ENV LLVM_VERSION=llvm${LLVM_VERSION} \
|
|
PATH=/opt/trailofbits/bin
|
|
ENTRYPOINT ["/opt/trailofbits/docker-lifter-entrypoint.sh"]
|