Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • thaidogNovember 14, 2008 12:16 PM PST   
    Need "wrapper" to compile the Linux kernel with ICC

    I am a developer with an idea to start a new kernel source for Gentoo that is specifically for the Intel ICC compiler. Evidentally there is a "wrapper" that is needed to be applied to the kernel source first before ICC can correctly complie the Linux kernel. Where can I get this wrapper? (I have looked all over the web but the only yhing I can find is old documentation)



    zhenhua.zhangNovember 14, 2008 7:16 PM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    You could find 'Linux kernel build white paper with 10.0 compiler' in below URLs. In the bottom of that page, there is another paper discussion the compatibility with GNU Compilers may be also useful for you.

    http://www.intel.com/support/performancetools/c/linux/sb/cs-007713.htm



    thaidogNovember 15, 2008 2:29 PM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Quoting - zhenhua.zhang
    You could find 'Linux kernel build white paper with 10.0 compiler' in below URLs. In the bottom of that page, there is another paper discussion the compatibility with GNU Compilers may be also useful for you.

    http://www.intel.com/support/performancetools/c/linux/sb/cs-007713.htm

    Yes I have read this paper... it deos not give a link to the wrapper it talks about however. Here is a link that has sme older wrappers:

     

    http://www.pyrillion.org/index.html?showframe=linuxkernelpatch.html

     

    I have not tried them however because I think they are too old to work with a 2.6.2* kernel.



    YannGolanskiNovember 17, 2008 5:29 AM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Quoting - thaidog

    I am a developer with an idea to stat a new kernel source for Gentoo that is specifically for the Intel ICC compiler. Evidentally there is a "wrapper" that is need to be applied to the kernel source first before ICC can correctly complie the Linux kernel. Wher can I get this wrapper? (I have looked all over the web but the only yhing I can find is old documentation)

     



    --
    Nescire autem quid ante quam natus sis acciderit, id est semper esse puerum. Quid enim est aetas hominis, nisi ea memoria rerum veterum cum superiorum aetate contexitur?

    thaidogNovember 17, 2008 2:01 PM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Quoting - nanometrics

     

    Looks like your post did not go through...



    Feilong H. (Intel)November 17, 2008 10:04 PM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Quoting - thaidog

    I am a developer with an idea to stat a new kernel source for Gentoo that is specifically for the Intel ICC compiler. Evidentally there is a "wrapper" that is need to be applied to the kernel source first before ICC can correctly complie the Linux kernel. Wher can I get this wrapper? (I have looked all over the web but the only yhing I can find is old documentation)

    Hi thaidog, were you asking for a wrapper for 2.6.xx kernel on IA32?  I can share one for 10.x compiler with you.  I didn't test with 11.0 compiler yet.



    thaidogNovember 18, 2008 6:55 AM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Hi thaidog, were you asking for a wrapper for 2.6.xx kernel on IA32?  I can share one for 10.x compiler with you.  I didn't test with 11.0 compiler yet.

    That would be awsome! I am using the 10 version right now since that is what is available in portage. That is the exact one I am looking for... IA32.



    Feilong H. (Intel)November 18, 2008 11:41 PM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    The following is an example of wrapper script.  Please try it with a newer update of icc 10.1.

     

    #--------------------------------------------------------

    # This is a wrapper script for icc 10.1 on IA-32

    #--------------------------------------------------------

    ARGS=$@

    ICCARGS="-fno-builtin"

     

    # For loop to change options of icc

    for ARG in $@

    do

    case $ARG in

    -fno-stack-protector  )

         ICCARGS="$ICCARGS -fno-stack-security-check"

         ;;

     

    -Wno-pointer-sign | -msoft-float | -ffreestanding )

         ;;

     

    * )

         ICCARGS="$ICCARGS $ARG"

         ;;

    esac

    done

     

    icc $ICCARGS

     

    exit $?



    YannGolanskiNovember 19, 2008 7:45 AM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Quoting - nanometrics

     

    Bummer.

     

    I tried to compile the linux kernel with ICC and got into a horrible mess.  I think it is way too embedded with GCC for it to work but if you managed to get it working, I would be VERY interested.

    If you need a hand, please ask.



    --
    Nescire autem quid ante quam natus sis acciderit, id est semper esse puerum. Quid enim est aetas hominis, nisi ea memoria rerum veterum cum superiorum aetate contexitur?

    thaidogNovember 19, 2008 8:21 AM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    The following is an example of wrapper script.  Please try it with a newer update of icc 10.1.

    #--------------------------------------------------------

    # This is a wrapper script for icc 10.1 on IA-32

    #--------------------------------------------------------

    ARGS=$@

    ICCARGS="-fno-builtin"

    # For loop to change options of icc

    for ARG in $@

    do

    case $ARG in

    -fno-stack-protector )

    ICCARGS="$ICCARGS -fno-stack-security-check"

    ;;

    -Wno-pointer-sign | -msoft-float | -ffreestanding )

    ;;

    * )

    ICCARGS="$ICCARGS $ARG"

    ;;

    esac

    done

    icc $ICCARGS

    exit $?

    Well I've got version 10.0. Not sure where to find 10.1. I got this error when trying to do it with 10.0:

    gentoo_x86_32 ~ # cd /usr/src/linux
    gentoo_x86_32 linux # nano intelwrapper
    gentoo_x86_32 linux # make HOSTCC=intelwrapper CC=intelwrapper
    /usr/src/linux-2.6.25-gentoo-r7/scripts/gcc-version.sh: line 25: intelwrapper: command not found
    /usr/src/linux-2.6.25-gentoo-r7/scripts/gcc-version.sh: line 26: intelwrapper: command not found
    make: intelwrapper: Command not found
    CHK     include/linux/version.h
    CHK     include/linux/utsrelease.h
    HOSTCC  scripts/basic/fixdep
    /bin/sh: intelwrapper: command not found
    make[1]: *** [scripts/basic/fixdep] Error 127
    make: *** [scripts_basic] Error 2
    gentoo_x86_32 linux #

    EDIT: whoops... I did not put it in my path... that's what that error is.



    thaidogNovember 19, 2008 4:33 PM PST
    Rate
     
    Re: Need "wrapper" to compile the Linux kernel with ICC

    Quoting - nanometrics
    Quoting - nanometrics

     

    Bummer.

     

    I tried to compile the linux kernel with ICC and got into a horrible mess.  I think it is way too embedded with GCC for it to work but if you managed to get it working, I would be VERY interested.

    If you need a hand, please ask.

    A hand would be great. I have version 10 not 10.1. Do you know where to get 10.1? I got the wrapper working... but after a few min it errored:


    make[1]: *** [arch/x86/vdso/vdso32-int80.so.dbg] Error 1
    make: *** [arch/x86/vdso] Error 2

    Other people at the gentoo forums are trying it but they are running in to similar issues.



Forum jump:  

Intel Software Network Forums Statistics

16,372 users have contributed to 46,346 threads and 163,990 posts to date.

In the past 24 hours, we have 14 new thread(s) 85 new posts(s), and 61 new user(s).

In the past 3 days, the most popular thread for everyone has been Formula for the intersection of straight lines The most posts were made to Take a look at John Burkhard&# The post with the most views is Program compiles in release but not debug

Please welcome our newest member claudepi


For more complete information about compiler optimizations, see our Optimization Notice.