Req #70747 [Fbk->Nab]: Compile failure on OpenBSD 5.8/i386 due "thread-local storage"

From: Date: Wed, 21 Oct 2015 10:34:32 +0000
Subject: Req #70747 [Fbk->Nab]: Compile failure on OpenBSD 5.8/i386 due "thread-local storage"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196723@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70747&edit=1

 ID:                 70747
 Updated by:         ab@php.net
 Reported by:        stolen dot data dot net at gmail dot com
 Summary:            Compile failure on OpenBSD 5.8/i386 due
                     "thread-local storage"
-Status:             Feedback
+Status:             Not a bug
 Type:               Feature/Change Request
 Package:            Compile Failure
 Operating System:   OpenBSD 5.8
 PHP Version:        5.6.14
 Block user comment: N
 Private report:     N

 New Comment:

Hi,

grateful thanks for the compiler check. Yeah, i'd expect that gcc would at least emulate TLS
with POSIX calls starting at least with gcc 4.6. But OpenBSD could have been improved as well (last
check 2013 seems it wasn't supporting it). Anyway, all seems good now.

Regarding the test fails - from the failed test list I see quite some regarding OpenSSL. You should
try to use the latest 1.0.2 series, but even then - many of those are network based. As well - some
tests fail most likely due to missing locales. I'd expect also some differences in libc and
your system configuration which can lead to some false positives.

In general I guess OpenBSD is quite a rare target where the tests are run :) You can try to use some
newer libs, as mentioned with OpenSSL. Also please investigate on the test fails, there's
always a file like ext/openssl/tests/bug46127.diff corresponding to the actual failing test. You can
then either supply github PRs with the test fixes or open new tickets if those fails look like real
bugs.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2015-10-20 20:35:55] stolen dot data dot net at gmail dot com

The GCC 4.8.4 port builds 5.6.14. Test suite produces slightly more than expected failures: http://pastebin.com/raw.php?i=BJRAxVAh

------------------------------------------------------------------------
[2015-10-20 15:38:35] ab@php.net

When looking at the ports here ftp://ftp.iinet.net.au/pub/OpenBSD/5.8/packages/amd64/
- it seems that OpenBSD 5.8 delivers gcc 4.8.4 as lowest. Could you please check that first?

Thanks.

------------------------------------------------------------------------
[2015-10-20 09:08:10] stolen dot data dot net at gmail dot com

5.6.11 builds fine, but 5.6.12 and onwards produce the same failure.

------------------------------------------------------------------------
[2015-10-19 23:55:23] stolen dot data dot net at gmail dot com

I don't know when this problem showed up, but my last working build of PHP 5.6.x - not sure
what exact version as the installation is lost - was on OpenBSD 5.6 which is 1 year old, which may
help to narrow things down a little bit. I suspect it has to do with ZTS, though I can't find
any obvious options in configure for tuning this for a production environment.

Output:

/bin/sh /usr/opt/php-5.6.14/libtool --silent --preserve-dup-deps --mode=compile
/usr/opt/php-5.6.14/meta_ccld  -Imain/ -I/usr/opt/php-5.6.14/main/ -DPHP_ATOM_INC
-I/usr/opt/php-5.6.14/include -I/usr/opt/php-5.6.14/main -I/usr/opt/php-5.6.14
-I/usr/opt/php-5.6.14/ext/date/lib -I/usr/opt/php-5.6.14/ext/ereg/regex -I/usr/local/include
-I/usr/opt/php-5.6.14/ext/mbstring/oniguruma -I/usr/opt/php-5.6.14/ext/mbstring/libmbfl
-I/usr/opt/php-5.6.14/ext/mbstring/libmbfl/mbfl -I/usr/opt/php-5.6.14/ext/sqlite3/libsqlite
-I/usr/opt/php-5.6.14/TSRM -I/usr/opt/php-5.6.14/Zend    -I/usr/local/include -g -O2
-fvisibility=hidden -pthread -DZTS  -c /usr/opt/php-5.6.14/main/php_open_temporary_file.c -o
main/php_open_temporary_file.lo 
/usr/opt/php-5.6.14/main/php_open_temporary_file.c:187: error: thread-local storage not supported
for this target
*** Error 1 in /usr/opt/php-5.6.14 (Makefile:1096 'main/php_open_temporary_file.lo')

OpenBSD 5.8 runs GCC 4.2.1.

------------------------------------------------------------------------
[2015-10-19 23:52:49] stolen dot data dot net at gmail dot com

Description:
------------
I don't know exactly when this problem showed up - my last working build of PHP 5.6.x (not sure
what exact version; installation is lost) was on OpenBSD 5.6 which is exactly 1 year old, which may
help to narrow things down a little bit. I suspect it has to do with ZTS, though I can't find
any obvious options in configure for tuning this for a production environment.

Output:

/bin/sh /usr/opt/php-5.6.14/libtool --silent --preserve-dup-deps --mode=compile
/usr/opt/php-5.6.14/meta_ccld  -Imain/ -I/usr/opt/php-5.6.14/main/ -DPHP_ATOM_INC
-I/usr/opt/php-5.6.14/include -I/usr/opt/php-5.6.14/main -I/usr/opt/php-5.6.14
-I/usr/opt/php-5.6.14/ext/date/lib -I/usr/opt/php-5.6.14/ext/ereg/regex -I/usr/local/include
-I/usr/opt/php-5.6.14/ext/mbstring/oniguruma -I/usr/opt/php-5.6.14/ext/mbstring/libmbfl
-I/usr/opt/php-5.6.14/ext/mbstring/libmbfl/mbfl -I/usr/opt/php-5.6.14/ext/sqlite3/libsqlite
-I/usr/opt/php-5.6.14/TSRM -I/usr/opt/php-5.6.14/Zend    -I/usr/local/include -g -O2
-fvisibility=hidden -pthread -DZTS  -c /usr/opt/php-5.6.14/main/php_open_temporary_file.c -o
main/php_open_temporary_file.lo 
/usr/opt/php-5.6.14/main/php_open_temporary_file.c:187: error: thread-local storage not supported
for this target
*** Error 1 in /usr/opt/php-5.6.14 (Makefile:1096 'main/php_open_temporary_file.lo')

OpenBSD 5.8 runs GCC 4.2.1.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70747&edit=1


Thread (6 messages)

« previous php.bugs (#196723) next »