Bug 1494290 - GCC7/GCC8 in F26 breaks '-fipa-pta'
Summary: GCC7/GCC8 in F26 breaks '-fipa-pta'
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-22 00:03 UTC by Harald Reindl
Modified: 2019-05-28 22:05 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-28 22:05:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2017-09-22 00:03:15 UTC
what the hell does rpmbuild in F26 different than F24/F25?
is there some new sandboxing i am not aware of?

the script below works just fine outside rpmbuild in the same SSH session with the same user (which is part of the group apache) - /Volumes/dune/www-servers/cms/cms/config.inc.php exists and is readable but on a different partition and 
"/php-pgo-docroot -> /www/cms" is just a symlink as well as "/www -> /Volumes/dune/www-servers"

that whole stuff is completly unchanged and outside rpmbuild everything including benchamrks, our autotest-suite, starting the temporary webserver and spider every webpage just works

Don't forget to run 'make test'.

+ /usr/bin/bash /rpmbuild/PHP-PGO/profile.sh --php_build /home/builduser/rpmbuild/BUILD/php-7.1.9
-----------------------------------------------------------------------------------------
COLLECT DATA FOR PROFILE-GUIDED-OPTIMIZATION

HTTPD-BINARY:   /usr/sbin/httpd
PHP-MODULE:     /home/builduser/rpmbuild/BUILD/php-7.1.9/libs/libphp7.so
PHP-EXTENSIONS: /home/builduser/rpmbuild/BUILD/php-7.1.9/modules
PHP-CLI:        /home/builduser/rpmbuild/BUILD/php-7.1.9/sapi/cli/php
-----------------------------------------------------------------------------------------
Standard-Benchmarks (bench.php, micro_bench.php, mandelbrot.php, php_pgo_training):
0:01.15
0:06.44
0:02.71
0:00.04

/home/builduser/rpmbuild/BUILD/php-7.1.9/sapi/cli/php -c /rpmbuild/PHP-PGO/php.ini /php-pgo-docroot/cms/autotest.php

Warning: require(/Volumes/dune/www-servers/cms/cms/config.inc.php): failed to open stream: No such file or directory in /Volumes/dune/www-servers/cms/cms/autotest.php on line 86

Fatal error: require(): Failed opening required '/Volumes/dune/www-servers/cms/cms/config.inc.php' (include_path='.:/php-pgo-docroot/cms/php:/Volumes/dune/www-servers/phpincludes:/usr/share/pear:/usr/share/php') in /Volumes/dune/www-servers/cms/cms/autotest.php on line 86

PROFILING ERROR
[22-Sep-2017 01:56:27 Europe/Vienna] PHP Warning:  require_once(constants.php): failed to open stream: No such file or directory in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/init.php on line 28
[22-Sep-2017 01:56:27 Europe/Vienna] PHP Fatal error:  require_once(): Failed opening required 'constants.php' (include_path='.:/php-pgo-docroot/cms/php:/Volumes/dune/www-servers/phpincludes:/usr/share/pear:/usr/share/php') in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/init.php on line 28
[22-Sep-2017 01:56:27 Europe/Vienna] PHP Warning:  require_once(constants.php): failed to open stream: No such file or directory in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/index.php on line 28
[22-Sep-2017 01:56:27 Europe/Vienna] PHP Fatal error:  require_once(): Failed opening required 'constants.php' (include_path='.:/php-pgo-docroot/cms/php:/Volumes/dune/www-servers/phpincludes:/usr/share/pear:/usr/share/php') in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/index.php on line 28
[22-Sep-2017 01:56:27 Europe/Vienna] PHP Warning:  require(/Volumes/dune/www-servers/cms/cms/config.inc.php): failed to open stream: No such file or directory in /Volumes/dune/www-servers/cms/cms/autotest.php on line 86
[22-Sep-2017 01:56:27 Europe/Vienna] PHP Fatal error:  require(): Failed opening required '/Volumes/dune/www-servers/cms/cms/config.inc.php' (include_path='.:/php-pgo-docroot/cms/php:/Volumes/dune/www-servers/phpincludes:/usr/share/pear:/usr/share/php') in /Volumes/dune/www-servers/cms/cms/autotest.php on line 86
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.Ms3AmK (%build)


Fehler beim Bauen des RPM:
    Fehler-Status beim Beenden von /var/tmp/rpm-tmp.Ms3AmK (%build)
[builduser@testserver:/rpmbuild/SPECS]$ stat /Volumes/dune/www-servers/cms/cms/config.inc.php
  Datei: /Volumes/dune/www-servers/cms/cms/config.inc.php
  Größe: 1295           Blöcke: 8          EA Block: 4096   reguläre Datei
Gerät: 821h/2081d       Inode: 656986      Verknüpfungen: 1
Zugriff: (0660/-rw-rw----)  Uid: (   48/  apache)   Gid: (   48/  apache)
Zugriff    : 2017-09-22 01:40:01.528902354 +0200
Modifiziert: 2017-09-01 14:23:40.000000000 +0200
Geändert   : 2017-09-22 01:35:10.786407422 +0200
 Geburt    : -

Comment 1 Harald Reindl 2017-09-22 01:03:48 UTC
this is pretty sure a GCC bug - by hacking my profile.sh to use the system binaries instead the "make prof-gen" intermediate binary all is running just fine as before and like outside rpmbuild

+ /usr/bin/bash /rpmbuild/PHP-PGO/profile.sh --php_build /home/builduser/rpmbuild/BUILD/php-7.1.11
-----------------------------------------------------------------------------------------
COLLECT DATA FOR PROFILE-GUIDED-OPTIMIZATION

HTTPD-BINARY:   /usr/sbin/httpd
PHP-MODULE:     /usr/lib64/httpd/modules/libphp7.so
PHP-EXTENSIONS: /usr/lib64/php/modules
PHP-CLI:        /usr/bin/php
-----------------------------------------------------------------------------------------
Standard-Benchmarks (bench.php, micro_bench.php, mandelbrot.php, php_pgo_training):
0:00.48
0:02.58
0:01.23
0:00.62

/usr/bin/php -c /rpmbuild/PHP-PGO/php.ini /php-pgo-docroot/cms/autotest.php
Alle existierenden Tabellen im Vorfeld entfernen
User-ID 1 simulieren um Code-Shortcircuits zu ueberspringen
Installations-Script einbinden
Tabelle 'cl_autotest_haupt' angelegt
Tabelle 'cl_autotest_sub' angelegt
Tabelle 'cl_autotest_sub2' angelegt
Tabelle 'cl_autotest_virtual_pages' angelegt
Tabelle 'cl_autotest_termine' angelegt

+ QUIET_FLAG=--quiet
+ export 'CFLAGS=-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ CFLAGS='-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CC=gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ CC='gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CXXFLAGS=-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ CXXFLAGS='-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CXX=gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ CXX='gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ export 'SH_LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ SH_LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack'
+ export 'LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack -pie -fPIE'
+ LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack -pie -fPIE'
+ export EXTENSION_DIR=/usr/lib64/php/modules
+ EXTENSION_DIR=/usr/lib64/php/modules
+ ./configure --quiet --host=x86_64-redhat-linux --build=x86_64-redhat-linux --target=x86_64-redhat-linux --prefix=/usr --program-prefix= --libdir=/usr/lib64/php --disable-all --disable-dependency-tracking --enable-bcmath=shared --enable-calendar=shared --enable-cli --enable-ctype=shared --enable-dom=shared --enable-exif=shared --enable-fileinfo=shared --enable-filter --enable-hash=shared --enable-huge-code-pages --enable-inline-optimization --enable-intl=shared --enable-json=shared --enable-libxml --enable-mbregex --enable-mbstring=shared --enable-mysqlnd=shared --enable-opcache=shared --enable-opcache-jit --enable-pcntl=shared --enable-pdo=shared --enable-phar=shared --enable-posix=shared --enable-re2c-cgoto --enable-session=shared --enable-shared --enable-simplexml=shared --enable-soap=shared --enable-sockets=shared --enable-tokenizer=shared --enable-xml=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared --with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.lounge.d --with-curl=shared,/usr --with-freetype-dir=/usr --with-gd=shared,/usr --with-gettext=shared,/usr --with-iconv=shared --with-imap-ssl=/usr --with-imap=shared,/usr --with-kerberos=/usr --with-layout=GNU --with-libdir=lib64 --with-libedit=shared,/usr --with-libxml-dir=/usr --with-libzip=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=shared,mysqlnd --with-openssl=shared,/usr --with-pcre-jit --with-pcre-regex=/usr --with-pdo-mysql=shared,mysqlnd --with-pic --with-system-ciphers --with-system-tzdata --with-tidy=shared,/usr --with-zlib=shared --with-zlib-dir=/usr --disable-cgi --disable-dmalloc --disable-dtrace --disable-gcov --disable-gd-jis-conv --disable-ipv6 --disable-mysqlnd-compression-support --disable-opcache-file --disable-phpdbg --disable-rpath --disable-short-tags --disable-static --enable-gcc-global-regs --disable-debug
configure: WARNING: unrecognized options: --disable-dependency-tracking, --enable-opcache-jit
This is the test message -- configure: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You have built PHP for Apache's current non-threaded MPM.          |
| If you change Apache to use a threaded MPM you must reconfigure    |
| PHP with --enable-maintainer-zts                                   |
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

