Skip to content

Build in cloud build: image toolchain, no lint in packaging, tool packages from source - #89

Merged
Ale Paredes (ale7714) merged 3 commits into
mainfrom
fix/cloud-build-toolchain
Oct 8, 2026
Merged

Ale Paredes (ale7714) merged 3 commits into
mainfrom
fix/cloud-build-toolchain

Conversation

@ale7714

@ale7714 Ale Paredes (ale7714) commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Cloud builds of this module fail on the glibc 2.31 images before, during and after the build.

bin/setup.sh ran apt upgrade on the image and installed python3.11 and cmake from apt: no focal or bullseye apt carries python3.11, and their CMake is older than the 3.25 viam-cpp-sdk needs. The script now installs only wget, uses the image's Python 3.11, and puts the pip cmake wheel in the venv next to conan.

Packaging then ran lint first, which tries to apt-install clang-format-19 and fails; formatting stays its own target.

Three conan tool packages come prebuilt from conancenter against a newer glibc than 2.31 and are forced from source: b2 (boost), and m4 and pkgconf, which the libcurl autotools build needs and whose broken m4 made autom4te stop. Once viamrobotics/viam-cpp-sdk#715 publishes a glibc 2.31 b2 that flag is redundant; m4 and pkgconf stay.

Verified on the cloud build image: amd64 21462 and arm64 21463 pass.

🤖 Generated with Claude Code

apt has no python3.11 on focal or bullseye and its CMake is older than the 3.25 viam-cpp-sdk needs, while conancenter's prebuilt b2 requires glibc 2.32 against the 2.31 floor; the apt upgrade also rewrote the build image on every run.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The lint target installs clang-format-19 through apt, which no cloud build image carries, so the module build failed after compiling everything; formatting stays a separate target.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
conancenter ships those as binaries linked against a newer glibc than 2.31, and autom4te rejects the m4 that cannot run, which breaks the libcurl source build.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@viam-overwatch

Copy link
Copy Markdown
Contributor

Hey Ale Paredes (@ale7714) — CI is green and no reviewer is assigned yet. Could you request one when you have a chance?

Auto-comment from overwatch. Will not re-nudge for 7 days.

1 similar comment
@viam-overwatch

viam-overwatch Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Hey Ale Paredes (@ale7714) — CI is green and no reviewer is assigned yet. Could you request one when you have a chance?

Auto-comment from overwatch. Will not re-nudge for 7 days.

@ale7714
Ale Paredes (ale7714) merged commit 82569f4 into main Oct 8, 2026
5 checks passed
@ale7714
Ale Paredes (ale7714) deleted the fix/cloud-build-toolchain branch October 8, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant