Re: Compiling with gcc -m32 on x86_64

From: Date: Sat, 18 Jul 2015 07:56:41 +0000
Subject: Re: Compiling with gcc -m32 on x86_64
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-87211@lists.php.net to get a copy of this message
I use 'CC="gcc -m32" ./configure' to build 32-bit PHP on 64-bit Linux. This works fine, if you have all necessary 32-bit libraries and dev packages. Thanks. Dmitry. On Jul 10, 2015 11:14 PM, "Bishop Bettini" <bishop@php.net> wrote: > Hi! > > Is it expected that compiling as 32-bit on 64-bit will succeed? > > I'm seeing "EXTRA_CFLAGS=-m32 make" bomb > in ext/opcache/zend_accelerator_util_funcs.c. > > One problem I notice is that one definition of accel_xlat_get() takes one > argument, another takes two. (Source. > < > > https://github.com/php/php-src/blob/master/ext/opcache/zend_accelerator_util_funcs.c#L31 > >) > Only the one argument version is used. (Source. > < > > https://github.com/php/php-src/blob/master/ext/opcache/zend_accelerator_util_funcs.c#L160 > >) > The two argument version is never used. (And that second argument is > passed as the fourth formal argument and the return value > of zend_hash_str_find_ptr, which only takes 3 arguments and returns void.) > > There are other problems though. Before I go down this path, I wanted to > check if -m32 was meant to be used. > > Thanks, > bishop >

« previous php.internals (#87211) next »