configure: WARNING: unrecognized options: --disable-dependency-tracking, --enable-opcache-jit
+ test 0 '!=' 0
+ make --quiet -j8 prof-gen

Comment 2 Harald Reindl 2017-09-22 02:32:54 UTC
looks like these one in combination are broken on F26 with GCC7, at least i was not able to nail it down to a single one of them when using -fprofile-generate

the resulting intermediate php 7.1.9 binary sows strange errors like open_basedir violations while mention the illegal path as a subfolder of the defined list up to non existing inlcudes which are there with correct permissions
____________________________________________

-fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -floop-block -floop-unroll-and-jam

F25:
export CFLAGS="-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=%{mtune} -mtune=%{mtune} -D_FORTIFY_SOURCE=2 -fdevirtualize-speculatively -fgraphite-identity -fipa-pta -fira-loop-pressure -fivopts -floop-block -floop-unroll-and-jam -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack"

F26:
export CFLAGS="-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=%{mtune} -mtune=%{mtune} -D_FORTIFY_SOURCE=2 -fivopts -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wstrict-aliasing -Wa,--noexecstack"
____________________________________________

in both cases

export CC="gcc $CFLAGS"
export CXXFLAGS="$CFLAGS"
export CXX="gcc $CFLAGS"
export SH_LDFLAGS="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump $CFLAGS"
export LDFLAGS="$SH_LDFLAGS -pie -fPIE"

+ ./configure --host=x86_64-redhat-linux --build=x86_64-redhat-linux --target=x86_64-redhat-linux --prefix=/usr --program-prefix= --libdir=/usr/lib64/php --disable-all --disable-dependency-tracking --enable-bcmath=shared --enable-calendar=shared --enable-cli --enable-ctype=shared --enable-dom=shared --enable-exif=shared --enable-fileinfo=shared --enable-filter --enable-hash=shared --enable-huge-code-pages --enable-inline-optimization --enable-intl=shared --enable-json=shared --enable-libxml --enable-mbregex --enable-mbstring=shared --enable-mysqlnd=shared --enable-opcache=shared --enable-opcache-jit --enable-pcntl=shared --enable-pdo=shared --enable-phar=shared --enable-posix=shared --enable-re2c-cgoto --enable-session=shared --enable-shared --enable-simplexml=shared --enable-soap=shared --enable-sockets=shared --enable-tokenizer=shared --enable-xml=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared --with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.lounge.d --with-curl=shared,/usr --with-freetype-dir=/usr --with-gd=shared,/usr --with-gettext=shared,/usr --with-iconv=shared --with-imap-ssl=/usr --with-imap=shared,/usr --with-kerberos=/usr --with-layout=GNU --with-libdir=lib64 --with-libedit=shared,/usr --with-libxml-dir=/usr --with-libzip=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=shared,mysqlnd --with-openssl=shared,/usr --with-pcre-jit --with-pcre-regex=/usr --with-pdo-mysql=shared,mysqlnd --with-pic --with-system-ciphers --with-system-tzdata --with-tidy=shared,/usr --with-zlib=shared --with-zlib-dir=/usr --disable-cgi --disable-dmalloc --disable-dtrace --disable-gcov --disable-gd-jis-conv --disable-ipv6 --disable-mysqlnd-compression-support --disable-opcache-file --disable-phpdbg --disable-rpath --disable-short-tags --disable-static --enable-gcc-global-regs --disable-debug

