avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Atmega163 crtm163.o


From: Theodore A. Roth
Subject: Re: [avr-libc-dev] Atmega163 crtm163.o
Date: Mon, 15 Sep 2003 13:57:01 -0700 (PDT)


On Mon, 15 Sep 2003, Peter Johansson wrote:

> On Mon, 15 Sep 2003, E. Weddington wrote:
>
> > > On Mon, 15 Sep 2003, E. Weddington wrote:
> > >
> > > > > Hi
> > > > >
> > > > > Got problems building avr-libc-0.99.90.20030908 and
> > other
> > > > versions.
> > > > > atmel/lib/gcc-lib/avr/3.3.1/avr5/crtm163.o is missing
> > > > after make.
> > > > > How to get these files built?
> > > > >
> > > > > I use gcc3.3.1 and bu2.14.
> > > > >
> > > > > Regards
> > > > >
> > > > > Peter J
> > > > >
> > > >
> > > > Usually, when it is built, that file is located in:
> > > > $PREFIX/avr/lib/avr5/crtm163.o
> > > > not in
> > > > $PREFIX/lib/gcc-lib/avr/3.3.1/avr5
> > > >
> > > > are you sure you're looking in the right place?
> > > I get this
> > >
> > > avr-gcc -g -mmcu=atmega163 -Wall -Wstrict-prototypes -o
> > blink.out
> > > -Wl,-Map,blink.map blink.o
> > >
> > > atmel/lib/gcc-lib/avr/3.3.1/../../../../avr/bin/ld:
> > cannot open crtm163.o:
> > > No such file or directory
> > >
> > > And I cant find it anywhere in $PREFIX
> >
> > Well $PREFIX is usually set by you, it's your installation
> > directory.
> > What's your build environment / OS? Is it Cygwin?
> Os is linux (CRUX)
>
> I found some info about this problem in a older post by Mattias S.
>
> configure.in:286  (avr-libc CVS)
> change
> AVR_CRT_MEGA='' to
> AVR_CRT_MEGA='crtm161.o crtm162.o crtm163.o crtm169.o crtm323.o crtm128.o
>   crtm8.o crtm16.o crtm32.o crtm64.o'
> and
> AVR_CRT_OTHER='' to
> AVR_CRT_OTHER='crt86401.o ctrat94k.o'
>
> And now it works.

That may work, but it is the wrong approach. Did you read the follow
ups to that post you mention?

  http://www.avr1.org/pipermail/avr-gcc-list/2003-September/005249.html

I'm curious what the real problem is here since it seems to
be a recurring issue.

Are you using the same --prefix configure option for binutils, gcc and
avr-libc?

Did you follow the directions here?

  
http://savannah.nongnu.org/download/avr-libc/doc/avr-libc-user-manual/install_tools.html

If not, what did you do different?

I just did an install from cvs using --prefix=/tmp/foo and crtm163.o
got installed in /tmp/foo/avr/lib/avr5/crtm163.o as it should.
Attached is a list of all files that got installed.

I also did a similar install from the last snapshot tarball with the
same results.

I'm not having any luck duplicating this problem.

Ted Roth

Attachment: tmp-install
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]