Bug #78360 [NEW]: clang build fails on Travis CI on gmp
From: stas@php.net
Operating system: Linux
PHP version: master-Git-2019-08-01 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:clang build fails on Travis CI on gmp
Description:
------------
Currently, setting compiler to clang on Travis CI makes the build fail
by not finding gmp.h. This is because gmp.h is stored in
/usr/include/x86_64-linux-gnu/gmp.h on ubuntu, which is handled by this
code in ext/gmp/config.m4:
MACHINE_INCLUDES=$($CC -dumpmachine)
for i in $PHP_GMP /usr/local /usr; do
test -f $i/include/gmp.h && GMP_DIR=$i && break
test -f $i/include/$MACHINE_INCLUDES/gmp.h && GMP_DIR=$i && break
done
The problem here is that clang produces not x86_64-linux-gnu but
x86_64-unknown-linux-gnu. Which leads it to missing the file.
https://wiki.debian.org/Multiarch/Tuples
suggests there's option
-print-multiarch but while gcc supports it, looks like clang does not.
--
Edit bug report at https://bugs.php.net/bug.php?id=78360&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78360&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78360&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78360&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78360&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78360&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78360&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78360&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78360&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78360&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78360&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78360&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78360&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78360&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78360&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78360&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78360&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78360&r=mysqlcfg
Thread (3 messages)
- stas@php.net