Comment 3 Harald Reindl 2018-03-18 02:04:03 UTC
still an iusse with gcc-7.3.1-5.fc27.x86_64

* Sun Mar 18 2018 Reindl Harald <h.reindl>
- add '-fipa-pta -fira-loop-pressure' back to compiler-flags
- '-fipa-pta': perform interprocedural pointer analysis and interprocedural modification and reference analysis
- '-fira-loop-pressure': use IRA to evaluate register pressure in loops for decisions to move loop invariants
  This option usually results in generation of faster and smaller code on machines with large register files
- we assume https://bugzilla.redhat.com/show_bug.cgi?id=1494290#c2 is fixed with GCC 7.3.1

Don't forget to run 'make test'.

+ /usr/bin/bash /rpmbuild/PHP-PGO/profile.sh --php_build /home/builduser/rpmbuild/BUILD/php-7.2.4
-----------------------------------------------------------------------------------------
COLLECT DATA FOR PROFILE-GUIDED-OPTIMIZATION

HTTPD-BINARY:   /usr/sbin/httpd
PHP-MODULE:     /home/builduser/rpmbuild/BUILD/php-7.2.4/libs/libphp7.so
PHP-EXTENSIONS: /home/builduser/rpmbuild/BUILD/php-7.2.4/modules
PHP-CLI:        /home/builduser/rpmbuild/BUILD/php-7.2.4/sapi/cli/php
-----------------------------------------------------------------------------------------
Standard-Benchmarks (bench.php, micro_bench.php, mandelbrot.php, php_pgo_training):
0:00.59
0:04.28
0:03.56
0:00.06

/home/builduser/rpmbuild/BUILD/php-7.2.4/sapi/cli/php -c /rpmbuild/PHP-PGO/php.ini /php-pgo-docroot/cms/autotest.php

Warning: file_exists(): open_basedir restriction in effect. File(/Volumes/dune/www-servers/cms/cms/cms.ini.php) is not within the allowed path(s): (/Volumes/dune/www-servers:/usr/share/pear:/usr/share/php:/rpmbuild/PHP-PGO) in /Volumes/dune/www-servers/cms/cms/autotest.php on line 35
UNCONFIGURED

PROFILING ERROR
[18-Mar-2018 03:02:38 Europe/Vienna] PHP Warning:  chdir(): open_basedir restriction in effect. File(/home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts) is not within the allowed path(s): (/Volumes/dune/www-servers:/usr/share/pear:/usr/share/php:/rpmbuild/PHP-PGO) in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/init.php on line 2
[18-Mar-2018 03:02:38 Europe/Vienna] PHP Warning:  require_once(): open_basedir restriction in effect. File(constants.php) is not within the allowed path(s): (/Volumes/dune/www-servers:/usr/share/pear:/usr/share/php:/rpmbuild/PHP-PGO) in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/init.php on line 28
[18-Mar-2018 03:02:38 Europe/Vienna] PHP Warning:  require_once(constants.php): failed to open stream: Operation not permitted in /home/builduser/rpmbuild/PHP-PGO/benchmarks/php_pgo_training_scripts/init.php on line 28

Comment 4 Harald Reindl 2018-03-18 02:14:05 UTC
'-fipa-pta' alone is enough to let behave PHP wrong with 'make prof-gen; profile.sh; make prof-clean; make prof-use'

* Sun Mar 18 2018 Reindl Harald <h.reindl>
- try to add '-fipa-pta' back to compiler-flags
- still broken with GCC7 (https://bugzilla.redhat.com/show_bug.cgi?id=1494290#c3)
- description: https://kristerw.blogspot.co.at/2017/06/fipa-pta.html



+ export 'CFLAGS=-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ CFLAGS='-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CC=gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ CC='gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CXXFLAGS=-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ CXXFLAGS='-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CPPFLAGS=-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ CPPFLAGS='-m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ export 'CXX=gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ CXX='gcc -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ export 'SH_LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ SH_LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'
+ export 'LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack -pie -fPIE'
+ LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,nodump -m64 -O3 -mfpmath=sse -mavx -msse2avx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fipa-pta -ftree-vectorize -fsplit-loops -fmerge-all-constants -fomit-frame-pointer -fsemantic-interposition -fstack-protector-strong --param=ssp-buffer-size=8 -fstrict-aliasing -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -fvariable-expansion-in-unroller -fvect-cost-model=unlimited -fwrapv -g0 -minline-all-stringops -pipe -fno-align-labels -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack -pie -fPIE'
+ export EXTENSION_DIR=/usr/lib64/php/modules
+ EXTENSION_DIR=/usr/lib64/php/modules
+ ./configure --quiet --host=x86_64-redhat-linux --build=x86_64-redhat-linux --target=x86_64-redhat-linux --prefix=/usr --program-prefix= --libdir=/usr/lib64/php --disable-all --enable-bcmath=shared --enable-calendar=shared --enable-cli --enable-ctype=shared --enable-dom=shared --enable-exif=shared --enable-fileinfo=shared --enable-filter --enable-hash=shared --enable-huge-code-pages --enable-inline-optimization --enable-intl=shared --enable-json=shared --enable-libxml --enable-mbregex --enable-mbstring=shared --enable-mysqlnd=shared --enable-opcache=shared --enable-pcntl=shared --enable-pdo=shared --enable-phar=shared --enable-posix=shared --enable-re2c-cgoto --enable-session=shared --enable-shared --enable-simplexml=shared --enable-soap=shared --enable-sockets=shared --enable-tokenizer=shared --enable-xml=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared --with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.lounge.d --with-curl=shared,/usr --with-freetype-dir=/usr --with-gd=shared,/usr --with-gettext=shared,/usr --with-iconv=shared --with-imap-ssl=/usr --with-imap=shared,/usr --with-kerberos=/usr --with-layout=GNU --with-libdir=lib64 --with-libedit=shared,/usr --with-libxml-dir=/usr --with-libzip=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=shared,mysqlnd --with-openssl=shared,/usr --with-pcre-jit --with-pcre-regex=/usr --with-pdo-mysql=shared,mysqlnd --with-pic --with-system-ciphers --with-system-tzdata --with-tidy=shared,/usr --with-zlib=shared --with-zlib-dir=/usr --disable-cgi --disable-dmalloc --disable-dtrace --disable-gcov --disable-gd-jis-conv --disable-ipv6 --disable-mysqlnd-compression-support --disable-opcache-file --disable-phpdbg --disable-rpath --disable-short-tags --disable-static --enable-gcc-global-regs --disable-debug
This is the test message -- configure: WARNING: PHP is going to be linked with an external PCRE, --with-pcre-valgrind has no effect
configure: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared

Comment 5 Fedora End Of Life 2018-05-03 08:43:22 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 6 Harald Reindl 2018-07-30 13:50:59 UTC
still a problem on F28 with GCC8 and probably even worser because more subtle, way later and only with luck found by my testsuite

"application/vnd.openxmlformats-officedocument.presentationml.presentationapplication/octet-stream" is a wild mix of strings from different places

PROFILING ERROR
[30-Jul-2018 15:42:41 Europe/Vienna] PHP Notice: FILEINFO: /fileinfo_samples/sample.pptx => pptx => application/vnd.openxmlformats-officedocument.presentationml.presentationapplication/octet-stream in /Volumes/dune/www-servers/cms/cms/autotests/custom/fileinfo.php on line 31
[30-Jul-2018 15:42:41 Europe/Vienna] PHP Notice: FILEINFO: /fileinfo_samples/sample.docx => docx => application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/octet-stream in /Volumes/dune/www-servers/cms/cms/autotests/custom/fileinfo.php on line 31
[30-Jul-2018 15:42:41 Europe/Vienna] PHP Notice: FILEINFO: /fileinfo_samples/sample.ppsx => ppsx => application/vnd.openxmlformats-officedocument.presentationml.presentationapplication/octet-stream in /Volumes/dune/www-servers/cms/cms/autotests/custom/fileinfo.php on line 31
[30-Jul-2018 15:42:41 Europe/Vienna] PHP Notice: CUSTOM-TEST: fileinfo.php
Notice: FILEINFO: /fileinfo_samples/sample.pptx => pptx => application/vnd.openxmlformats-officedocument.presentationml.presentationapplication/octet-stream in /Volumes/dune/www-servers/cms/cms/autotests/custom/fileinfo.php on line 31

Comment 7 Harald Reindl 2018-07-30 14:05:58 UTC
make prof-gen

throw "-fipa-pta" in the mix and php has subtle errors

https://kristerw.blogspot.com/2017/06/fipa-pta.html sounds cool but not when the resulting binary is broken and given that the problem appears very very late in the test-suite and no other warnings after spider a full featured cms for collect profiling informations without a single warning...

+ export 'CXXFLAGS=-m64 -O3 -mfpmath=sse -msse2avx -mavx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -g0 -pipe -fstack-protector-strong --param=ssp-buffer-size=8 -falign-functions -falign-jumps -falign-loops -fno-align-labels -fdce -fdse -fexpensive-optimizations -fgraphite-identity -fipa-cp-clone -floop-unroll-and-jam -fmove-loop-invariants -fomit-frame-pointer -fopt-info-vec-optimized -foptimize-strlen -fpeel-loops -fsemantic-interposition -fsplit-loops -fsplit-paths -fstrict-aliasing -ftree-ch -ftree-dce -ftree-dse -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -ftree-pre -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-slp-vectorize -funroll-loops -funswitch-loops -fvariable-expansion-in-unroller -fsimd-cost-model=unlimited -fvect-cost-model=unlimited -fwrapv -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'

+ CXXFLAGS='-m64 -O3 -mfpmath=sse -msse2avx -mavx -march=sandybridge -mtune=sandybridge -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -g0 -pipe -fstack-protector-strong --param=ssp-buffer-size=8 -falign-functions -falign-jumps -falign-loops -fno-align-labels -fdce -fdse -fexpensive-optimizations -fgraphite-identity -fipa-cp-clone -floop-unroll-and-jam -fmove-loop-invariants -fomit-frame-pointer -fopt-info-vec-optimized -foptimize-strlen -fpeel-loops -fsemantic-interposition -fsplit-loops -fsplit-paths -fstrict-aliasing -ftree-ch -ftree-dce -ftree-dse -ftree-loop-distribution -ftree-loop-if-convert -ftree-loop-if-convert-stores -ftree-loop-im -ftree-loop-ivcanon -ftree-pre -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-slp-vectorize -funroll-loops -funswitch-loops -fvariable-expansion-in-unroller -fsimd-cost-model=unlimited -fvect-cost-model=unlimited -fwrapv -fno-exceptions -fno-gcse -fno-math-errno -fuse-ld=gold -fuse-linker-plugin -Wformat -Werror=format-security -Wno-stack-protector -Wno-deprecated-declarations -Wstrict-aliasing -Wa,--noexecstack'

Comment 8 Marek Polacek 2018-08-10 13:54:21 UTC
Please provide a stand-alone testcase.

Comment 9 Harald Reindl 2018-08-10 13:57:46 UTC
how should i provide a stand-alone testcase?

the php sources are public available as well as the "run-tests.php" in the tarballs, given that random own tests are failing and the whole pgo build is stopped the testsuite from php with around 150000 tests will show the fallout too

Comment 10 Ben Cotton 2019-05-02 21:10:31 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 11 Ben Cotton 2019-05-28 22:05:57 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.