1 Reply Latest reply on Jul 2, 2012 8:26 AM by devendra.rai

    Cross compile RCKMPI (gcc-4.6.1)

    devendra.rai

      Hello,

       

      I just built a new kernel, and also built the corresponding cross-compilation tool chain (specifically, gcc/g++ 4.6.1).

       

      My rckmpi was very old, so I decided to rebuild it, using gcc-4.6.1 (in cross compilation toolchain).

       

      I built my toolchain by successfully completing step 4(b) of "How to Build SCC Linux 1.4.2.2".

       

      Here is where I have gcc/g++

       

      ./buildroot-2011.11/output/host/usr/i586-unknown-linux-gnu/bin/g++

      ./buildroot-2011.11/output/build/build-toolchain/.build/i586-unknown-linux-gnu/build/build-cc/gcc/g++

       

      Here is where I have cc1plus:

       

      ./buildroot-2011.11/output/host/usr/libexec/gcc/i586-unknown-linux-gnu/4.6.1/cc1plus

      ./buildroot-2011.11/output/host/usr/libexec/gcc/i586-unknown-linux-gnu/4.4.6/cc1plus

      ./buildroot-2011.11/output/build/build-toolchain/.build/i586-unknown-linux-gnu/build/build-cc/gcc/cc1plus

       

      I am absolutely blank on how to use the new gcc for building rckmpi (and many more applications).

       

      I attempt a hello world test for my new gcc/g++ from the above locations, and it tells me that:

       

      "g++: error trying to exec 'cc1plus': execvp: No such file or directory"

      or, "gcc: error trying to exec 'cc1': execvp: No such file or directory"

       

      I think I built the toolchain alright, but I cant get to use it.

       

      Does someone have any clue?

       

      Thanks a lot.

       

      Devendra