[oe-issues] [Bug 2154] New: snes9x-sdl-1.39 compilation error and alignment runtime errors
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Sat Apr 28 20:52:47 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=2154
Summary: snes9x-sdl-1.39 compilation error and alignment runtime
errors
Product: Openembedded
Version: Angstrom
Platform: ARM
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Distributions
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: manuel.teira at telefonica.net
QAContact: tinderbox-oe at gmx.net
Trying to compile, gcc-4.1 complains about linkage conflicts:
| arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -fno-rtti
-fno-exceptions
-I/home/mteira/oeroot/build/tmp/staging/arm-angstrom-linux-gnueabi/include
-I/home/mteira/oeroot/build/tmp/staging/arm-angstrom-linux-gnueabi/include/SDL
-D_REENTRANT -c -D_ZAURUS -Os -ffast-math -fstrict-aliasing
-fomit-frame-pointer -I. -Iunzip -D__linux -DZLIB -DVAR_CYCLES -DCPU_SHUTDOWN
-DSPC700_SHUTDOWN -DSPC700_C -DUNZIP_SUPPORT -DNO_INLINE_SET_GET
data.cpp -o data.o
| arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -fno-rtti
-fno-exceptions
-I/home/mteira/oeroot/build/tmp/staging/arm-angstrom-linux-gnueabi/include
-I/home/mteira/oeroot/build/tmp/staging/arm-angstrom-linux-gnueabi/include/SDL
-D_REENTRANT -c -D_ZAURUS -Os -ffast-math -fstrict-aliasing
-fomit-frame-pointer -I. -Iunzip -D__linux -DZLIB -DVAR_CYCLES -DCPU_SHUTDOWN
-DSPC700_SHUTDOWN -DSPC700_C -DUNZIP_SUPPORT -DNO_INLINE_SET_GET
globals.cpp -o globals.o
| dsp1.h:238: error: previous declaration of 'SDSP1 DSP1' with 'C++' linkage
| globals.cpp:76: error: conflicts with new declaration with 'C' linkage
| make: *** [globals.o] Error 1
| FATAL: oe_runmake failed
NOTE: Task failed:
/home/mteira/oeroot/build/tmp/work/armv5te-angstrom-linux-gnueabi/snes9x-sdl-1.39-r2/temp/log.do_compile.1649
Also, while running, sound is corrupted, and a lot of missalignment traps are
produced, leading to very bad performance.
I'm attaching a patch where:
1.-The linkage type is changed in dsp1.h for an extern struct.
2.-Added an __attribute__((aligned(4))) to the audio buffer, where access was
triggering the alignment traps (it seems that gcc3 was producing different
alignments)
3.-The recipe is updated to use the new patch and the version is bumped up to
r3.
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Openembedded-issues
mailing list