[Pixman] [BUG] Compilation failure with --enable-arm-iwmmxt

Petr Cvek petrcvekcz at gmail.com
Wed Aug 15 14:47:36 UTC 2018


Hello,

When compiling with --enable-arm-iwmmxt the build system fails to create
 pixman/.deps/ directory for a code from pixman/Makefile.am:

# iwmmxt code
if USE_ARM_IWMMXT
libpixman_iwmmxt_la_SOURCES = pixman-mmx.c
noinst_LTLIBRARIES += libpixman-iwmmxt.la
libpixman_1_la_LIBADD += libpixman-iwmmxt.la

libpixman_iwmmxt_la-pixman-mmx.lo: pixman-mmx.c
	$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS)
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(AM_CPPFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $(IWMMXT_CFLAGS) -MT
libpixman_iwmmxt_la-pixman-mmx.lo -MD -MP -MF
$(DEPDIR)/libpixman_iwmmxt_la-pixman-mmx.Tpo -c -o
libpixman_iwmmxt_la-pixman-mmx.lo `test -f 'pixman-mmx.c' || echo
'$(srcdir)/'`pixman-mmx.c
	$(AM_V_at)$(am__mv) $(DEPDIR)/libpixman_iwmmxt_la-pixman-mmx.Tpo
$(DEPDIR)/libpixman_iwmmxt_la-pixman-mmx.Plo

libpixman_iwmmxt_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
libpixman_iwmmxt_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
        $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
	$(CFLAGS) $(IWMMXT_CFLAGS) $(AM_LDFLAGS) \
	$(LDFLAGS) -o $@

libpixman-iwmmxt.la: libpixman_iwmmxt_la-pixman-mmx.lo
$(libpixman_iwmmxt_la_DEPENDENCIES)
	$(AM_V_CCLD)$(libpixman_iwmmxt_la_LINK)
libpixman_iwmmxt_la-pixman-mmx.lo $(libpixman_iwmmxt_la_LIBADD) $(LIBS)
endif

The build system makes an unnecessary stop and .deps must be created
manually. My quick hack solution is just to force iwmmxt CFLAGS:

# iwmmxt code
if USE_ARM_IWMMXT
noinst_LTLIBRARIES += libpixman-iwmmxt.la
libpixman_iwmmxt_la_SOURCES = pixman-mmx.c
libpixman_1_la_LIBADD += libpixman-iwmmxt.la

CFLAGS += $(IWMMXT_CFLAGS)

endif

or just make the .deps directory before the gcc call.

Is my solution valid (or is the using of the special gcc call for iwmmxt
object file required somewhere else), I'm not too much familiar with
autotools.

Best regards,
Petr



More information about the Pixman mailing list