Results 1 to 4 of 4
I'm currently trying to install the newest version of binutills to my /usr/local/avr directory for use with the AVR library. I'm following this guide here. avr-libc: Building and Installing the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-21-2008 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 1
Error While Installing Binutils
I'm currently trying to install the newest version of binutills to my /usr/local/avr directory for use with the AVR library. I'm following this guide here. avr-libc: Building and Installing the GNU Tool Chain
After running the configure file, I run the makefile and i keep getting this error. Any advice?
(I'm running Ubuntu 8.10)
avr-dis.c: In function 'avr_operand':
avr-dis.c:112: error: format not a string literal and no format arguments
avr-dis.c:152: error: format not a string literal and no format arguments
avr-dis.c:161: error: format not a string literal and no format arguments
avr-dis.c:172: error: format not a string literal and no format arguments
make[4]: *** [avr-dis.lo] Error 1
make[4]: Leaving directory `/home/mdmaxson/Desktop/binutils-2.19/opcodes'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mdmaxson/Desktop/binutils-2.19/opcodes'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mdmaxson/Desktop/binutils-2.19/opcodes'
make[1]: *** [all-opcodes] Error 2
make[1]: Leaving directory `/home/mdmaxson/Desktop/binutils-2.19'
make: *** [all] Error 2
- 11-23-2008 #2
What you are undertaking is a very tricky thing. I like it. You are building a cross compiler. Following the instructions exactly is very important.
Did you...
- Add the .../local/avr/ dir to your path?
- Also add .../local/avr/bin to path.
- export CC="" (to clear out your CC variable).
I would definitely recommend starting over completely (unpacking sources from tarballs). Take the advice on creating a ./local/avr dir in your home directory, not in the /usr tree (that is nonsense and isn't compliant with the FHS). Then continue as a regular (non-root) user. That way if you screw up, you won't wreck your whole system.
- 11-23-2008 #3
I meant for the first item in the bulleted list (above) to be:
- Set the PREFIX variable to .../local/avr
...so much for following the directions exactly...
Using GCC v4.1.2, I was able to "make" Binutils v2.19 in my /home/user/src/binutils-2.19/obj-avr directory following the exact procedure in the document. (as a regular user, with my PREFIX variable set to /home/user/local/avr)
If you still can't get it to work, I suggest using an older version of Binutils. The version installed on your OS might be a good choice - at least your compiler should be able to handle it. Otherwise, maybe roll back a version or three from newest.
- 11-30-2008 #4Just Joined!
- Join Date
- Nov 2008
- Posts
- 1
I have the same Problem. Has anyone found a solution ?
I set the PREFIX, CC and PATH. My GCC is Version 4.3.2 and binutils 2.17 to 2.19.


Reply With Quote
