[Webkit-unassigned] [Bug 33451] New: error: 'asm' operand requires impossible reload" on OpenBSD/macppc/g++ 4.2.4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 10 12:01:54 PST 2010


           Summary: error: 'asm' operand requires impossible reload" on
                    OpenBSD/macppc/g++ 4.2.4
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh PowerPC
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: landry at fr.homeunix.org

Created an attachment (id=46239)
 --> (https://bugs.webkit.org/attachment.cgi?id=46239)
Use portable version of TCMalloc_SpinLock with g++ on ppc

This might be a regression/problem in g++, but with version 4.2.4 webkit-gtk
1.1.18 fails to build on OpenBSD/macppc with the following error :

       "JavaScriptCore/wtf/TCSpinLock.h: In function 'void*
TCMalloc_SystemAlloc(size_t, size_t*, size_t)':
        JavaScriptCore/wtf/TCSpinLock.h:112: error: 'asm' operand requires
impossible reload"

It chokes on the compilation of JavaScriptCore/wtf/TCSystemAlloc.cpp which
includes this header.

It is not OpenBSD-only, as it's been reported against g++ in Debian here :

G++ is :
$/usr/local/bin/eg++ -v 
Using built-in specs.
Target: powerpc-unknown-openbsd4.6
Configured with: /usr/obj/ports/gcc-4.2.4/gcc-4.2.4/configure
--with-gmp=/usr/local --verbose --program-transform-name=s,^,e, --disable-nls
--disable-checking --with-system-zlib --disable-libmudflap --disable-libgomp
--disable-tls --with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-gnu-ld
--with-gnu-as --enable-threads=posix --enable-wchar_t
--enable-languages=c,c++,fortran,objc --enable-cpp --with-gnu-as --with-gnu-ld
--enable-shared --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man
Thread model: posix
gcc version 4.2.4

Note that webkit-gtk and previous versions built fine on

So far, two options seems to fix this :
either --enable-optimizations=no globally on ppc, which turns on -O0, which
makes this file build fine,
or use the attached patch (used in OpenBSD's ports tree) which makes it use the
portable version of struct TCMalloc_SpinLock.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list