[Webkit-unassigned] [Bug 28886] Build error using JIT with gcc 4.1.2 and ARM v5
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Sep 5 00:28:35 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28886
--- Comment #5 from Zoltan Herczeg <zherczeg at inf.u-szeged.hu> 2009-09-05 00:28:34 PDT ---
> I couldn't find the __clear_cache in any system header file, but could find it
> in 4.1.2/libgcc.a and 4.1.2/libgcc_s.so.
Good!
> Then I added an "extern void __clear_cache (char *beg, char *end);" before
> using __clear_cache in ExecutableAllocator.h. The result:
>
> obj/release/ARMAssembler.o: In function `JSC::ARMAssembler::linkBranch(void*,
> JSC::ARMAssembler::JmpSrc, void*, int)':
> ARMAssembler.cpp:(.text+0x1b8): undefined reference to
> `JSC::__clear_cache(char*, char*)'
__clear_cache is a C function not C++, and does not belongs to JSC namespace.
try this (outside of "namespace JSC", for example put it before the #include-s
in a C++ file)
extern "C" {
void __clear_cache (char *beg, char *end);
}
(You don't need to put extern before a function declaration. The semicolon does
the magic.)
--
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