Bug 132838

Summary: [GTK] Unable to do a static build of WebKitGTK+
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply, cgarcia, clopez, mrobinson, pnormand, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Carlos Alberto Lopez Perez
Reported 2014-05-12 14:48:49 PDT
Hi, I'm trying to produce a static build of WebKitGTK+ (AMD64) but I'm unable to do it. I tried to do it both using the last stable release, as well as using the last trunk. For the stable release I did this: $ ./configure --enable-static $ make I got the following error: [....] CXX Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrCanonicalizeUCS2.lo CXX Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrInterpreter.lo CXX Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrJIT.lo CXX Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrPattern.lo CXX Source/JavaScriptCore/yarr/libjavascriptcoregtk_3_0_la-YarrSyntaxChecker.lo CXX DerivedSources/JavaScriptCore/libjavascriptcoregtk_3_0_la-InspectorJSBackendDispatchers.lo CXX DerivedSources/JavaScriptCore/libjavascriptcoregtk_3_0_la-InspectorJSFrontendDispatchers.lo CXX DerivedSources/JavaScriptCore/libjavascriptcoregtk_3_0_la-InspectorJSTypeBuilders.lo CXXLD libjavascriptcoregtk-3.0.la ar: `x' cannot be used on thin archives. make[1]: *** [libjavascriptcoregtk-3.0.la] Error 1 make[1]: Leaving directory `/home/gardener/WebKit-2.4.2/webkitgtk-2.4.2' make: *** [all] Error 2 For trunk (r168621) I applied this patch: http://sprunge.us/eLjf and build WebKitGTK+ as: $ ./Tools/Scripts/build-webkit --gtk --cmakeargs="-DBUILD_STATIC=ON" And I got thousands of linking errors... http://sprunge.us/EbhC shows only the last 1000 lines.
Attachments
Philippe Normand
Comment 1 2014-05-13 03:54:28 PDT
Do you have the AR_FLAGS env var set? If so unset it and try again
Carlos Alberto Lopez Perez
Comment 2 2014-05-13 04:46:50 PDT
(In reply to comment #1) > Do you have the AR_FLAGS env var set? If so unset it and try again I don't have this variable on my environment.
Note You need to log in before you can comment on or make changes to this bug.