Bug 17449 - JSCore fails to compile on PPC/Linux (asm error)
Summary: JSCore fails to compile on PPC/Linux (asm error)
Status: RESOLVED DUPLICATE of bug 17019
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords:
: 17741 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-20 06:22 PST by Patryk Zawadzki
Modified: 2008-03-21 12:18 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patryk Zawadzki 2008-02-20 06:22:31 PST
Full build log:

http://buildlogs.pld-linux.org/index.php?dist=th&arch=ppc&ok=0&id=04ce61f5ca498f557d01389b26c198e8

Likely most interesting part:

 ppc-pld-linux-g++ -DHAVE_CONFIG_H -I. -I./JavaScriptCore -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/wtf -I./JavaScriptCore/kjs -I./DerivedSources -DBUILDING_GTK__=1 -DWTF_CHANGES -DXP_UNIX -DNDEBUG -DENABLE_ICONDATABASE=0 -I./JavaScriptCore/ForwardingHeaders -I./JavaScriptCore/bindings -I./JavaScriptCore/bindings/c -I./JavaScriptCore/pcre -I./JavaScriptCore/kjs -D_REENTRANT -I/usr/include -fvisibility-inlines-hidden -fno-rtti -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 -fno-exceptions -fvisibility=hidden -fstrict-aliasing -O2 -fno-strict-aliasing -fwrapv -fsigned-char -gdwarf-2 -g2 -MT JavaScriptCore/kjs/libJavaScriptCore_la-AllInOneFile.lo -MD -MP -MF JavaScriptCore/kjs/.deps/libJavaScriptCore_la-AllInOneFile.Tpo -c JavaScriptCore/kjs/AllInOneFile.cpp  -fPIC -DPIC -o JavaScriptCore/kjs/.libs/libJavaScriptCore_la-AllInOneF
 ile.o
/tmp/B.3f6d88/ccNNmo7l.s: Assembler messages:
/tmp/B.3f6d88/ccNNmo7l.s:41842: Error: syntax error; found `,' but expected `('
/tmp/B.3f6d88/ccNNmo7l.s:41842: Error: junk at end of line: `,11'
make[1]: *** [JavaScriptCore/kjs/libJavaScriptCore_la-AllInOneFile.lo] Error 1
make[1]: Leaving directory `/home/users/builder/rpm/BUILD/WebKit-r30377'

As you can see, this is r30377 but also happened with r30153 and r30122. This is a WebKitGtk build but that should not matter.
Comment 1 Patryk Zawadzki 2008-03-10 05:49:48 PDT
*** Bug 17741 has been marked as a duplicate of this bug. ***
Comment 2 Arkadiusz Miskiewicz 2008-03-14 15:37:51 PDT
This should fix it.

--- JavaScriptCore/wtf/TCSpinLock.h~	2008-02-26 01:15:08.000000000 +0100
+++ JavaScriptCore/wtf/TCSpinLock.h	2008-03-14 23:30:07.361354727 +0100
@@ -104,7 +104,7 @@
       ("isync\n\t"
        "eieio\n\t"
        "stw %1, %0"
-#if PLATFORM(DARWIN)
+#if PLATFORM(DARWIN) || PLATFORM(PPC)
        : "=o" (lockword_)
 #else
        : "=m" (lockword_) 
Comment 3 Patryk Zawadzki 2008-03-21 11:50:02 PDT
Confirmed. The patch fixed the PPC build.
Comment 4 David Kilzer (:ddkilzer) 2008-03-21 12:18:11 PDT

*** This bug has been marked as a duplicate of 17019 ***