Skip to content

Commit e4b7b97

Browse files
bgoconnorclaude
andcommitted
headergen: install g++ in Dockerfile to enable line-profiler build
The HeaderGen Docker image previously installed only gcc, not g++. HeaderGen's transitive dependency `line-profiler` has a Cython C++ extension; on platforms where no prebuilt wheel exists (e.g., arm64 Linux + Python 3.10), pip falls back to building from source, which requires g++. The build then fails with: g++ -... -c line_profiler/_line_profiler.cpp -o ... error: command 'g++' failed: No such file or directory ERROR: Failed building wheel for line-profiler This change adds g++ to the apt-get install line. The image now builds cleanly on arm64 hosts as well as amd64. (Builds may have appeared to succeed previously on hosts where a line-profiler wheel was already cached from an earlier build with g++ present; fresh builds without the cache hit the source-compile path and surface the issue.) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5130d1a commit e4b7b97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/target_tools/headergen/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WORKDIR /app
1010

1111
# Install dependencies
1212
RUN apt-get update \
13-
&& apt-get -y install git gcc
13+
&& apt-get -y install git gcc g++
1414

1515

1616
COPY requirements.txt /app/requirements.txt

0 commit comments

Comments
 (0)