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

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

[avr-libc-dev] Not building crtm32.0


From: Curtis Maloney
Subject: [avr-libc-dev] Not building crtm32.0
Date: Wed, 03 Aug 2005 11:38:10 +1000
User-agent: Debian Thunderbird 1.0.6 (X11/20050802)

Greetings,
I've just gone through the joys of building binutils 2.16, gcc 4.0.1 and avr-libc 1.2.5, and have run smack into some problems.

avr-libc does not build crtm*.o unless I give --with-multilib=avr5 (undocumented, it seems) to configure.

Fine. Now it's built, but trying to buil my application (which built fine with the debian packages - binutils 2.16, gcc 3.4.3, libc 1.2.3 ) now gives the error: avr-gcc -mmcu=atmega32 -g -Wl,-Map,bootloader.map -o bootloader.obj -Os -g -ffreestanding -mshort-calls -mno-tablejump -fomit-frame-pointer -mno-interrupts-Wall -Wextra -DF_CPU=9830400UL -mmcu=atmega32 -Wa,-ahlms=bootloader.o -Wl,-Ttext,0x7000 bootloader.o flash.o xmodem.o serial.o /usr/local/lib/gcc/avr/4.0.1/../../../../avr/lib/avr5/libc.a(calloc.o): In function `calloc': /home/curtis/src/avr-libc-1.2.5/libc/stdlib/calloc.c:41: undefined reference to `__mulhi3'


A quick bit of googling, and I turn up that someone suggests this is because -mmcu isn't set properly, since the mega CPUs have a hardware multiplier.

As you can see there, it's set.

What's the story?

--
Curtis Maloney
address@hidden




reply via email to

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