Jacob Beard
2011-10-13 19:42:39 UTC
Hi,
I'm trying to build DirectFB 1.5.3 with gcc-4.6 on debian-armel sid,
targeting armv7. I'm attempting to build it on the device, as opposed
to cross-compiling, and I'm currently running into assembler errors.
I'm attempting to build from source, as opposed to using DirectFB
1.2.6 currently in apt, because of the support for PowerVR in the
newer DirectFB releases.
Here's the output of /proc/cpuinfo and autogen.sh:
***@cm-debian:/opt/som/DirectFB# cat /proc/cpuinfo
Processor : ARMv7 Processor rev 7 (v7l)
BogoMIPS : 597.64
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x1
CPU part : 0xc08
CPU revision : 7
Hardware : OMAP3517/AM3517 EVM
Revision : 0020
Serial : 0000000000000000
***@cm-debian:/opt/som/DirectFB# ./autogen.sh --enable-pvr2d
Build options:
Version 1.5.3
Linux powered yes
Install prefix /usr/local
Config files in /usr/local/etc
Build shared libs yes
Build static libs no
Module directory ${exec_prefix}/lib/directfb-1.5-0
CPPFLAGS -D_REENTRANT
CFLAGS -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-strict-aliasing
-Werror-implicit-function-declaration -O2 -g2 -ffast-math -pipe
-D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration
LDFLAGS
LIBS -ldl -lrt -lpthread
DYNLIB -ldl
RTLIB -lrt
THREADFLAGS -D_REENTRANT
THREADLIB -lpthread
Misc options:
Multi Application Core no
Fusion Kernel Device N/A
Fusion message size 16384
Voodoo (network support) no
Pure Voodoo (net only) no
Debug supported yes
Debug enabled no
Trace support no
MMX support no
SSE support no
Network support yes
Include all strings yes
Software Rendering yes
Smooth SW Scaling no
Dithering none
Dithering 565 none
zlib compression no
sysfs support yes -lsysfs
Using setsockopt yes
Building Tests no
Building Tools yes
Building System Modules:
Linux FBDev support yes
Generic /dev/mem support yes
Mesa/DRM/KMS support yes
-I/usr/local/XSGX/include -I/usr/local/XSGX/include/drm
-L/usr/local/XSGX/lib -lGLU -lGL -lEGL -ldrm
PVR2D yes
X11 support yes -lX11 -lXext
X11/VDPAU support no
OSX support no
SDL support no
VNC support no
Building Window Manager Modules:
Default yes
UniQuE no
Building Image Provider Modules:
GIF yes
JPEG yes -ljpeg
PNG yes
-I/usr/include/libpng12 -lpng12
Building Video Provider Modules:
GIF yes
Video4Linux yes (v2: no)
MNG no
Building Font Modules:
FreeType2 yes
-I/usr/include/freetype2 -lfreetype
LinoType no
Default font yes
Building Graphics Drivers:
3Dfx Voodoo yes
ATI Mach64 yes
ATI Rage 128 yes
ATI Radeon no
Cirrus EP9X yes
Intel i810 no
Intel i830 no
Matrox yes
NeoMagic no
NSC Geode yes
nVidia yes
PVR2D yes
PXA 3xx yes
Renesas SH7722/SH7723 no
S3 Savage no
SiS 315 yes
TI Davinci yes
TI OMAP yes
TVIA CyberPro no
VIA CLE266 no
VIA UniChrome no
VMWare no
VDPAU no
--
OpenGL yes (GLX: yes)
OpenGL ES 2.0 yes (Mesa: yes, PVR2D: yes)
-DGLES2_PVR2D
Building Input Drivers:
DBox2 Remote no
DreamBox Remote no
Dynapro Touchscreen no
ELO Touchscreen no
Gunze Touchscreen no
H3600 Touchscreen no
Joystick yes
Keyboard yes
Linux Input yes
LiRC yes
MuTouch touchscreen yes
Zytronic touchscreen yes
PS/2 Mouse yes
Serial Mouse yes
SonyPI Jogdial yes
tslib yes -lts
ucb1x00 Touchscreen yes
WM97xx Touchscreen yes
Here is the build output when it fails:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../..
-I../../../../../include -I../../../../../lib -I../../../../../include
-I../../../../../lib -DDATADIR=\"/usr/local/share/directfb-1.5.3\"
-DMODULEDIR=\"/usr/local/lib/directfb-1.5-0\" -D_REENTRANT -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing
-Werror-implicit-function-declaration -O2 -g2 -ffast-math -pipe
-D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration -MT
system.lo -MD -MP -MF .deps/system.Tpo -c system.c -fPIC -DPIC -o
.libs/system.o
system.c: In function 'direct_futex':
system.c:191:19: warning: variable 'count' set but not used
[-Wunused-but-set-variable]
{standard input}: Assembler messages:
{standard input}:503: Error: selected processor does not support ARM
mode `ldrex r2,[r3]'
{standard input}:505: Error: selected processor does not support ARM
mode `strex r0,r2,[r3]'
{standard input}:550: Error: selected processor does not support ARM
mode `ldrex r2,[r3]'
{standard input}:552: Error: selected processor does not support ARM
mode `strex r0,r2,[r3]'
make[5]: *** [system.lo] Error 1
make[5]: Leaving directory `/opt/som/DirectFB/lib/direct/os/linux/glibc'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/som/DirectFB/lib/direct/os'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/som/DirectFB/lib/direct'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/som/DirectFB/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/som/DirectFB'
make: *** [all] Error 2
I'd appreciate any guidance anyone can offer as to how I may resolve
this. Thanks,
Jake
I'm trying to build DirectFB 1.5.3 with gcc-4.6 on debian-armel sid,
targeting armv7. I'm attempting to build it on the device, as opposed
to cross-compiling, and I'm currently running into assembler errors.
I'm attempting to build from source, as opposed to using DirectFB
1.2.6 currently in apt, because of the support for PowerVR in the
newer DirectFB releases.
Here's the output of /proc/cpuinfo and autogen.sh:
***@cm-debian:/opt/som/DirectFB# cat /proc/cpuinfo
Processor : ARMv7 Processor rev 7 (v7l)
BogoMIPS : 597.64
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x1
CPU part : 0xc08
CPU revision : 7
Hardware : OMAP3517/AM3517 EVM
Revision : 0020
Serial : 0000000000000000
***@cm-debian:/opt/som/DirectFB# ./autogen.sh --enable-pvr2d
Build options:
Version 1.5.3
Linux powered yes
Install prefix /usr/local
Config files in /usr/local/etc
Build shared libs yes
Build static libs no
Module directory ${exec_prefix}/lib/directfb-1.5-0
CPPFLAGS -D_REENTRANT
CFLAGS -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-strict-aliasing
-Werror-implicit-function-declaration -O2 -g2 -ffast-math -pipe
-D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration
LDFLAGS
LIBS -ldl -lrt -lpthread
DYNLIB -ldl
RTLIB -lrt
THREADFLAGS -D_REENTRANT
THREADLIB -lpthread
Misc options:
Multi Application Core no
Fusion Kernel Device N/A
Fusion message size 16384
Voodoo (network support) no
Pure Voodoo (net only) no
Debug supported yes
Debug enabled no
Trace support no
MMX support no
SSE support no
Network support yes
Include all strings yes
Software Rendering yes
Smooth SW Scaling no
Dithering none
Dithering 565 none
zlib compression no
sysfs support yes -lsysfs
Using setsockopt yes
Building Tests no
Building Tools yes
Building System Modules:
Linux FBDev support yes
Generic /dev/mem support yes
Mesa/DRM/KMS support yes
-I/usr/local/XSGX/include -I/usr/local/XSGX/include/drm
-L/usr/local/XSGX/lib -lGLU -lGL -lEGL -ldrm
PVR2D yes
X11 support yes -lX11 -lXext
X11/VDPAU support no
OSX support no
SDL support no
VNC support no
Building Window Manager Modules:
Default yes
UniQuE no
Building Image Provider Modules:
GIF yes
JPEG yes -ljpeg
PNG yes
-I/usr/include/libpng12 -lpng12
Building Video Provider Modules:
GIF yes
Video4Linux yes (v2: no)
MNG no
Building Font Modules:
FreeType2 yes
-I/usr/include/freetype2 -lfreetype
LinoType no
Default font yes
Building Graphics Drivers:
3Dfx Voodoo yes
ATI Mach64 yes
ATI Rage 128 yes
ATI Radeon no
Cirrus EP9X yes
Intel i810 no
Intel i830 no
Matrox yes
NeoMagic no
NSC Geode yes
nVidia yes
PVR2D yes
PXA 3xx yes
Renesas SH7722/SH7723 no
S3 Savage no
SiS 315 yes
TI Davinci yes
TI OMAP yes
TVIA CyberPro no
VIA CLE266 no
VIA UniChrome no
VMWare no
VDPAU no
--
OpenGL yes (GLX: yes)
OpenGL ES 2.0 yes (Mesa: yes, PVR2D: yes)
-DGLES2_PVR2D
Building Input Drivers:
DBox2 Remote no
DreamBox Remote no
Dynapro Touchscreen no
ELO Touchscreen no
Gunze Touchscreen no
H3600 Touchscreen no
Joystick yes
Keyboard yes
Linux Input yes
LiRC yes
MuTouch touchscreen yes
Zytronic touchscreen yes
PS/2 Mouse yes
Serial Mouse yes
SonyPI Jogdial yes
tslib yes -lts
ucb1x00 Touchscreen yes
WM97xx Touchscreen yes
Here is the build output when it fails:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../../..
-I../../../../../include -I../../../../../lib -I../../../../../include
-I../../../../../lib -DDATADIR=\"/usr/local/share/directfb-1.5.3\"
-DMODULEDIR=\"/usr/local/lib/directfb-1.5-0\" -D_REENTRANT -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing
-Werror-implicit-function-declaration -O2 -g2 -ffast-math -pipe
-D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration -MT
system.lo -MD -MP -MF .deps/system.Tpo -c system.c -fPIC -DPIC -o
.libs/system.o
system.c: In function 'direct_futex':
system.c:191:19: warning: variable 'count' set but not used
[-Wunused-but-set-variable]
{standard input}: Assembler messages:
{standard input}:503: Error: selected processor does not support ARM
mode `ldrex r2,[r3]'
{standard input}:505: Error: selected processor does not support ARM
mode `strex r0,r2,[r3]'
{standard input}:550: Error: selected processor does not support ARM
mode `ldrex r2,[r3]'
{standard input}:552: Error: selected processor does not support ARM
mode `strex r0,r2,[r3]'
make[5]: *** [system.lo] Error 1
make[5]: Leaving directory `/opt/som/DirectFB/lib/direct/os/linux/glibc'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/opt/som/DirectFB/lib/direct/os'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/som/DirectFB/lib/direct'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/som/DirectFB/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/som/DirectFB'
make: *** [all] Error 2
I'd appreciate any guidance anyone can offer as to how I may resolve
this. Thanks,
Jake