Ubuntu 8.10 compiling troubles...
Moderator: adafruit

Ubuntu 8.10 compiling troubles...

by Flecko on Sat Jan 03, 2009 11:58 pm

Greetings Fuzeboxers,

I just wanted to post a heads up to anyone that is trying to compile any of the fuzebox examples or even their own programs under Ubuntu 8.10.

I found that there is a bug in the binutils-avr package that means that the avr-size program doesn't recognize the -C option. The version of avr-size that comes with the default 8.10 supplied version of binutils-avr is outdated. If you get the newer Jaunty version of binutils-avr, there is another bug that strikes concerning the option -mmcu=atmega644.

So for now, if you're using Ubuntu(like I am) then you're out of luck for compiling programs for your Fuzebox. If anyone here knows of a workaround, I'm all ears, but I suppose I'll just have to use VirtualBox to install a VM of some other distro that ships the right versions.

Take care 'boxers!
Flecko
 
Posts: 4
Joined: Sat Jan 03, 2009 11:52 pm

Re: Ubuntu 8.10 compiling troubles...

by adafruit on Sun Jan 04, 2009 2:07 am

whats the bug in the latest version that prevents coding for m644???
User avatar
adafruit
 
Posts: 11717
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Ubuntu 8.10 compiling troubles...

by Flecko on Sun Jan 04, 2009 12:04 pm

Well, as of yesterdays Jaunty binutils-avr, the error I'm seeing is that the assembler doesn't recognize the option -mmcu=atmega644

Code: Select all | TOGGLE FULL SIZE
flecko@flextop:~/fuzefirmware-v2b2/hello$ make
avr-gcc -I.. -mmcu=atmega644 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=28636360UL -Os -DVIDEO_MODE=1 -fsigned-char -MD -MP -MT hello.o -MF dep/hello.o.d  -c  hello.c
as: unrecognized option '-mmcu=atmega644'
make: *** [hello.o] Error 1


My download of Jaunty finished overnight, so I'm going to see if I can get anything going after I install it. I'll post back the details.
Flecko
 
Posts: 4
Joined: Sat Jan 03, 2009 11:52 pm

Re: Ubuntu 8.10 compiling troubles...

by Flecko on Sun Jan 04, 2009 1:29 pm

Good news!

As of todays latest Jaunty updates, everything seems to be working fine, so don't panic!

It looks like just 8.10 that has the troubles. I shouldn't have gotten cocky and mixed Jaunty packages with an 8.10 install. Besides, 9.04 will be out in a few months, so I would recommend running it under Virtualbox until then just because you never know what kind of stability an alpha has.

Good luck 'boxers!
Flecko
 
Posts: 4
Joined: Sat Jan 03, 2009 11:52 pm

Re: Ubuntu 8.10 compiling troubles...

by nitrofurano on Sun May 31, 2009 5:36 pm

as soon as having working Uzebox emulator and development tools, please help us making tarballs or binary .deb files, and share them with us! =)
nitrofurano
 
Posts: 1
Joined: Sun May 31, 2009 5:34 pm