Bug #77445 [Com]: Link-Time-Optimizations fail

From: Date: Fri, 11 Jan 2019 11:08:19 +0000
Subject: Bug #77445 [Com]: Link-Time-Optimizations fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218902@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77445&edit=1 ID: 77445 Comment by: spam2 at rhsoft dot net Reported by: dpa-bugs at aegee dot org Summary: Link-Time-Optimizations fail Status: Open Type: Bug Package: *General Issues Operating System: Linux PHP Version: 7.1.26 Block user comment: N Private report: N New Comment: it's a long known problem that you can't use LTO until you use --disable-gcc-global-regs which is really sad because the best performance would be --enable-gcc-global-regs + LTO + PGO Previous Comments: ------------------------------------------------------------------------ [2019-01-11 11:05:43] nikic@php.net You need to build with --disable-gcc-global-regs. ------------------------------------------------------------------------ [2019-01-11 11:03:01] dpa-bugs at aegee dot org Description: ------------ With gcc 8.2.1 -flto build fails: /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: /src/mail/imap-2007f//lib/libc-client.a(osdep.o): in function `ssl_onceonlyinit': /src/mail/imap-2007f/c-client/osdep.c:302: warning: the use of tmpnam' is dangerous, better use mkstemp' /src/http/php-7.1.26/Zend/zend_vm_execute.h: In function 'ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_TMPVARCV_TMPVARCV_HANDLER': /src/http/php-7.1.26/Zend/zend_vm_execute.h:326:38: error: global register variable follows a function definition register zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG); ^ /src/http/php-7.1.26/Zend/zend_vm_execute.h:332:34: error: global register variable follows a function definition register const zend_op* volatile opline __asm__(ZEND_VM_IP_GLOBAL_REG); ^ /src/http/php-7.1.26/ext/readline/readline_cli.c: In function 'cli_completion_generator_ht.constprop': /src/http/php-7.1.26/ext/readline/readline_cli.c:408:15: warning: 'name' may be used uninitialized in this function [-Wmaybe-uninitialized] zend_string *name; ^ /src/http/php-7.1.26/sapi/cli/php_cli_server.c: In function 'php_cli_server_client_read_request_on_path': /src/http/php-7.1.26/sapi/cli/php_cli_server.c:1571:29: warning: 'vpath_len' may be used uninitialized in this function [-Wmaybe-uninitialized] client->request.vpath_len = vpath_len; ^ /src/http/php-7.1.26/sapi/cli/php_cli_server.c:1568:10: note: 'vpath_len' was declared here size_t vpath_len; ^ /src/http/php-7.1.26/Zend/zend_execute.c: In function 'zend_check_arg_type': /src/http/php-7.1.26/Zend/zend_execute.c:959:3: warning: 'ce' may be used uninitialized in this function [-Wmaybe-uninitialized] zend_verify_arg_error(zf, cur_arg_info, arg_num, ce, arg); ^ /src/http/php-7.1.26/Zend/zend_execute.c:948:20: note: 'ce' was declared here zend_class_entry *ce; ^ lto-wrapper: fatal error: cc returned 1 exit status compilation terminated. /usr/local/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make: *** [Makefile:300: sapi/cli/php] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77445&edit=1

« previous php.bugs (#218902) next »