Bug #76504 [NEW]: FTBFS with ICU 59+ and GCC 8
| From: | bugs dot php dot net at majkl578 dot cz | Date: | Wed, 20 Jun 2018 13:14:48 +0000 |
| Subject: | Bug #76504 [NEW]: FTBFS with ICU 59+ and GCC 8 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-215808@lists.php.net to get a copy of this message | ||
From: bugs dot php dot net at majkl578 dot cz
Operating system: Linux
PHP version: 7.3Git-2018-06-20 (Git)
Package: Compile Failure
Bug Type: Bug
Bug description:FTBFS with ICU 59+ and GCC 8
Description:
------------
Compilation of ext-intl fails with libicu 59+ and GCC 8.
Caused by
https://github.com/php/php-src/commit/5dd1ef90caec3021e6ce55c8554e695edf641eaf.
Test script:
---------------
Dockerfile:
====================
FROM debian:experimental
RUN apt-get update && apt-get install -y --no-install-recommends make
autoconf gcc-8 g++-8 libicu-dev bison ca-certificates curl
RUN mkdir /php && cd /php
RUN curl -Lq
https://github.com/php/php-src/archive/5dd1ef90caec3021e6ce55c8554e695edf641eaf.tar.gz
| tar -xzf - --strip-components=1
RUN ./buildconf && CC=gcc-8 CXX=g++-8 ./configure --disable-all
--enable-intl && make
====================
run as:
docker build -t php - < Dockerfile
Expected result:
----------------
no error
Actual result:
--------------
/bin/bash //libtool --silent --preserve-dup-deps --mode=compile g++-8
-I/usr/include -Wno-write-strings -D__STDC_LIMIT_MACROS
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11
-DU_USING_ICU_NAMESPACE=1 -std=c++11 -stdlib=libc++ -Iext/intl/
-I//ext/intl/ -DPHP_ATOM_INC -I//include -I//main -I/ -I/ext/date/lib
-I//ext/date/lib -I//TSRM -I//Zend -g -O2 -c
//ext/intl/intl_convertcpp.cpp -o ext/intl/intl_convertcpp.lo
g++-8: error: unrecognized command line option '-stdlib=libc++'
make: *** [Makefile:632: ext/intl/intl_convertcpp.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=76504&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76504&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76504&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76504&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76504&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76504&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76504&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76504&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76504&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76504&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76504&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76504&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76504&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76504&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76504&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76504&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76504&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76504&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76504&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76504&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76504&r=mysqlcfg