[Buildroot] binutils doesn't like -elf2flt option

Adam Nielsen a.nielsen at shikadi.net
Wed Jun 19 09:56:34 UTC 2013

>> No I don't want the target binutils, but I don't seem to be able to disable
>> it.  It's deselected in the buildroot config, but it still seems to be getting
>> compiled.  How would I go about working out why?  I'm not sure how to debug
>> all the make dependencies.
> ./support/script/graph-depends > dependencies.dot
> dot -Tpdf -o dependencies.pdf dependencies.dot
> <Your Preferred PDF Viewer> dependencies.pdf

Do I need to do anything special since I am using "make O=..." to keep the 
output separate from the buildroot git repo?  I get this when I run it in the 
buildroot git folder:

$ ./support/scripts/graph-depends > dep.dot
   File "./support/scripts/graph-depends", line 40
     print "Usage: graph-depends [package-name]"
SyntaxError: invalid syntax

$ python2 ./support/scripts/graph-depends > dep.dot
Getting targets
Traceback (most recent call last):
   File "./support/scripts/graph-depends", line 184, in <module>
     for tg in targets:
TypeError: 'NoneType' object is not iterable

And if I run it in my output folder:

$ python2 ../../../buildroot/support/scripts/graph-depends > dep.dot
Getting targets
Getting dependencies for ['elf2flt', 'ncurses', 'zlib', 'nano', 'busybox', 
'linux', 'rootfs-romfs', 'rootfs-tar', 'rootfs-cpio', 'rootfs-initramfs', 
Error getting dependencies ['elf2flt', 'ncurses', 'zlib', 'nano', 'busybox', 
'linux', 'rootfs-romfs', 'rootfs-tar', 'rootfs-cpio', 'rootfs-initramfs', 

So I'm not sure whether I need to do something differently?

> Another solution is to pastebin your full .config file somewhere and
> give us the link, we may be able to point what's triggering the target
> binutils build.

Here's the link I posted earlier: 
but be aware I have made a few changes to buildroot itself (added a few new 
config options), but none that I am aware of that would affect binutils.

Many thanks,

More information about the buildroot mailing list