[ldv-project] Error While testing Linux Kernel Driver

Shyamjith K V shyamjith at acsiatech.com
Fri Jun 5 11:59:41 MSK 2015


Hi,
 I am finding some difficulties in testing a linux kernel driver with LDV.
Before going to the error , i want to confirm that my LDV console-tool is
installed correctly

The following were the last few console outputs of my "make" command



>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> */home/acsia/.rvm/gems/ruby-2.2.1/gems/bones-3.8.3/lib/bones/helpers.rb:7:
> warning: Insecure world writable dir /home/acsia/perl5/perlbrew/bin in
> PATH, mode 040777cd pkg/logging-1.4.3WARNING:  licenses is empty, but is
> recommended.  Use a license abbreviation
> from:http://opensource.org/licenses/alphabetical
> <http://opensource.org/licenses/alphabetical>WARNING:  open-ended
> dependency on little-plugger (>= 1.1.3) is not recommended  if
> little-plugger is semantically versioned, use:    add_runtime_dependency
> 'little-plugger', '~> 1.1', '>= 1.1.3'WARNING:  open-ended dependency on
> flexmock (>= 0, development) is not recommended  if flexmock is
> semantically versioned, use:    add_development_dependency 'flexmock', '~>
> 0'WARNING:  open-ended dependency on bones-git (>= 0, development) is not
> recommended  if bones-git is semantically versioned, use:
> add_development_dependency 'bones-git', '~> 0'WARNING:  open-ended
> dependency on bones-extras (>= 0, development) is not recommended  if
> bones-extras is semantically versioned, use:    add_development_dependency
> 'bones-extras', '~> 0'WARNING:  open-ended dependency on bones (>= 3.8.3,
> development) is not recommended  if bones is semantically versioned, use:
>   add_development_dependency 'bones', '~> 3.8', '>= 3.8.3'WARNING:  See
> http://guides.rubygems.org/specification-reference/
> <http://guides.rubygems.org/specification-reference/> for help
> Successfully built RubyGem  Name: logging  Version: 1.4.3  File:
> logging-1.4.3.gemmv logging-1.4.3.gem ../logging-1.4.3.gemcd -make[1]:
> Leaving directory `/home/acsia/Desktop/LDV/ldv-tools/shared/ruby'*




and the following were the logs after *sudo
prefix=/path/to/installation/dir make install-console-tools*


>
> *cd gems/logging && gem install --install-dir
> /home/acsia/Desktop/LDV/consol-tool-5.22.0/shared/ruby/gem --bindir
> /home/acsia/Desktop/LDV/consol-tool-5.22.0/shared/ruby/bin --no-rdoc
> --no-ri pkg/logging*.gem*
> *Fetching: little-plugger-1.1.3.gem (100%)*
> *Successfully installed little-plugger-1.1.3*
> *Successfully installed logging-1.4.3**2 gems installed*



is my console-tools installed properly??


Now come to the error that i was faced..

I have Downloaded linux-2.36.tar.bz2 and placed it it inside a sample
directory..and run

*ldv-manager "envs=linux-2.6.36.tar.bz2" kernel_driver=1
"drivers=/home/acsia/Desktop/LDV/new_result/linux-2.6.36/drivers"
"rule_models=32_7 32_1"*

But i am getting the following error...



>
>
>
>
>
>
> *Compilation failed in require at
> /home/acsia/Desktop/LDV/consol-tools/drv-env-gen/../shared/perl/Utils.pm
> line 13.BEGIN failed--compilation aborted at
> /home/acsia/Desktop/LDV/consol-tools/drv-env-gen/../shared/perl/Utils.pm
> line 13.Compilation failed in require at
> /home/acsia/Desktop/LDV/consol-tools/ldv-core/../drv-env-gen/drv-env-gen
> line 31.BEGIN failed--compilation aborted at
> /home/acsia/Desktop/LDV/consol-tools/ldv-core/../drv-env-gen/drv-env-gen
> line 31.No such file or directory at
> /home/acsia/Desktop/LDV/consol-tools/ldv-core/ldv-core line 311.ldv-core:
> WARNING: Fatal error.  Stopping services before reporting...ldv-core:
> WARNING: Killing build...ldv-core: WARNING: BCE failed*


The line number 13 inside Utils.pm is *use Proc::Wait3*
 i have that tool already installed
*locate Wait3* give as follows
/usr/local/lib/perl5/site_perl/5.22.0/x86_64-linux/auto/Proc/Wait3/Wait3.so


NOTE: i am using perl-5.22.0

output *which per**l* command is

/home/acsia/perl5/perlbrew/perls/perl-5.22.0/bin/perl

but the perl used inside some files like ldv-core is
#!/usr/bin/perl

Please guide me to resolve this problem ...... sorry if i included too much
information





-- 
Regards,
Shyam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxtesting.org/pipermail/ldv-project/attachments/20150605/8d7abcef/attachment.html>


More information about the ldv-project mailing list