usplash fails to build from source (armel, karmic)
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-
.../usplash-
.../usplash-
.../usplash-
.../usplash-
make[3]: *** [vga.o] Error 1
make[3]: Leaving directory '.../usplash-
make[2]: *** [staticlib/
make[2]: Leaving directory '.../usplash-
make[1]: *** [svgalib] Error 2
make[1]: Leaving directory '.../usplash-
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.
description: | updated |
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));
}