Bug #71619 [Fbk]: thread-local storage not supported for this target

From: Date: Sat, 20 Feb 2016 14:43:16 +0000
Subject: Bug #71619 [Fbk]: thread-local storage not supported for this target
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199356@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71619&edit=1 ID: 71619 Updated by: ab@php.net Reported by: dreddy at spectraenergy dot com Summary: thread-local storage not supported for this target Status: Feedback Type: Bug Package: Compile Failure Operating System: AIX 6.1 PHP Version: 5.5.32 Block user comment: N Private report: N New Comment: Thanks for the followup. From your output, the gcc version is 3.4.6, not 4.6. Please try a newer gcc version. Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-02-19 15:12:13] ann dot matos dot ctr at us dot af dot mil 187: error: thread-local storage not supported for this target *** Error code 1 make: Fatal error: Command failed for target `main/php_open_temporary_file.lo' oraweb@bonjovi.area52.afnoapps.usaf.mil 68: gcc -v Reading specs from /usr/local/lib/../lib/gcc/i386-pc-solaris2.10/3.4.6/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 Thread model: posix gcc version 3.4.6 Please assist, I am at the version 4.6 for the gcc compiler, yet I still generate this error. ------------------------------------------------------------------------ [2016-02-18 10:59:57] ab@php.net Please use gcc at least 4.6 as discussed in bug #70747. Thanks. ------------------------------------------------------------------------ [2016-02-17 21:01:54] dreddy at spectraenergy dot com Description: ------------ This problem was first introduced in 5.5.28 In main/php_open_temporary_file.c, the following code does not look correct, I suspect it should be testing the value of __GNUC__ rather than just seeing if it's defined. /* Cache the chosen temporary directory. */ static #ifdef ZTS #ifdef PHP_WIN32 __declspec(thread) #elif defined(__GNUC__) __thread #endif #endif char* temporary_directory; With GNU C++ compiler, version 4.2.0, the following error results: main/php_open_temporary_file.c:187: error: thread-local storage not supported for this target make: *** [main/php_open_temporary_file.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71619&edit=1

« previous php.bugs (#199356) next »