Skip to content

fix(install): Install a C compiler for camera_helper - #633

Open
Tekunalogy wants to merge 1 commit into
mainfrom
fix/install-c-compiler
Open

Tekunalogy wants to merge 1 commit into
mainfrom
fix/install-c-compiler

Conversation

@Tekunalogy

Copy link
Copy Markdown
Member

Summary

The backend compiles camera_helper.so when it starts, but install_requirements.sh didn't install a compiler. On machines without cc, dwe_os_2.service crash-looped until systemd stopped restarting it. The loader also ignored the build's exit code, so the log showed a missing .so error instead of the missing compiler.

  • install_requirements.sh now installs build-essential (the same package the Docker image uses). It also brings the C and Linux headers that camera_helper.c includes.
  • camera_helper_loader.py now checks the build's exit code and raises an error saying a C compiler is required, with the install command.

Fixes #632

Type of change

  • Bug fix
  • Feature / Refactor
  • Breaking change
  • Misc.

Testing

  • Simulated a missing compiler by running the loader with cc off the PATH: it now raises RuntimeError: Failed to build camera_helper.so. A C compiler is required, install one with: sudo apt-get install -y build-essential.
  • Not yet tested on a fresh install.

🤖 Generated with Claude Code

The backend compiles camera_helper.so when it starts, but
install_requirements.sh didn't install a compiler, so the service
crash-looped on machines without cc. The loader also ignored the build's
exit code, so the log only showed a missing .so error.

Install build-essential during setup, and raise a clear error when the
build fails.

Closes #632
@github-actions

Copy link
Copy Markdown

Preview build: preview-pr-633 (v0.9.0-pr633.6a9d8cb, built from 6a9d8cb)

curl -s https://raw.githubusercontent.com/DeepWaterExploration/dweOS/main/install.sh | sudo bash -s preview-pr-633

Rebuilt on every push. Closing this pull request deletes the preview.

@Tekunalogy
Tekunalogy requested a review from brandonhs November 17, 2026 00:04
@brandonhs

Copy link
Copy Markdown
Member

Has this ever occurred? The c compiler should be installed in install_requirements.sh.

camera_helper_loader should be replaced with standard ioctls

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.

dwe_os_2.service crash-loops when no C compiler is installed

2 participants