Bug #78360 [Opn->Csd]: clang build fails on Travis CI on gmp

From: Date: Sat, 07 Sep 2019 19:50:50 +0000
Subject: Bug #78360 [Opn->Csd]: clang build fails on Travis CI on gmp
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222626@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78360&edit=1 ID: 78360 Updated by: nikic@php.net Reported by: stas@php.net Summary: clang build fails on Travis CI on gmp -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: Linux PHP Version: master-Git-2019-08-01 (Git) -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Has been fixed by https://github.com/php/php-src/pull/4646. Previous Comments: ------------------------------------------------------------------------ [2019-08-01 08:14:03] stas@php.net The following pull request has been associated: Patch Name: Improvement for bug #78360 - also try host name On GitHub: https://github.com/php/php-src/pull/4488 Patch: https://github.com/php/php-src/pull/4488.patch ------------------------------------------------------------------------ [2019-08-01 07:06:44] stas@php.net Related To: Bug #69993 ------------------------------------------------------------------------ [2019-08-01 07:05:34] stas@php.net 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 this bug report at https://bugs.php.net/bug.php?id=78360&edit=1

« previous php.bugs (#222626) next »