php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71619 thread-local storage not supported for this target
Submitted: 2016-02-17 21:01 UTC Modified: 2016-02-28 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: dreddy at spectraenergy dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.5.32 OS: AIX 6.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dreddy at spectraenergy dot com
New email:
PHP Version: OS:

 

 [2016-02-17 21:01 UTC] 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








Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-18 10:59 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-02-18 10:59 UTC] ab@php.net
Please use gcc at least 4.6 as discussed in bug #70747.

Thanks.
 [2016-02-19 15:12 UTC] 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-20 14:43 UTC] ab@php.net
Thanks for the followup. From your output, the gcc version is 3.4.6, not 4.6. Please try a newer gcc version.

Thanks.
 [2016-02-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2016-04-27 19:44 UTC] joeborge at yahoo dot com
I have GCC version 4.8.2 but it is still showing error when I tried to compile 5.6.20.

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc --enable-shared --with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2  -mtune=opteron -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron'
Thread model: posix
gcc version 4.8.2 (GCC) 

# make
/bin/sh /work/applications/php-5.6.20/libtool --silent --preserve-dup-deps --mode=compile cc  -Imain/ -I/work/applications/php-5.6.20/main/ -DPHP_ATOM_INC -I/work/applications/php-5.6.20/include -I/work/applications/php-5.6.20/main -I/work/applications/php-5.6.20 -I/work/applications/php-5.6.20/ext/date/lib -I/work/applications/php-5.6.20/ext/ereg/regex -I/usr/include/libxml2 -I/work/applications/php-5.6.20/ext/sqlite3/libsqlite -I/work/applications/php-5.6.20/TSRM -I/work/applications/php-5.6.20/Zend  -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -I/usr/local/include -std=gnu99 -DZTS  -c /work/applications/php-5.6.20/main/php_open_temporary_file.c -o main/php_open_temporary_file.lo 
/work/applications/php-5.6.20/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


# %make -v
GNU Make 3.82
Built for i386-pc-solaris2.11
Copyright (C) 2010  Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
 [2016-05-04 18:19 UTC] joeborge at yahoo dot com
I found the configure script went to find an older cc and that was causing the compiling error.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC