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



Rockbox mail archive

Subject: Compiling the Cross Compiler on Mac OS X

Compiling the Cross Compiler on Mac OS X

From: Trevor Savage <closetpacifist_at_myrealbox.com>
Date: Fri, 4 Jul 2003 21:19:21 -0400

Ello!

If anyone has any suggestions or solutions about this problem, they'd be
most welcome.

Today I gave the cross compiler a try, and managed to get it down to
this:

Installed binutils 2.11 as per the instructions on the rockbox page.

Then, as gcc evidentially didn't compile on OS X until version 3.1, I
set about compiling gcc 3.1.
I s/.global/.globl/'s the first part of the lib1funcs.asm file, then I
executed the following commands:

[localhost:~/Build/gcc] trevorsa% setenv PATH
/Users/trevorsa/sh1/bin:$PATH
[localhost:~/Build/gcc] trevorsa% make CC='gcc3 -no-cpp-precomp'

This is the log from when I try to make it now:

make[2]: Nothing to be done for `all'.
(cd intl && make all)
make[2]: Nothing to be done for `all'.
make GCC_FOR_TARGET="/Users/trevorsa/Build/gcc/gcc/xgcc
-B/Users/trevorsa/Build/gcc/gcc/ -B/Users/trevorsa/sh1/sh-elf/bin/
-B/Users/trevorsa/sh1/sh-elf/lib/ -isystem /Users/trevorsa/sh1/sh-
elf/include" \
   HOST_PREFIX="" HOST_PREFIX_1="loser-" \
   AR_FOR_TARGET="sh-elf-ar" \
   AR_CREATE_FOR_TARGET="sh-elf-ar rc" \
   AR_FLAGS_FOR_TARGET="" \
   CFLAGS="-g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
   RANLIB_FOR_TARGET="sh-elf-ranlib" \
   RANLIB_TEST_FOR_TARGET="[ -f sh-elf-ranlib ] || (
[ "powerpc-apple-darwin5.5" = "sh-unknown-elf" ] && [ -f /usr/bin/ranlib
-o -f /bin/ranlib ] )" \
   NM_FOR_TARGET="/Users/trevorsa/sh1/sh-elf/bin/nm" AWK="gawk" \
   LIBGCC2_CFLAGS="-O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
   INCLUDES="-I. -I. -I../../../gcc-3.1/gcc -I../../../gcc-3.1/gcc/.
-I../../../gcc-3.1/gcc/config -I../../../gcc-3.1/gcc/../include" \
   CONFIG_H="config.h auto-host.h
../../../gcc-3.1/gcc/../include/ansidecl.h
../../../gcc-3.1/gcc/config/sh/sh.h ../../../gcc-3.1/gcc/config/sh/elf.h
defaults.h insn-constants.h insn-flags.h" MACHMODE_H="machmode.h
machmode.def" \
   LIB1ASMSRC='sh/lib1funcs.asm' \
   MAKEOVERRIDES= \
   -f libgcc.mk all
for d in libgcc ml libgcc/ml m2 libgcc/m2 m3e libgcc/m3e m4-single-only
libgcc/m4-single-only m4-single libgcc/m4-single m4 libgcc/m4 ml/m2
libgcc/ml/m2 ml/m3e libgcc/ml/m3e ml/m4-single-only
libgcc/ml/m4-single-only ml/m4-single libgcc/ml/m4-single ml/m4
libgcc/ml/m4; do \
   if [ -d $d ]; then true; else /bin/sh
../../../gcc-3.1/gcc/mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/Users/trevorsa/Build/gcc/gcc/xgcc -B/Users/trevorsa/Build/gcc/gcc/
-B/Users/trevorsa/sh1/sh-elf/bin/ -B/Users/trevorsa/sh1/sh-elf/lib/
-isystem /Users/trevorsa/sh1/sh-elf/include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../gcc-3.1/gcc
-I../../../gcc-3.1/gcc/. -I../../../gcc-3.1/gcc/config
-I../../../gcc-3.1/gcc/../include -DL_ashiftrt -xassembler-with-cpp -c
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm -o libgcc/./_ashiftrt.o
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:97:Invalid mnemonic 'rotcl'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:98:Invalid mnemonic 'rts'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:99:Parameter syntax error
(parameter 2)
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:102:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:104:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:106:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:108:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:110:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:112:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:114:Invalid mnemonic
'shlr16'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:115:Invalid mnemonic 'shlr8'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:116:Invalid mnemonic 'rts'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:117:Invalid mnemonic
'exts.b'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:120:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:122:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:124:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:126:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:128:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:130:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:132:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:134:Invalid mnemonic
'shlr16'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:135:Invalid mnemonic 'rts'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:136:Invalid mnemonic
'exts.w'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:139:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:141:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:143:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:145:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:147:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:149:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:151:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:153:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:155:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:157:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:159:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:161:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:163:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:165:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:167:Invalid mnemonic 'rts'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:168:Invalid mnemonic 'shar'
../../../gcc-3.1/gcc/config/sh/lib1funcs.asm:171:Invalid mnemonic 'rts'
make[2]: *** [libgcc/./_ashiftrt.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

I'm wondering if it might be a mismatch in the binutils/gcc version, or
if I'm not including things properly or something... Going to keep
playing with it.
Received on 2003-07-05

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