Bug #72702 [NEW]: PHP7: Build with LTO / ld-gold broken

From: Date: Thu, 28 Jul 2016 20:16:24 +0000
Subject: Bug #72702 [NEW]: PHP7: Build with LTO / ld-gold broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202686@lists.php.net to get a copy of this message
From: spam2 at rhsoft dot net Operating system: Fedora 24 / GCC6 PHP version: 7.0.9 Package: Compile Failure Bug Type: Bug Bug description:PHP7: Build with LTO / ld-gold broken Description: ------------ you can't just bild PHP7 with Link-Time-Optimization / Gold-Linker _______________________________________ PHP 5.6 export CFLAGS="%{optflags} -O3 -fPIC -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops -flto -fno-fat-lto-objects -fuse-ld=gold -fuse-linker-plugin" export CXXFLAGS="$CFLAGS" export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold -pie %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops -flto -fno-fat-lto-objects -fuse-ld=gold -fuse-linker-plugin" export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack,-fuse-ld=gold %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops -flto -fno-fat-lto-objects-fuse-ld=gold -fuse-linker-plugin" _______________________________________ PHP 7.0.9: [root@testserver:~]$ cat /rpmbuild/SPECS/php.spec | grep FLAGS export CFLAGS="%{optflags} -O3 -fPIC -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops" export CXXFLAGS="$CFLAGS" export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops" export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack %{optflags} -O3 -funroll-loops -funswitch-loops -Wno-pointer-sign -minline-all-stringops" -- Edit bug report at https://bugs.php.net/bug.php?id=72702&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72702&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72702&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72702&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72702&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72702&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72702&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72702&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72702&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72702&r=support Expected behavior: https://bugs.php.net/fix.php?id=72702&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72702&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72702&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72702&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72702&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72702&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72702&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72702&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72702&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72702&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72702&r=mysqlcfg

« previous php.bugs (#202686) next »