[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] avr-gcc on Mac OS X gives Bus Error in avr-ld
From: |
Peter N Lewis |
Subject: |
[avr-gcc-list] avr-gcc on Mac OS X gives Bus Error in avr-ld |
Date: |
Sat, 19 Jan 2002 12:43:04 +0800 |
Has anyone got avr-gcc working under Mac OS X?
I've previously had no troubles with Linux, but when I got the latest
versions and tried to make it work under Mac OS X, avr-ld gives me a
Bus Error.
I did the following to install:
use binutils-020116.tar.bz2
from ftp://sources.redhat.com/pub/binutils/snapshots/binutils.tar.bz2
tar xfz (bunzip2?)
configure --target=avr --disable-nls --prefix=/Users/peter/unix/avr
make
make install
use gcc-3.0.3.tar.gz
from ftp://mirror.aarnet.edu.au/pub/gcc/releases/gcc-3.0.3/gcc-3.0.3.tar.bz2
tar xfz
configure --target=avr --enable-languages=c --prefix=/Users/peter/unix/avr
make
make install
use avr-libc-20020115.tar.gz
from http://www.amelek.gda.pl/avr/libc/avr-libc-20020115.tar.gz
doconf PREFIX=/Users/peter/unix/avr
domake
domake install
And then I compile it as:
avr-gcc -mmcu=at90s8535 -Wall -Os -I../include -c -o master.o master.c
avr-ld -m avr85xx -o master.elf -L/Users/peter/unix/avr/avr/lib
-L/Users/peter/unix/avr/lib master.o
/Users/peter/unix/avr/avr/lib/crts8535.o
/Users/peter/unix/avr/avr/lib/libc.a
make: *** [master.elf] Bus error
make: *** Deleting file `master.elf'
Any ideas? I don't really know how to go about debugging avr-ld...
Thanks,
Peter.
--
<http://www.interarchy.com/> <ftp://ftp.interarchy.com/interarchy.hqx>
avr-gcc-list at http://avr1.org