Skip to content

Conversation

Copy link

Copilot AI commented Nov 6, 2025

Debian 13 ships with GCC 13/14, which treats certain warnings as errors, breaking the Cassandra PHP driver build. This works on Debian 11 with older GCC.

Changes

  • vars/Debian-13.yml: Add Debian 13 configuration with PHP 8.2 default
  • tasks/install-cassandra-driver.yml: Pass CFLAGS and CXXFLAGS environment variables to compilation
  • defaults/main.yml: Add php_cassandra_driver_cflags and php_cassandra_driver_cxxflags variables with -Wno-error defaults

Technical approach

The -Wno-error flag prevents GCC from treating warnings as errors during compilation. Environment variables are injected at the make step:

- name: Cassandra | compile source code
  shell:
    cmd: |
      make -j{{ ansible_processor_cores }}
      make install
  environment:
    CFLAGS: "{{ php_cassandra_driver_cflags }}"
    CXXFLAGS: "{{ php_cassandra_driver_cxxflags }}"

Users can override flags via variables if stricter compilation is needed. Backward compatible with all Debian versions.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/ansible/ansible-lint/releases/latest
    • Triggering command: /usr/bin/python3 /home/REDACTED/.local/bin/ansible-lint tasks/install-cassandra-driver.yml (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

je veux rendre la compilation d'un driver PHP Cassandra C++ compatible avec debian 13. La version de GCC semble être problématique avec le makefile car la version est trop avancée. Cela fonctionne en debian 11


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix compilation issues for PHP Cassandra driver in Debian 13 Fix Cassandra PHP driver compilation on Debian 13 with GCC 13+ Nov 6, 2025
Copilot AI requested a review from mathieu-halluin November 6, 2025 10:58
Copilot finished work on behalf of mathieu-halluin November 6, 2025 10:58
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.

2 participants