Find the answer to your Linux question:
Results 1 to 6 of 6
hi all, When i make my ipnc kernel it shows error as follws, CHK include/linux/version.h HOSTCC scripts/basic/fixdep scripts/basic/fixdep.c: In function ‘traps’: scripts/basic/fixdep.c:368:2: warning: dereferencing type-punned pointer will break strict-aliasing rules ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2012
    Posts
    42

    linux kernel make error


    hi all,
    When i make my ipnc kernel it shows error as follws,

    CHK include/linux/version.h
    HOSTCC scripts/basic/fixdep
    scripts/basic/fixdep.c: In function ‘traps’:
    scripts/basic/fixdep.c:368:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    scripts/basic/fixdep.c:370:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    HOSTCC scripts/basic/split-include
    scripts/basic/split-include.c: In function ‘main’:
    scripts/basic/split-include.c:133:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
    HOSTCC scripts/basic/docproc
    SPLIT include/linux/autoconf.h -> include/config/*
    touch: cannot touch `include/config/MARKER': Permission denied
    make: *** [include/config/MARKER] Error 1
    shobin@shobin:/opt/mv_pro_4.0.1/davinci_ipnc_kernel$ sudo make clean
    sudo: unable to resolve host shobin
    make[2]: arm_v5t_le-gcc: Command not found
    grep: /usr/include/bits/stat.h: No such file or directory

    what will i do?
    it shows,

    grep: /usr/include/bits/stat.h: No such file or directory


    i give path as,
    export PATH=/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin:$PATH

    please give me a solution

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    you've got lots of problems...

    1. you don't have write permissions on the directory in which you are running make. as root, change ownership, and possibly the permissions, of the files in that dir.

    2. there is something wrong with your sudo entry - it is probably a simple addition to /etc/hosts or changing the sudo entry to use "localhost".

    3. you are missing a required include file, it seems. on my system, that file (stat.h) is provided by the glibc-headers package. check your distro sources for a similar file/package.

    4. the cross-compiler is not in your path. what does this command tell you?

    Code:
    find /opt/mv_pro_4.0.1/ -type f |grep gcc$

  3. #3
    Just Joined!
    Join Date
    Feb 2012
    Posts
    42
    hi,
    when i open /etc/hosts it shows as,

    127.0.0.1 localhost
    127.0.1.1 shobin-Satellite-C640

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters


    also when i type the command ,
    find /opt/mv_pro_4.0.1/ -type f |grep gcc$

    it shows following,

    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/defer': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/saved': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/public': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/private': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/maildrop': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/hold': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/flush': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/deferred': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/bounce': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/trace': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/incoming': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/corrupt': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/postfix/active': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/cron/atspool': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/spool/cron/atjobs': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/run/usb': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/var/log/exim': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/etc/cups/certs': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/etc/ppp': Permission denied
    find: `/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/etc/chatscripts': Permission denied
    /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/usr/bin/gcc
    /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc

    then what i will do?

    please give me a solution

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by tintu1212 View Post
    127.0.1.1 shobin-Satellite-C640
    change the above line in /etc/hosts to this:

    Code:
    127.0.1.1       shobin shobin-Satellite-C640
    then test sudo by running:
    Code:
    sudo -l
    if you get prompted for your password, something is still wrong. if it works, you should get a list of sudo commands you are allowed to run.

    make sure this directory is in your path:
    Code:
    /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin
    then do this to find the binary:
    Code:
    which arm_v5t_le-gcc
    or this:
    Code:
    arm_v5t_le-gcc --version

  5. #5
    Just Joined!
    Join Date
    Feb 2012
    Posts
    42
    hi,
    thank u very much for your reply.now it is working fine without any error.it is very much useful for me.

    also,when i gave make clean command it shows,

    grep: /usr/include/bits/stat.h: No such file or directory

    and no other error. thank u.

  6. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by tintu1212 View Post
    also,when i gave make clean command it shows,

    grep: /usr/include/bits/stat.h: No such file or directory
    what is your distro (and version)? you just need the proper dev package installed, probably. To reiterate what I said earlier:

    Quote Originally Posted by atreyu
    3. you are missing a required include file, it seems. on my system, that file (stat.h) is provided by the glibc-headers package. check your distro sources for a similar file/package.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •