[MacPorts] #47069: How to build webkit-gtk3-2.0 @2.0.4_4 on a 10.5.8 PPC ?
MacPorts
noreply at macports.org
Sun Mar 8 07:39:22 PDT 2015
#47069: How to build webkit-gtk3-2.0 @2.0.4_4 on a 10.5.8 PPC ?
------------------------------+------------------------
Reporter: braumann@… | Owner: jeremyhu@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: wontfix | Keywords: ppc
Port: webkit-gtk3-2.0 |
------------------------------+------------------------
Comment (by braumann@…):
Thank you for pointing me to http://llvm.org/bugs/show_bug.cgi?id=22270
Looking inside the Portfile
http://trac.macports.org/browser/trunk/dports/www/webkit-
gtk-2.0/Portfile?rev=120881 I suddenly found the lines
{{{
if {${os.major} < 10} {
depends_build-append port:python27
# https://trac.macports.org/ticket/35793
configure.python ${prefix}/bin/python2.7
# https://trac.macports.org/ticket/38682
configure.optflags-append -fno-blocks
}
}}}
Since {{{gcc-4.9}}} has no and does not need a {{{-fno-blocks}}} switch,
once I commented that line the configuration of {{{webkit-gtk3-2}}}
worked:
{{{
$ sudo port configure webkit-gtk3-2.0 configure.compiler=macports-gcc-4.9
---> Computing dependencies for webkit-gtk3-2.0
---> Fetching archive for webkit-gtk3-2.0
---> Attempting to fetch webkit-gtk3-2.0-2.0.4_4+video.darwin_9.ppc.tbz2
from http://nue.de.packages.macports.org/macports/packages/webkit-gtk3-2.0
---> Attempting to fetch webkit-gtk3-2.0-2.0.4_4+video.darwin_9.ppc.tbz2
from http://lil.fr.packages.macports.org/webkit-gtk3-2.0
---> Attempting to fetch webkit-gtk3-2.0-2.0.4_4+video.darwin_9.ppc.tbz2
from http://mse.uk.packages.macports.org/sites/packages.macports.org
/webkit-gtk3-2.0
---> Fetching distfiles for webkit-gtk3-2.0
---> Attempting to fetch webkitgtk-2.0.4.tar.xz from
http://nue.de.distfiles.macports.org/macports/distfiles/webkit-gtk
---> Verifying checksums for webkit-gtk3-2.0
---> Extracting webkit-gtk3-2.0
---> Applying patches to webkit-gtk3-2.0
---> Configuring webkit-gtk3-2.0
}}}
However, after issuing
{{{
$ sudo port install webkit-gtk3-2.0 configure.compiler=macports-gcc-4.9
}}}
and compiling, after a while I had to surrender, since {{{webkit-
gtk3-2.0}}} contains code which is not supporting PPC:
{{{
...
:info:build /opt/local/bin/g++-mp-4.9 -DHAVE_CONFIG_H -I. -Wall -W
-Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security
-Wno-format-y2k -Wundef -Wmissing-format-
attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-
parentheses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__
-I./Source -I./Source/JavaScriptCore -I./Sour
ce/JavaScriptCore/API -I./Source/JavaScriptCore/assembler
-I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler
-I./Source/JavaScriptCore/dfg -I./Source/JavaScri
ptCore/disassembler -I./Source/JavaScriptCore/heap
-I./Source/JavaScriptCore/debugger
-I./Source/JavaScriptCore/ForwardingHeaders
-I./Source/JavaScriptCore/interpreter -I./Source/Ja
vaScriptCore/jit -I./Source/JavaScriptCore/jit
-I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser
-I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime
-I./Source/JavaScriptCore/tools -I./Source/JavaScriptCore/yarr
-I./DerivedSources/JavaScriptCore -I./Source/WTF
-DGTEST_USE_OWN_TR1_TUPLE=1 -D__MAC_OS_X_VERSION_MAX_ALLOWED=1050 -O
s -m32 -Wno-c++11-compat -O2 -MT Source/JavaScriptCore/llint
/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o -MD -MP -MF
Source/JavaScriptCore/llint/.deps/Programs_LLIntOffse
tsExtractor-LLIntOffsetsExtractor.Tpo -c -o Source/JavaScriptCore/llint
/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o `test -f
'Source/JavaScriptCore/llint/LLIntOffsetsExtr
actor.cpp' || echo
'./'`Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp
:info:build In file included from
./Source/JavaScriptCore/bytecode/ValueRecovery.h:31:0,
:info:build from
./Source/JavaScriptCore/bytecode/CodeOrigin.h:31,
:info:build from
./Source/JavaScriptCore/bytecode/CodeBlock.h:39,
:info:build from
Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:29:
:info:build ./Source/JavaScriptCore/assembler/MacroAssembler.h:62:2:
error: #error "The MacroAssembler is not supported on this platform."
:info:build #error "The MacroAssembler is not supported on this
platform."
...
}}}
To summarize, {{{webkit-gtk3-2.0}}} unfortunately cannot be built on
10.5.8 PPC, but not because of existing {{{clang}}} deficiencies, just
since {{{Macroassembler}}} only supports ARM, ARMv7, MIPS, x86, x86_64,
and SH4.
--
Ticket URL: <https://trac.macports.org/ticket/47069#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list