mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-11 16:57:55 -06:00
scripts: Add a test case for Ubuntu 18.04 compiler error
Attempt to detect a bad build of Klipper and report an error. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2a74ffdb95
commit
50e9c6738f
2 changed files with 19 additions and 0 deletions
18
scripts/check-gcc.sh
Executable file
18
scripts/check-gcc.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
# This script checks for a broken Ubuntu 18.04 arm-none-eabi-gcc compile
|
||||
|
||||
f1="$1"
|
||||
f2="$2"
|
||||
|
||||
s1=`readelf -A "$f1" | grep "Tag_ARM_ISA_use"`
|
||||
s2=`readelf -A "$f2" | grep "Tag_ARM_ISA_use"`
|
||||
|
||||
if [ "$s1" != "$s2" ]; then
|
||||
echo ""
|
||||
echo "ERROR: The compiler failed to correctly compile Klipper"
|
||||
echo "It will be necessary to upgrade the compiler"
|
||||
echo "See: https://bugs.launchpad.net/ubuntu/+source/newlib/+bug/1767223"
|
||||
echo ""
|
||||
rm -f "$f1"
|
||||
exit 99
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue