Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87211 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83084 invoked from network); 18 Jul 2015 07:56:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2015 07:56:45 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.213.179 mail-ig0-f179.google.com Received: from [209.85.213.179] ([209.85.213.179:33877] helo=mail-ig0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/30-10823-BB60AA55 for ; Sat, 18 Jul 2015 03:56:44 -0400 Received: by igvi1 with SMTP id i1so49116747igv.1 for ; Sat, 18 Jul 2015 00:56:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4l1Xfj5SGBmNYZRyGXvK2sbmAAHQOMqAmHE9UpzRM+k=; b=VamTW1xHll/arr42cm09BdmLS1i4K1u4nCcGGV9QFFI+nhbEeDNJzBMe7fxM4lyMB7 7mkFtza3DUAEqkTrAkEWhmr9jnR4wmOoB+xTqNaAJdbz5ig+f+PbLvHAXqKJEgf2U2sY Vi9kioA8DXZPXuZPD2zOg3uFgtxfeey4bb3rKOHmhxhHz3ccDU8XJJMkAJNo9T7ctN2F kIG5F0p0fcGIjh6hNUmKAyYeOVHuLH2k8X5btpJsVMlYBw19vLOGI3f/kxgtSpQ5GLEe 3x76vmCXhPgLWASKxpvy8hujDHtAEE/KHJrPXXNpPzQJ9SXZlrjOzYhOnKXy4f5Lp5up 5IFg== X-Gm-Message-State: ALoCoQn84NyzTlrvtCgIXMEonN+M2KHzLrmTnB/ksQPqIUncyI/kv4ZBqZrymVXnrZPua8nH8lWFK7s+rRgVBIvaLYEffDtol+fDVYXHnJRxszsU2x5IY0P7YYkjle+2C4LOknaBsB4gZB9KFjxnyC39pgAL+h1w/ohU5DfgT1w+NrRsMPAdhfc= MIME-Version: 1.0 X-Received: by 10.107.34.75 with SMTP id i72mr21430501ioi.56.1437206201473; Sat, 18 Jul 2015 00:56:41 -0700 (PDT) Received: by 10.50.29.230 with HTTP; Sat, 18 Jul 2015 00:56:41 -0700 (PDT) Received: by 10.50.29.230 with HTTP; Sat, 18 Jul 2015 00:56:41 -0700 (PDT) In-Reply-To: References: Date: Sat, 18 Jul 2015 10:56:41 +0300 Message-ID: To: bishop@php.net Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a1141bece1beac1051b21a556 Subject: Re: [PHP-DEV] Compiling with gcc -m32 on x86_64 From: dmitry@zend.com (Dmitry Stogov) --001a1141bece1beac1051b21a556 Content-Type: text/plain; charset=UTF-8 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" 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 > --001a1141bece1beac1051b21a556--