dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Problems compiling under Linux

Re: Problems compiling under Linux

From: Robert Hak <>
Date: Sat, 27 Jul 2002 01:57:29 -0400 (EDT)

Well.. if you are trying to build the actual mod file, the reason that the
sh-elf-gcc is set is because you need a cross compiler and not just the
standard gcc to build the software.

If you wish to build the simulator, then the configure script gives you
that option when you run it.

Hope that helps


On Sat, 27 Jul 2002, Uwe Freese wrote:


I unpacked the source files under SuSE Linux 7.2 and started

The firmware/Makefile says:

CC = sh-elf-gcc
LD = sh-elf-ld
AR = sh-elf-ar
AS = sh-elf-as
OC = sh-elf-objcopy

Why these names? I'd never seen that someone starts his c-compiler with
sh-elf-gcc! Why is is not just "cc" or "gcc"?

Then I edited the Makefile into

CC = gcc
LD = ld
AR = ar
AS = as
OC = objcopy

and started 'make'. The output:

Updating dependencies for [...]
gcc -W -Wall -O -m1 -nostdlib -Wstrict-prototypes -Iinclude -I.
-Icommon -Idrivers -DARCHOS_PLAYER=1 -fomit-frame-pointer
-fschedule-insns -c drivers/adc.c -o drivers/adc.o
cc1: Invalid option `1'
make: *** [drivers/adc.o] Error 1

Has somebody an idea what this error means? I don't see a '1' option in
the parameter list above!? Do I have to install some special c-compiler?
(If so, it should probably updated in the 'Readme').

Thanks for any hints.
Bye, Uwe.

                    Robert E. Hak

Calvin: I'm a genius, but I'm a misunderstood genius.
Hobbes: What's misunderstood about you?
Calvin: Nobody thinks I'm a genius.
        - Calvin & Hobbes
Received on 2002-07-27

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy