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: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SYSROOT_VERSION=0.7.0
SYSROOT_CLI_IMAGE=ghcr.io/faasm/cpp-sysroot:0.7.0
SYSROOT_VERSION=0.8.0
SYSROOT_CLI_IMAGE=ghcr.io/faasm/cpp-sysroot:0.8.0
COMPOSE_PROJECT_NAME=cpp-dev
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: ghcr.io/faasm/cpp-sysroot:0.7.0
image: ghcr.io/faasm/cpp-sysroot:0.8.0
steps:
# --- Update code ---
- name: "Checkout code"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.8.0
42 changes: 33 additions & 9 deletions docker/cpp-sysroot.dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
# llvm image is not re-built often, so the tag may be behind
FROM ghcr.io/faasm/llvm:0.7.0 AS llvm

# faabric-base image is not re-built often, so tag may be behind
FROM ghcr.io/faasm/faabric-base:0.21.0
# Start from a fresh ubuntu image, cpp-sysroot has little built deps.
FROM ubuntu:24.04

RUN apt update \
&& apt install -y --no-install-recommends \
autoconf \
automake \
autopoint \
autotools-dev \
clang-17 \
clang-format-17 \
cmake \
dpkg-dev \
gawk \
gettext \
git \
libltdl-dev \
libtool \
llvm-17 \
make \
m4 \
ninja-build \
pkg-config \
python3-pip \
python3-venv \
vim-tiny \
&& apt autoremove \
&& rm -rf /var/lib/apt/lists/*

SHELL ["/bin/bash", "-c"]
ENV CPP_DOCKER="on"

# Copy the toolchain and LLVM sources from the LLVM container
# Copy the toolchain and LLVM OpenMP sources necessary to build libfaasmp
COPY --from=llvm /usr/local/faasm /usr/local/faasm
COPY --from=llvm /opt/llvm-project /opt/llvm-project
COPY --from=llvm \
/opt/llvm-project/build/llvm/projects/openmp/runtime/src \
/opt/llvm-project/build/llvm/projects/openmp/runtime/src

# Update APT dependencies
RUN apt update && apt install -y autotools-dev
# Get the code and submodules
ARG SYSROOT_VERSION
RUN mkdir -p /code \
Expand Down Expand Up @@ -42,9 +69,6 @@ RUN cd /code/cpp \
libfaasmpi --native --shared \
# Install toolchain files
&& inv install \
# Build wasi-libc and reset the sysroot. The second call to LLVM just
# installs some headers that are purged
&& inv llvm.libc --purge llvm \
# Build Faasm WASM libraries for wasm32-wasi target
&& inv \
libfaasm \
Expand Down
1 change: 0 additions & 1 deletion libfaasmp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ set(LIB_FILES
if (CMAKE_SYSTEM_NAME STREQUAL "WASI")
message(STATUS "Libfaasmp WebAssembly build")

set(LLVM_OMP_SRC_DIR "/opt/llvm-project/openmp/runtime/src")
set(LLVM_OMP_BUILD_SRC_DIR "/opt/llvm-project/build/llvm/projects/openmp/runtime/src")
set(LIBOMP_ASMFILES "z_Linux_asm.S")
set(LIBOMP_HEADERS "${LLVM_OMP_BUILD_SRC_DIR}/omp.h")
Expand Down