Author Topic: Pdaxrom, Visualboyadvance & Fpu Errors  (Read 2243 times)

crstophr

  • Newbie
  • *
  • Posts: 18
    • View Profile
Pdaxrom, Visualboyadvance & Fpu Errors
« on: October 14, 2005, 01:17:28 pm »
Quote
Code: [Select]
g++ -fno-exceptions -I/usr/include/SDL -D_REENTRANT -mcpu=xscale -mtune=xscale -WA,-mfpu=softvfp -funroll-loops -fomit-frame-pointer -pipe -DC_CORE -DPROFILING   -o VisualBoyAdvance  SDL.o debugger.o 2xSaI.o Cheats.o EEprom.o Flash.o GBA.o Gfx.o Globals.o Mode0.o Mode1.o Mode2.o Mode3.o Mode4.o Mode5.o RTC.o Sound.o Sram.o Text.o Util.o admame.o agbprint.o armdis.o bilinear.o bios.o elf.o expr-lex.o expr.o exprNode.o getopt.o getopt1.o hq2x.o interframe.o memgzio.o motionblur.o pixel.o remote.o scanline.o simple2x.o unzip.o ../gb/libgb.a ../prof/libprof.a -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lpng -lz
/zgcc/bin/../lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: ERROR: /usr/lib/libSDL.so uses FPA instructions, whereas VisualBoyAdvance does not
/zgcc/bin/../lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: ERROR: /usr/lib/libSDL.so uses hardware FP, whereas VisualBoyAdvance uses software FP
/zgcc/bin/../lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: failed to merge target specific data of file /usr/lib/libSDL.so
collect2: ld returned 1 exit status

I get the above errors when I try to compile VisualBoyAdvance on pdaxrom rc12 on 3100.  Ultimately I'm trying to produce an iwmmx enabled VBA but for now I would be happy to see it compile successfully once with normal compiler options.  I've tried variations of -Wa,fpu=fpa fpa11 and softvfp.  I've tried -msoft-float and -mhard-float.  

Either I can't make it past the ./configure step where it tries to produce a C executable or I get all the way through the process and fail at the linking step at the end.  Either way I get messages about FPA instructions and hard vs software FPU.

I see that VisualBoyAdvance is in the feeds and I've installed it.  Can you guys tell me what options you used to get it to compile in the first place?

I'm using the zgcc you posted a little while back (3.4.4) on the cramfs image.  I am not using a cross compiler.  I'm compiling on the Z directly.

Thanks,

--Chris
« Last Edit: October 14, 2005, 01:19:20 pm by crstophr »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Pdaxrom, Visualboyadvance & Fpu Errors
« Reply #1 on: October 15, 2005, 05:33:54 am »
have you mounted the image in /opt/native... etc (search other thread)?
Otherwise you will hace problems. (the image has the sdl header  and you should not have to add a -I/usr/include/SDL)


Have you installe sdl from this feed:
http://212.10.30.205/rc12/Zaurus-C1000-C3100/feed/ ?
SLC-860 cacko / senao wifi

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Pdaxrom, Visualboyadvance & Fpu Errors
« Reply #2 on: October 15, 2005, 09:05:59 am »
Quote
Quote
Code: [Select]
g++ -fno-exceptions -I/usr/include/SDL -D_REENTRANT -mcpu=xscale -mtune=xscale -WA,-mfpu=softvfp -funroll-loops -fomit-frame-pointer -pipe -DC_CORE -DPROFILING   -o VisualBoyAdvance  SDL.o debugger.o 2xSaI.o Cheats.o EEprom.o Flash.o GBA.o Gfx.o Globals.o Mode0.o Mode1.o Mode2.o Mode3.o Mode4.o Mode5.o RTC.o Sound.o Sram.o Text.o Util.o admame.o agbprint.o armdis.o bilinear.o bios.o elf.o expr-lex.o expr.o exprNode.o getopt.o getopt1.o hq2x.o interframe.o memgzio.o motionblur.o pixel.o remote.o scanline.o simple2x.o unzip.o ../gb/libgb.a ../prof/libprof.a -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lpng -lz
/zgcc/bin/../lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: ERROR: /usr/lib/libSDL.so uses FPA instructions, whereas VisualBoyAdvance does not
/zgcc/bin/../lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: ERROR: /usr/lib/libSDL.so uses hardware FP, whereas VisualBoyAdvance uses software FP
/zgcc/bin/../lib/gcc/armv5tel-cacko-linux/3.4.4/../../../../armv5tel-cacko-linux/bin/ld: failed to merge target specific data of file /usr/lib/libSDL.so
collect2: ld returned 1 exit status

I get the above errors when I try to compile VisualBoyAdvance on pdaxrom rc12 on 3100.  Ultimately I'm trying to produce an iwmmx enabled VBA but for now I would be happy to see it compile successfully once with normal compiler options.  I've tried variations of -Wa,fpu=fpa fpa11 and softvfp.  I've tried -msoft-float and -mhard-float.  

Either I can't make it past the ./configure step where it tries to produce a C executable or I get all the way through the process and fail at the linking step at the end.  Either way I get messages about FPA instructions and hard vs software FPU.

I see that VisualBoyAdvance is in the feeds and I've installed it.  Can you guys tell me what options you used to get it to compile in the first place?

I'm using the zgcc you posted a little while back (3.4.4) on the cramfs image.  I am not using a cross compiler.  I'm compiling on the Z directly.

Thanks,

--Chris
[div align=\"right\"][a href=\"index.php?act=findpost&pid=99383\"][{POST_SNAPBACK}][/a][/div]

remove option "-WA,-mfpu=softvfp", that is default mode for pdaXrom toolchains.