Missing object file at linkage - crtm8.o

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well I seem to have shot myself in the foot slightly by upgrading my libc ( from 1.2.3 to 1.4.4 ) since I can't link the program now... The order is as follows all of my files compile to object files properly but when it comes time to link it I get an error that the linker can't find the file crtm8.o. That makes alot of sense because I've searched the entire system and it doesn't exist. I haven't been able to figure out where the file is supposed to be by looking at the docs ( gcc - but that makes sense, and libc ). It appears to me that is snould be a file containing routines specific to the processor as I'm using a Mega 8 ( crt m8.o ) but that isn't a lot of help. I wouldn't be surprised if I missed something installing the tool chain but I had no errors. If any one has any ideas where else to look I'd love to hear it. Currently I'm running binutils 2.15-3, gcc-avr 3.4.3-2, and avr-libc 1.4.4.

I've been programming avr's in asm for close to a year now but I'm just starting with the avr-gcc tool chain, and I'm getting back my C chops after several years of C++ and Java on PC's. It's nice to be back to simpler systems again.

Martin Jay McKee

As with most things in engineering, the answer is an unabashed, "It depends."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Seems you've botched the library upgrade then. This file
is part of the library.

Besides, the remainder of your toolchain is *way* out of
date as well. binutils is at 2.16.1 (with 2.17 being close
IIRC), GCC at either 4.1.0 or 3.4.6.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes I know that things are out of date, I started with what was avaliable as a package in my distro and that was all there was, once I'm up and running I think I'll probably update the packages so that it's at least a bit closer to current.

I think I might just try to start over, install binutils, gcc, and reinstall libc and see if that takes care of things. I rather expected that it was a component of libc but with no errors I did wonder. Thank you.

Martin Jay McKee

As with most things in engineering, the answer is an unabashed, "It depends."