Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP compile errors with 7.1.13 and 7.0.27 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Tue Feb 06, 2018 3:18 pm    Post subject: PHP compile errors with 7.1.13 and 7.0.27 [SOLVED] Reply with quote

Working on PHP rebuilds after icu update. I'm running into some weird compile errors. Things go south around here...

Code:
/bin/sh /var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/libtool --silent --preserve-dup-deps --mode=compile x86_64-pc-linux-g
nu-gcc -I/usr/include  -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/intl/ -I/var/tmp/portage/dev-
lang/php-7.1.13/work/sapis-build/cli/ext/intl/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/include -I/va
r/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/main -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/mbstring/libmbfl/mbfl -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/zip/lib -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/TSRM -I/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/Zend    -I/usr/include -O2 -pipe -DZEND_SIGNALS   -c /var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/collator/collator.c -o ext/intl/collator/collator.lo
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/unistr.h:32,
                 from /var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.h:26,
                 from /var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:21:
/usr/include/unicode/umachine.h:347:13: error: âchar16_tâ does not name a type
     typedef char16_t UChar;
             ^
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/unistr.h:32,
                 from /var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.h:26,
                 from /var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:21:
/usr/include/unicode/uversion.h:167:55: error: âUCharâ does not name a type
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^


I'll get a ton of these char type errors. Eventually, it dies here...

Code:
/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:40:9: error: âutf16â was not declared in this scope
  UChar *utf16 = ret.getBuffer(capacity);
         ^
/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:40:21: error: âclass icu::UnicodeStringâ has no member named âgetBufferâ
  UChar *utf16 = ret.getBuffer(capacity);
                     ^
/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:45:9: error: âu_strFromUTF8WithSubâ was not declared in this scope
   status);
         ^
/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp: In function âzend_string* intl_charFromString(const icu::UnicodeString&, UErrorCode*)â:
/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:77:8: error: âUCharâ does not name a type
  const UChar *utf16buf = from.getBuffer();
        ^
/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli/ext/intl/intl_convertcpp.cpp:79:61: error: âutf16bufâ was not declared in this scope
  u_strToUTF8WithSub(ZSTR_VAL(u8res), capacity, &actual_len, utf16buf, from.length(),
                                                             ^
make: *** [Makefile:748: ext/intl/intl_convertcpp.lo] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-lang/php-7.1.13::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/php-7.1.13::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/php-7.1.13::gentoo'`.
 * The complete build log is located at '/var/log/builds/dev-lang:php-7.1.13:20180206-150057.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/php-7.1.13/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-7.1.13/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/php-7.1.13/work/sapis-build/cli'
 * S: '/var/tmp/portage/dev-lang/php-7.1.13/work/php-7.1.13'


>>> Failed to emerge dev-lang/php-7.1.13, Log file:

>>>  '/var/log/builds/dev-lang:php-7.1.13:20180206-150057.log'


Here are the USE flags for the PHP versions...

Code:
[ebuild   R    ] dev-lang/php-7.0.27:7.0::gentoo  USE="apache2 bzip2 cgi cli crypt ctype curl exif fileinfo filter ftp gd hash iconv imap intl json mhash mysql mysqli nls opcache pdo phar posix readline session simplexml snmp soap sockets sqlite ssl tokenizer truetype unicode xml xmlreader xmlrpc zip zlib -acl -bcmath -berkdb -calendar -cdb -cjk -coverage -debug -embed -enchant (-firebird) -flatfile -fpm -gdbm -gmp -inifile -iodbc -ipv6 -kerberos -ldap -ldap-sasl -libedit -libressl -mssql -oci8-instant-client -odbc -pcntl -phpdbg -postgres -qdbm -recode (-selinux) -sharedmem -spell -systemd -sysvipc -threads -tidy -wddx -webp -xmlwriter -xpm -xslt" 0 KiB
[ebuild   R    ] dev-lang/php-7.1.13:7.1::gentoo  USE="apache2 bzip2 cgi cli crypt ctype curl exif fileinfo filter ftp gd hash iconv imap intl json mhash mysql mysqli nls opcache pdo phar posix readline session simplexml snmp soap sockets sqlite ssl tokenizer truetype unicode xml xmlreader xmlrpc zip zlib -acl -bcmath -berkdb -calendar -cdb -cjk -coverage -debug -embed -enchant (-firebird) -flatfile -fpm -gdbm -gmp -inifile -iodbc -ipv6 -kerberos -ldap -ldap-sasl -libedit -libressl -mssql -oci8-instant-client -odbc -pcntl -phpdbg -postgres -qdbm -recode (-selinux) -sharedmem -spell -systemd -sysvipc {-test} -threads -tidy -wddx -webp -xmlwriter -xpm -xslt" 0 KiB


Here is my emerge --info output..

Code:
emerge --info
Portage 2.3.19 (python 3.4.5-final-0, default/linux/amd64/17.0, gcc-4.9.3, glibc-2.25-r9, 4.9.34-gentoo x86_64)
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2670_0_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:     1015748 total,    246288 free
KiB Swap:     999996 total,    867788 free
Timestamp of repository gentoo: Tue, 06 Feb 2018 11:00:01 +0000
Head commit of repository gentoo: d53245ce5666e61659ee995ff3645b26fcc5cbbb
sh bash 4.4_p12
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0-r4::gentoo, 6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.rackspace.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="amd64 apache2 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv innodb maildir modules multilib mysql mysqli ncurses nptl nptlonly openmp openssh pam pcre php pwdb readline sasl seccomp snortsam ssl tcpd unicode vhosts xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi unixd authn_core authz_core access_compat slotmem_shm socache_shmcb" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Any ideas?

Thanks!
hanji
_________________
Server Admin Blog - Uno-Code.com


Last edited by hanj on Tue Feb 06, 2018 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31396
Location: here

PostPosted: Tue Feb 06, 2018 3:27 pm    Post subject: Reply with quote

Similar to this problem.
asturm wrote:
Please switch to a supported compiler for your profile.

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Tue Feb 06, 2018 4:21 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Similar to this problem.
asturm wrote:
Please switch to a supported compiler for your profile.


Thank you! Switching gcc worked!

hanji
_________________
Server Admin Blog - Uno-Code.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum