Skip to content

Commit ee8d3e0

Browse files
committed
Add Cantera config.log capture to CI for debugging
To diagnose the persistent "Checking for C++ header file cmath... no" error, we need to see exactly what scons is trying to compile and why it's failing. Changes: 1. Search for Cantera's config.log in /private/tmp after build failure 2. Display the full config.log content in CI output 3. Copy config.log to /tmp/cantera-logs/ for artifact upload 4. Include /tmp/cantera-logs/ in the Homebrew logs artifact The config.log will show: - The exact test program scons compiled - The full compiler command line used - The compiler output (errors, warnings) - Any environment variables affecting the build This will reveal why the cmath header check fails despite all our compiler flags being correctly set.
1 parent b41fcbc commit ee8d3e0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/homebrew.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@ jobs:
7070
fi
7171
done
7272
fi
73+
74+
echo -e "\n=== Searching for Cantera config.log ==="
75+
cantera_config_log=$(find /private/tmp -name "config.log" -path "*/mfc--cantera*" 2>/dev/null | head -1)
76+
if [ -n "$cantera_config_log" ] && [ -f "$cantera_config_log" ]; then
77+
echo -e "\n\n====== Cantera config.log ======"
78+
echo "Found at: $cantera_config_log"
79+
cat "$cantera_config_log"
80+
# Copy to a known location for artifact upload
81+
mkdir -p /tmp/cantera-logs
82+
cp "$cantera_config_log" /tmp/cantera-logs/config.log
83+
else
84+
echo "Cantera config.log not found"
85+
echo "Searching in all /private/tmp directories:"
86+
find /private/tmp -name "config.log" 2>/dev/null || echo "No config.log files found"
87+
fi
7388
7489
- name: Upload Homebrew logs on failure
7590
if: failure()
@@ -78,6 +93,7 @@ jobs:
7893
name: homebrew-logs
7994
path: |
8095
/tmp/brew-install.log
96+
/tmp/cantera-logs/
8197
~/Library/Logs/Homebrew/mfc/
8298
if-no-files-found: ignore
8399

0 commit comments

Comments
 (0)