usplash fails to build from source (armel, karmic)

Bug #568337 reported by Carey Underwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usplash (Ubuntu)
Fix Released
Undecided
Loïc Minier

Bug Description

Binary package hint: usplash

Building from source fails while compiling the included svgalib:

.../usplash-0.5.49/svgalib/src/vga.c: In function 'savepalette':
.../usplash-0.5.49/svgalib/src/libvga.h:275: error: impossible constraint in 'asm'
.../usplash-0.5.49/svgalib/src/libvga.h:294: error: impossible constraint in 'asm'
.../usplash-0.5.49/svgalib/src/libvga.h:294: error: impossible constraint in 'asm'
.../usplash-0.5.49/svgalib/src/libvga.h:294: error: impossible constraint in 'asm'
make[3]: *** [vga.o] Error 1
make[3]: Leaving directory '.../usplash-0.5.49/svgalib/staticlib'
make[2]: *** [staticlib/libvga.a] Error 2
make[2]: Leaving directory '.../usplash-0.5.49/svgalib'
make[1]: *** [svgalib] Error 2
make[1]: Leaving directory '.../usplash-0.5.49'
make: *** [build-stamp] Error 2

* Compiling from a qemu armel vm
* Dependencies installed via aptitude build-dep uimage
* Build triggered via debian/rules binary
* gcc version: 4:4.4.1-1ubuntu2

It was suggested that adding -marm to the CFLAGS in debian/rules might allow the build to finish, but the build still fails with the same errors.

Carey Underwood (cwillu)
description: updated
Revision history for this message
Dave Martin (dave-martin-arm) wrote :

The failure seems to come from trying to build some x86-specific inline asm in src/svgalib.h:

static __inline__ void port_out(int value, int port)
{
    __asm__ volatile ("outb %0,%1"
              ::"a" ((unsigned char) value), "d"((unsigned short) port));
}

static __inline__ void port_outw(int value, int port)
{
    __asm__ volatile ("outw %0,%1"
             ::"a" ((unsigned short) value), "d"((unsigned short) port));
}

static __inline__ void port_outl(int value, int port)
{
    __asm__ volatile ("outl %0,%w1"
             ::"a" ((unsigned int)value), "Nd" ((unsigned short) port));
}

Revision history for this message
Dave Martin (dave-martin-arm) wrote :

I meant src/libvga.h

Revision history for this message
Oliver Grawert (ogra) wrote :

on armel the package should use the bogl backend and not try to build svgalib parts at all(apparently it does that on the builders)

Revision history for this message
Loïc Minier (lool) wrote :

debian/rules was missing a default value for DEB_HOST_ARCH; fixed in bzr.

Changed in usplash (Ubuntu):
assignee: nobody → Loïc Minier (lool)
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usplash - 0.5.52

---------------
usplash (0.5.52) maverick; urgency=low

  * Set DEB_HOST_ARCH if not passed in the env; LP: #568337.
  * Wrap build-deps and deps.
  * Bump up Standards-Version to 3.8.4.
  * Add ${misc:Depends}.
  * Use https://code.launchpad.net/ in Vcs-Bzr.
 -- Loic Minier <email address hidden> Thu, 13 May 2010 15:36:23 +0200

Changed in usplash (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers