Firefox 38 fails to build with __STDC_CONSTANT_MACROS defined on powerpc, as it gets defined both at the command line and in the mozconfig.h header, which the compiler balks at. Removing this (line 451 of Mk/bsd.gecko.mk) gets it building.
Bah, fix mispaste.
Justin, could you attach: * A patch against ports head for the requested change * poudriere testport output for a successful build on PPC
Created attachment 158316 [details] Patch to remove __STDC_CONSTANT_MACROS from gecko CFLAGS
Created attachment 158317 [details] Successful poudriere build of firefox
Created attachment 158318 [details] Failed poudriere build of firefox
I've uploaded logs from a poudriere bulk run, which I think should be comparable to a testport run, from my experience.
A commit references this bug: Author: jbeich Date: Thu Jul 16 11:36:13 UTC 2015 New revision: 392290 URL: https://svnweb.freebsd.org/changeset/ports/392290 Log: bsd.gecko.mk: PowerPC no longer needs the __STDC_CONSTANT_MACROS in CFLAGS sys/cdefs.h after base r227475 always defines __STDC_CONSTANT_MACROS for C++11 while Firefox enforces C++11 since 25.0 and also defines __STDC_CONSTANT_MACROS via mozilla-config.h since 26.0. PR: 201294 Submitted by: jhibbits MFH: 2015Q3 (trivial, not on pkg-fallout) Changes: head/Mk/bsd.gecko.mk
Thanks. Committed.
A commit references this bug: Author: jbeich Date: Fri Jul 24 02:55:54 UTC 2015 New revision: 392766 URL: https://svnweb.freebsd.org/changeset/ports/392766 Log: MFH: r392290 bsd.gecko.mk: PowerPC no longer needs the __STDC_CONSTANT_MACROS in CFLAGS sys/cdefs.h after base r227475 always defines __STDC_CONSTANT_MACROS for C++11 while Firefox enforces C++11 since 25.0 and also defines __STDC_CONSTANT_MACROS via mozilla-config.h since 26.0. As Firefox 38.0 enables -pedantic-errors this breaks build. So, remove the dup to unbreak build on powerpc and powerpc64. PR: 201294 Submitted by: jhibbits Approved by: ports-secteam (feld) Changes: _U branches/2015Q3/ branches/2015Q3/Mk/bsd.gecko.mk