Bugzilla – Bug 1639
bake.py on linux mint
Last modified: 2013-04-30 12:18:27 UTC
Tried to install dce on fresh linux mint 14. Installed build essentials and the programs listed by bake.py check. Get messages like this: Unavailable Downloading tool (None) for module "libpcap-dev". See below. Also get a 'list index out of range' message at the end of bake.py show brian@LinuxMintVirt ~/Documents/Code/ns3/dce $ bake.py configure -e dce-ns3 brian@LinuxMintVirt ~/Documents/Code/ns3/dce $ bake.py download >> Downloading libpcap-dev - Problem > Error: Unavailable Downloading tool (None) for module "libpcap-dev". Try to call "bake.py check" > Problem: Unmet dependency on module: libpcap-dev. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Downloading libexpat-dev - Problem > Error: Unavailable Downloading tool (None) for module "libexpat-dev". Try to call "bake.py check" > Problem: Unmet dependency on module: libexpat-dev. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Downloading iperf - OK >> Downloading wget - OK >> Downloading thttpd - OK >> Downloading python-dev - Problem > Error: Unavailable Downloading tool (None) for module "python-dev". Try to call "bake.py check" > Problem: Unmet dependency on module: python-dev. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Downloading pygraphviz - Problem > Error: Unavailable Downloading tool (None) for module "pygraphviz". Try to call "bake.py check" > Problem: Unmet dependency on module: pygraphviz. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Downloading pygoocanvas - Problem > Error: Unavailable Downloading tool (None) for module "pygoocanvas". Try to call "bake.py check" > Problem: Unmet dependency on module: pygoocanvas. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Downloading libc-debug - Problem > Error: Unavailable Downloading tool (None) for module "libc-debug". Try to call "bake.py check" > Problem: Unmet dependency on module: libc-debug. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Downloading ccnx - OK >> Downloading pybindgen-user - OK >> Downloading elf-loader - OK >> Downloading ns-3-dev-dce - OK >> Downloading dce-ns3 - OK brian@LinuxMintVirt ~/Documents/Code/ns3/dce $ bake.py check > Python - OK > Mercurial - OK > CVS - OK > GIT - OK > Bazaar - OK > Tar tool - OK > Unzip tool - OK > Unrar tool - OK > 7z data compression utility - OK > XZ data compression utility - OK > Make - OK > cMake - OK > path tool - OK > Autotools - OK brian@LinuxMintVirt ~/Documents/Code/ns3/dce $ bake.py show module: libpcap-dev (enabled) No dependencies! module: libexpat-dev (enabled) No dependencies! module: iperf (enabled) No dependencies! module: wget (enabled) No dependencies! module: thttpd (enabled) No dependencies! module: python-dev (enabled) No dependencies! module: pygraphviz (enabled) No dependencies! module: pygoocanvas (enabled) No dependencies! module: libc-debug (enabled) No dependencies! module: ccnx (enabled) depends on: libpcap-dev (optional:False) libexpat-dev (optional:False) module: pybindgen-user (enabled) depends on: python-dev (optional:False) pygraphviz (optional:False) pygoocanvas (optional:False) module: elf-loader (enabled) depends on: libc-debug (optional:False) module: ns-3-dev-dce (enabled) depends on: pybindgen-user (optional:True) module: dce-ns3 (enabled) depends on: ns-3-dev-dce (optional:False) elf-loader (optional:True) iperf (optional:True) ccnx (optional:True) wget (optional:True) thttpd (optional:True) -- System Dependencies -- > libexpat-dev - OK > libpcap-dev - Missing >> Didn't find libpcap-dev package; please install it. list index out of range
Adding -vv didn't give me any more information
Sorry for all of the comments. Also >> Downloading python-dev - Problem > Error: Unavailable Downloading tool (None) for module "python-dev". Try to call "bake.py check" > Problem: Unmet dependency on module: python-dev. Bake will continue since this module is not in the critical path. For more information call bake with -vv. Is odd considering this: sudo apt-get install python-dev [sudo] password for brian: Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 123 not upgraded.
All confirmed in my Mint installation. Bake is reporting the "plain" requirements for ns-3-dev also for dce-ns3, skipping some (non-essential?) modules. If you try to keep it on and you ask bake to compile (bake-py build) the error messages become even more cryptic. pecos@pecos-Mint ~/workspace $ bake.py build >> Building iperf - OK >> Building wget - OK >> Building thttpd - OK >> Building ccnx - Problem > Subprocess failed with error 2: ['make', 'MORE_LDLIBS=-pie'] > Problem: Unmet dependency on module: ccnx. Bake will continue since this module is not in the critical path. For more information call bake with -vv. >> Building elf-loader - Problem > Subprocess failed with error 2: ['make', 'vdl-config.h'] > Problem: Unmet dependency on module: elf-loader. Hem... unmet dependency on ccnx while compiling ccnx ? Sorry, but the ordinary user will be a little bit confused. And this is an euphemism. Also, -vv doesn't give any further information. On the other hand, bake correctly found python-dev once installed. With all the missing modules installed, the following thing happened: 1) bake.py show didn't hang anymore at the end of the list (previously it did) and 2) bake.py keeps complaining about missing libc-debug, even when libc6-dbg was installed. Note that there's no libc-debug in Ubuntu. Hence not even in Mint. As a final remark, Mint is just a *skin* over Ubuntu. /etc/issue reports Linux Mint 14 Nadia, but /etc/apt/sources.list shows it's true self: deb http://archive.ubuntu.com/ubuntu quantal [etc]. Hence, I'm confident that the very same issues are also in Ubuntu. Not a good news, sadly. T.
The thing is that mint is not one of the main distributions supported (fedora Ubuntu, Debian...) I submitted a "best effort" path (changeset: 223) But without a real machine to test I am not sure it will work.
I added a buildslave for linux mint and was able to confirm all of the above. I also checked out the current bake (rev 228) and found that it still reports 'list out of range' whenever something is missing. -- System Dependencies -- > g++ - OK > libxml2-dev - OK > pygoocanvas - Missing >> The pygoocanvas is not installed, try to install it. list index out of range and I am still seeing these errors: > Error: Unavailable Downloading tool (None) for module "python-dev". Try to call "bake.py check" I think I have seen 'list index out of range' on other slaves this past week. Upgrading to blocker.
Mint is added to the list of supported distributions and for any new distribution that is not recognized bake will inform the user that there is a problem with the system dependency and that he/she should try to solve it or ask the sys admin. (changeset 232) The "list index out of range" error fixed for unknown distributions (changeset 233) The problem of counter-intuitive dependency over build is already the issue of other bug.
(In reply to comment #3) > 2) bake.py keeps complaining about missing libc-debug, even when libc6-dbg was > installed. > Note that there's no libc-debug in Ubuntu. Hence not even in Mint. I've added several lines to fix above. changeset: 8876b9edc08d http://code.nsnam.org/bake/rev/8876b9edc08d