# Minimum version of GCC required to build PHP

- Thread: https://externals.io/message/84830
- Original archive: https://news-web.php.net/php.internals/84830
- Started by Sebastian Bergmann on 2015-03-15T14:34:14+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #84830 — Sebastian Bergmann — 2015-03-15T14:34:14+00:00

URL: https://externals.io/message/84830#84830

What is the minimum version of GCC required to build PHP?

 I am asking because using GCC 2.95.3 and GCC 3.4.0 I get errors related
 to the usage of intptr_t (see http://pastebin.com/9Gn0AAXA).

---

## #84834 — Sebastian Bergmann — 2015-03-15T15:36:04+00:00

URL: https://externals.io/message/84830#84834 · In reply to: #84830

Am 15.03.2015 um 15:34 schrieb Sebastian Bergmann:
> I am asking because using GCC 2.95.3 and GCC 3.4.0 I get errors related
> to the usage of intptr_t (see http://pastebin.com/9Gn0AAXA).

 Over in Room 11, Michael just pointed out that this could be related
 to php_stdint.h.

---

## #84835 — Michael Wallner — 2015-03-15T15:41:39+00:00

URL: https://externals.io/message/84830#84835 · In reply to: #84834

> 
> 
> Am 15.03.2015 um 15:34 schrieb Sebastian Bergmann:
> > […]
> 
> Over in Room 11, Michael just pointed out that this could be related
> to php_stdint.h.

Yes, we could probably just add a check whether intptr_t is defined and if not do so according to the bit width of the platform.

---

## #84957 — Pierre Joye — 2015-03-16T00:07:59+00:00

URL: https://externals.io/message/84830#84957 · In reply to: #84835

>
>
> > […]
>
> Yes, we could probably just add a check whether intptr_t is defined and
if not do so according to the bit width of the platform.

I remember some bugs affecting php with 2.95.x, I would be careful before
using it. We may as well ask for 3.x with 7+, we may have discussed that
for 5.5 or 5.6, if I am not mistaken.

---

## #84993 — Sebastian Bergmann — 2015-03-16T06:35:00+00:00

URL: https://externals.io/message/84830#84993 · In reply to: #84834

Am 15.03.2015 um 16:36 schrieb Sebastian Bergmann:
> Over in Room 11, Michael just pointed out that this could be related
> to php_stdint.h.

 Okay, this does not seem to be related to the GCC version but rather
 to the fact that some int types etc. are not defined on/for my platform.
 If I use -Dintptr_t=long -Duintptr_t=ulong, for instance, then I can
 compile PHP (but not link it, but that's another issue).

---

## #84994 — Xinchen Hui — 2015-03-16T06:41:57+00:00

URL: https://externals.io/message/84830#84994 · In reply to: #84993

Hey:


> Am 15.03.2015 um 16:36 schrieb Sebastian Bergmann:
> > […]
>
>  Okay, this does not seem to be related to the GCC version but rather
>  to the fact that some int types etc. are not defined on/for my platform.
>  If I use -Dintptr_t=long -Duintptr_t=ulong, for instance, then I can
>  compile PHP (but not link it, but that's another issue).

what is the link problems?

thanks
>
> --
> 
> 



-- 
Xinchen Hui
@Laruence
http://www.laruence.com/

---

## #84997 — Sebastian Bergmann — 2015-03-16T07:14:42+00:00

URL: https://externals.io/message/84830#84997 · In reply to: #84994

Am 16.03.2015 um 07:41 schrieb Xinchen Hui:
> what is the link problems?

 http://pastebin.com/Tk1kaipQ
