Bug #64197 [Csd]: _Offsetof() macro used but not defined on ARM/Clang
| From: | ardbiesheuvel@php.net | Date: | Wed, 13 Feb 2013 12:54:34 +0000 |
| Subject: | Bug #64197 [Csd]: _Offsetof() macro used but not defined on ARM/Clang | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176600@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64197&edit=1
ID: 64197
Updated by: ardbiesheuvel@php.net
Reported by: mats at exmandato dot se
Summary: _Offsetof() macro used but not defined on ARM/Clang
Status: Closed
Type: Bug
Package: Compile Failure
Operating System: FreeBSD10 / ARM
PHP Version: 5.4.11
-Assigned To:
+Assigned To: ardbiesheuvel
Block user comment: N
Private report: N
New Comment:
Don't worry about it. Feel free to contact me directly if you have any ARM-related questions.
Previous Comments:
------------------------------------------------------------------------
[2013-02-13 12:52:40] ardbiesheuvel@php.net
Automatic comment on behalf of ard.biesheuvel@linaro.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=050aae2860e1c202e2e9db715beaa97d0a4c9c33
Log: Fixed bug #64197 (_Offsetof() macro used but not defined on ARM/Clang)
------------------------------------------------------------------------
[2013-02-13 12:52:04] ardbiesheuvel@php.net
Automatic comment on behalf of ard.biesheuvel@linaro.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=050aae2860e1c202e2e9db715beaa97d0a4c9c33
Log: Fixed bug #64197 (_Offsetof() macro used but not defined on ARM/Clang)
------------------------------------------------------------------------
[2013-02-13 12:50:25] ardbiesheuvel@php.net
Automatic comment on behalf of ard.biesheuvel@linaro.org
Revision: http://git.php.net/?p=php-src.git;a=commit;h=050aae2860e1c202e2e9db715beaa97d0a4c9c33
Log: Fixed bug #64197 (_Offsetof() macro used but not defined on ARM/Clang)
------------------------------------------------------------------------
[2013-02-13 12:18:52] mats at exmandato dot se
> Could you set the the following #define *before* the
> #ifndef XtOffsetOf in Zend/zend_ini,h:30
> #define XtOffsetOf __builtin_offsetof
Adding #define XtOffsetOf __builtin_offsetof in the file Zend/zend_ini.h solved the problem.
> Note that rooting out these kinds of bugs is typical for porting to a new
> architecture, so filing bugs against a stable version is not really
> appropriate.
I'm sorry, I didn't know that
------------------------------------------------------------------------
[2013-02-13 11:32:18] ardbiesheuvel@php.net
The preprocessor conditionals in Zend/zend_ini.h test for '__arm' to decide whether
_Offsetof() is defined. The assumption is that this define is only set by ARMCC, the proprietary ARM
compiler, and not by others (like GCC). However, as Clang does set this define as well (in addition
to '__arm__'), the generated code ends up using a macro that is not defined, resulting in
the output as reported.
Note that rooting out these kinds of bugs is typical for porting to a new architecture, so filing
bugs against a stable version is not really appropriate.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64197
--
Edit this bug report at https://bugs.php.net/bug.php?id=64197&edit=1