Re: [gtk-osx-devel] Bison 3 and WebKit
- From: John Ralls <jralls ceridwen us>
- To: Philip Chimento <philip chimento gmail com>
- Cc: gtk-osx-devel-list gnome org
- Subject: Re: [gtk-osx-devel] Bison 3 and WebKit
- Date: Wed, 31 Dec 2014 16:22:36 -0800
On Dec 31, 2014, at 3:46 PM, Philip Chimento <philip chimento gmail com> wrote:
On Wed, Dec 31, 2014 at 8:06 AM, John Ralls <jralls ceridwen us> wrote:
On Tue, Dec 30, 2014 at 11:41 AM, John Ralls <jralls ceridwen us> wrote:
On Dec 29, 2014, at 5:01 PM, John Ralls <jralls ceridwen us> wrote:
Didn’t build webkit2gtk3, though. Didn’t even start, because WebKitGtk seems to have dumped autotools in
favor of cmake. That was a git build. I’ll try a stable version next.
Stable fails with -arch i386:
ld: warning: ignoring file
Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o, file was built for
unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00
0x00 ) which is not the architecture being linked (i386):
Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o
ld: warning: ignoring file ./.libs/libWTF.a, file was built for archive which is not the architecture
being linked (i386): ./.libs/libWTF.a
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I guess configure ignores the passed-in C.*FLAGS and deduces its own. Rude, but fixable.
Which version are you building? If it's a cmake version, apparently you have to specify them at cmake
time, not as makeargs.
Sorry, by stable I meant 1.10.
What arguments does "make V=1" show? Could be the -arch argument is getting overridden later on the command
line.
Applications/Xcode.app/Contents/Developer/usr/bin/g++ -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
-DENABLE_GLIB_SUPPORT=1 -DBUILDING_CAIRO__=1 -DBUILDING_GTK__=1 -DBUILDING_SOUP__=1 -DWTF_CHANGES -DXP_UNIX
-DWTF_USE_ICU_UNICODE=1 -DGTK_API_VERSION_2=1 -DNDEBUG -I./Source -I./Source/JavaScriptCore
-I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bytecode
-I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler
-I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/ForwardingHeaders
-I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/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
-I/Users/john/Development/gtk-build/gtk-stable-10.10-i386/inst/include
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-Wno-c++11-extensions -O2 -MT
Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o -MD -MP -MF
Source/JavaScriptCore/llint/.deps/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.Tpo -c -o
Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o `test -f
'Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp' || echo
'./'`Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp
It turns out that it’s the autogenargs:
autogenargs="--with-target=quartz --disable-video --with-font-backend=pango --with-gtk=2.0
--disable-geolocation --disable-webkit2 CXXFLAGS='-Wno-c++11-extensions' CFLAGS='-std=c99’"
eats the CXXFLAGS and CFLAGS set in .jhbuildrc. It needs to be
autogenargs='--with-target=quartz --disable-video --with-font-backend=pango --with-gtk=2.0
--disable-geolocation --disable-webkit2 CXXFLAGS="$CXXFLAGS -Wno-c++11-extensions" CFLAGS="$CFLAGS -std=c99”'
(Note that the quotes are flipped because single quotes prevents the shell from expanding the variables.)
Regards,
John Ralls
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]