Build failure with SkBitmapProcState_matrixProcs_neon.cpp

41 views
Skip to first unread message

George Wright

unread,
Oct 3, 2012, 1:59:45 PM10/3/12
to skia-d...@googlegroups.com
I'm seeing the following compile error when building Skia with the
NEON-optimised functions enabled:

In file included from
/home/george/dev/mozilla-central/gfx/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp:28:
/home/george/dev/mozilla-central/gfx/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h:
In function 'void ClampX_ClampY_filter_persp_neon_neon(const
SkBitmapProcState&, uint32_t*, int, int, int)':
/home/george/dev/mozilla-central/gfx/skia/src/opts/SkBitmapProcState_matrix_clamp_neon.h:888:
internal compiler error: in change_address_1, at emit-rtl.c:1954
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
{standard input}: Assembler messages:
{standard input}:4493: Error: cannot represent <unknown> relocation in
this object file format
{standard input}:4497: Error: cannot represent <unknown> relocation in
this object file format
{standard input}:4502: Error: cannot represent <unknown> relocation in
this object file format

The full compiler command being executed is:

/home/george/dev/android-ndk-r5c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++
-o SkBitmapProcState_matrixProcs_neon.o -c -fvisibility=hidden
-DSK_A32_SHIFT=24 -DSK_R32_SHIFT=16 -DSK_G32_SHIFT=8 -DSK_B32_SHIFT=0
-DUSE_SKIA -DSK_BUILD_FOR_ANDROID_NDK -DMOZILLA_INTERNAL_API
-D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX
-D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES
-DSTATIC_EXPORTABLE_JS_API
-I/home/george/dev/mozilla-central/gfx/skia/include/core
-I/home/george/dev/mozilla-central/gfx/skia/include/config
-I/home/george/dev/mozilla-central/gfx/skia/include/gpu
-I/home/george/dev/mozilla-central/gfx/skia/include/pipe
-I/home/george/dev/mozilla-central/gfx/skia/include/ports
-I/home/george/dev/mozilla-central/gfx/skia/include/images
-I/home/george/dev/mozilla-central/gfx/skia/include/utils
-I/home/george/dev/mozilla-central/gfx/skia/include/utils/mac
-I/home/george/dev/mozilla-central/gfx/skia/include/utils/win
-I/home/george/dev/mozilla-central/gfx/skia/include/views
-I/home/george/dev/mozilla-central/gfx/skia/include/effects
-I/home/george/dev/mozilla-central/gfx/skia/src/core
-I/home/george/dev/mozilla-central/gfx/skia/src/image
-I/home/george/dev/mozilla-central/gfx/skia/src/gpu
-I/home/george/dev/mozilla-central/gfx/skia/src/utils
-I/home/george/dev/mozilla-central/gfx/skia/src/sfnt
-I/home/george/dev/mozilla-central/gfx/skia -I. -I../../dist/include
-I/home/george/dev/mozilla-central/obj-android/dist/include/nspr
-I/home/george/dev/mozilla-central/obj-android/dist/include/nss -fPIC
-isystem
/home/george/dev/android-ndk-r5c/platforms/android-5/arch-arm/usr/include -Wall
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits
-Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings
-Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -mandroid
-fno-short-enums -fno-exceptions -Wno-psabi -march=armv7-a -mthumb
-mfpu=vfp -mfloat-abi=softfp
-I/home/george/dev/mozilla-central/obj-android/build/stlport
-I/home/george/dev/android-ndk-r5c/sources/cxx-stl/stlport/stlport
-fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections
-fdata-sections -fno-exceptions -std=gnu++0x -pipe
-I/home/george/dev/mozilla-central/obj-android/dist/include/cairo
-I/home/george/dev/mozilla-central/modules/freetype2/include -DDEBUG
-D_DEBUG -DTRACING -g -funwind-tables -ffast-math -fomit-frame-pointer
-mfpu=neon -isystem
/home/george/dev/android-ndk-r5c/platforms/android-5/arch-arm/usr/include -DMOZILLA_CLIENT
-include ../../mozilla-config.h -MD -MF
.deps/SkBitmapProcState_matrixProcs_neon.o.pp
/home/george/dev/mozilla-central/gfx/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp

Has anyone seen something similar?

Thanks,

George

Derek Sollenberger

unread,
Oct 4, 2012, 8:45:40 AM10/4/12
to skia-d...@googlegroups.com
I haven't seen this before, but the command you provided does have -mfpu defined 2x which could be causing issues.



--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To post to this group, send email to skia-d...@googlegroups.com.
To unsubscribe from this group, send email to skia-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/skia-discuss?hl=en.


George Wright

unread,
Oct 4, 2012, 9:51:21 AM10/4/12
to skia-d...@googlegroups.com
On 10/04/2012 08:45 AM, Derek Sollenberger wrote:
> I haven't seen this before, but the command you provided does have
> -mfpu defined 2x which could be causing issues.

It seems to be a compiler bug. I managed to work around it by adding
-ftree-ter to the command line. In the case of having mfpu defined
twice, I believe it just takes the right-most definition and ignores the
earlier ones (I hope!).

Should I file a bug for this?

Thanks,

George

Mike Reed

unread,
Oct 4, 2012, 11:21:48 AM10/4/12
to skia-d...@googlegroups.com
Sounds like it, esp. if we can get our tool-chain here to repro the problem.
Reply all
Reply to author
Forward
0 new messages