Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: [help] compiling under Debian/Woody
From: Vincent Kujala (kujala_at_geog.ubc.ca)
Date: 2003-05-13


Greetings,

Any friendly tips for compiling (rockbox-daily-20030512) under
Debian/Woody? I've encountered a couple of show stoppers (at
least the last one is not immediately obvious to me):

1 The "-m1" CFLAG in firmware/Makefile causes cpp to choke for
  gcc-2.95 and gcc-3.0 (removing "-m1" seems to clear this error).
  The man page for cpp indicates that "-m" is for machine architecture.
  Do I need a cross compiler for the MAS chip?

2 My assembler seems to be choking on "swap.b" (invalid character ".")
  while compiling drivers/ata.c; Should I be using another assembler?

/datatmp/archos/rockbox-daily-20030512/build# uname -a
Linux debian 2.4.18-586tsc #1 Sun Apr 14 10:57:57 EST 2002 i686 unknown
/datatmp/archos/rockbox-daily-20030512/build# gcc --version
3.0.4
/datatmp/archos/rockbox-daily-20030512/build# cpp --version
3.0.4
/datatmp/archos/rockbox-daily-20030512/build# as --version
GNU assembler 2.12.90.0.1 20020307 Debian/GNU Linux

snippet from verbose compile command:

firmware# sh-elf-gcc -v -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \
-Iinclude -I. -Iexport -Icommon -Idrivers -DARCHOS_FMRECORDER \
-DDISABLE_DEMOS -DDISABLE_GAMES -DMEM=2 -fomit-frame-pointer -fschedule-isns \
-c drivers/ata.c -o /local1/datatmp/archos/rockbox-daily-20030512/build/drivers/ata.o

/tmp/cclCVzPO.s:300: Error: invalid character '.' in mnemonic
/tmp/cclCVzPO.s:319: Error: invalid character '.' in mnemonic

299:#APP
300: swap.b %ax,%ax
301:#NO_APP

318:#APP
319: swap.b %ax,%ax
320:#NO_APP

Thanks in advance for any pointers.
And, er, sorry if this is the wrong forum/list.

-- 
later,
Vincent Kujala (http://www.geog.ubc.ca/~kujala)



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa