Tips for debugging vi-firmware bootstrap.sh in Vagrant?

49 views
Skip to first unread message

Eric Marsman

unread,
May 26, 2015, 2:37:01 PM5/26/15
to ope...@googlegroups.com
Running Win7 with Vagrant. After a successful 'vagrant up' on a new clone of vi-firmware, I have an issue where 'clang' isn't installed to run the test suite (I've temporarily gotten around the problem with a 'sudo apt-get install clang'). I've also had several other issues with bootstraph.sh missing packages or having other issues. There also appear to be several others on the forum with bootstrap issues as well.

Are there particular logs to look at besides the shell output? Any useful debugging options? I'm somewhat at a loss of where to go next besides adding debug messages the devel.sh script. 

I've read through some of the Vagrant Docs and I'm not finding what I'm looking for. 

Thanks,
Eric

FYI, for my particular 'clang' issue. I can make this a separate thread if necessary. Here is the relevant output from '/scripts/bootstrap/devel.sh' portion. I see no other pertinent messages.

==> default: Installing dependencies for running test suite...

==> default: Reading package lists...

==> default: Building dependency tree...

==> default: Reading state information...

==> default: The following extra packages will be installed:

==> default:   libgd-gd2-perl libgd2-xpm

==> default: Suggested packages:

==> default:   libgd-tools

==> default: The following packages will be REMOVED:

==> default:   libgd2-noxpm

==> default: The following NEW packages will be installed:

==> default:   lcov libgd-gd2-perl libgd2-xpm

==> default: 0 upgraded, 3 newly installed, 1 to remove and 116 not upgraded.

==> default: Need to get 494 kB of archives.

==> default: After this operation, 935 kB of additional disk space will be used.

 

==> default: Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libgd2-xpm amd64 2.0.36~rc1~dfsg-6ubuntu2 [202 kB]

==> default: Get:2 http://archive.ubuntu.com/ubuntu/ precise/universe lcov all 1.9-2 [105 kB]

==> default: Get:3 http://archive.ubuntu.com/ubuntu/ precise/main libgd-gd2-perl amd64 1:2.46-3build1 [187 kB]

==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory

==> default: Fetched 494 kB in 0s (1,187 kB/s)

==> default: dpkg: libgd2-noxpm: dependency problems, but removing anyway as you requested:

==> default:  libgvc5 depends on libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm(>= 2.0.36~rc1~dfsg); however:

==> default:   Package libgd2-noxpm is to be removed.

==> default:   Package libgd2-xpm is not installed.

==> default:  graphviz depends on libgd2-noxpm (>= 2.0.36~rc1~dfsg) | libgd2-xpm (>= 2.0.36~rc1~dfsg); however:

==> default:   Package libgd2-noxpm is to be removed.

==> default:   Package libgd2-xpm is not installed.

==> default: (Reading database ...

==> default: 69302 files and directories currently installed.)

==> default: Removing libgd2-noxpm ...

==> default: Processing triggers for libc-bin ...

==> default: ldconfig deferred processing now taking place

==> default: Selecting previously unselected package libgd2-xpm.

==> default: (Reading database ...

==> default: 69293 files and directories currently installed.)

==> default: Unpacking libgd2-xpm (from .../libgd2-xpm_2.0.36~rc1~dfsg-6ubuntu2_amd64.deb) ...

==> default: Setting up libgd2-xpm (2.0.36~rc1~dfsg-6ubuntu2) ...

==> default: Processing triggers for libc-bin ...

==> default: ldconfig deferred processing now taking place

==> default: Selecting previously unselected package lcov.

==> default: (Reading database ...

==> default: 69302 files and directories currently installed.)

==> default: Unpacking lcov (from .../archives/lcov_1.9-2_all.deb) ...

==> default: Selecting previously unselected package libgd-gd2-perl.

==> default: Unpacking libgd-gd2-perl (from .../libgd-gd2-perl_1%3a2.46-3build1_amd64.deb) ...

==> default: Processing triggers for man-db ...

==> default: Setting up lcov (1.9-2) ...

==> default: Setting up libgd-gd2-perl (1:2.46-3build1) ...

==> default: Reading package lists...

==> default: Building dependency tree...

==> default: Reading state information...

==> default: 0 upgraded, 0 newly installed, 0 to remove and 116 not upgraded.

==> default: Installing the check unit testing library...

 

After a 'vagrant ssh', I get:

vagrant@vagrant-ubuntu-precise-64:~$ command -v clang

vagrant@vagrant-ubuntu-precise-64:~$ which clang

vagrant@vagrant-ubuntu-precise-64:~$ clang

The program 'clang' is currently not installed.  To run 'clang' please ask your

administrator to install the package 'clang'

vagrant@vagrant-ubuntu-precise-64:~$

 

Christopher Peplin

unread,
May 26, 2015, 2:45:51 PM5/26/15
to openxc@googlegroups com
Hey Eric - the bootstrapping process is just a shell script, it's nothing Vagrant specific. Vagrant boots up the VM, then runs out script to set up whatever packages we want. It seems to be extremely unreliable overall, so if anyone can improve the script or switch it over to use something more predictable like Ansible, that'd be awesome.

--
You received this message because you are subscribed to the Google Groups "OpenXC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openxc+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/openxc.
To view this discussion on the web visit https://groups.google.com/d/msgid/openxc/430fe893-d8d5-42fe-9426-65d570529f6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages