Two identical projects, one compiles and runs the other does not

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Two identical projects, one compiles and runs the other does not

887件の閲覧回数
ChrisLaRocque
Contributor II

Hello

MY PC:

AMD Phenom Quad Core 955
16 GB Memory
SATA - Multiple Drives
NVidia graphics with NVidia Proprietary Drivers
Gigabyte MB

Opensuse 11.4 x86-64
KDE

targeting Power QUICC Pro

I have the MPC8308RDB; Linux

I installed ltib-mpc8308erdb-20100413, rebuilt the Kernel, pushed it down to the board and booted from ram.

Installed CW release Linux 8.8 unlicensed, compiled a hello world cpp project, configured for apptrk debug over ethernet, and booted the app. Debugger and code worked.

Then I created a second app;

Long story short, although my first app compiles and runs in the debugger on the target, no other app I've created will compile.

The error is "error trying to exec 'cc1plus': execvp: No such file or directory"

 

If my project is c++ then the error is as above, if its a c project then exchange cc1 for cc1plus in the same message.

I've verified the presence of the files and re-installed several times; the results are consistent. Only my first app will compile.

I even tried to re-create the first app; New project, New file, copy the code from file 1 to file 2 and still no dice.

I'm at a loss.

Help?

Attached are the two projects; test will compile and run and test2 will not.

Thanks for the help in advance.

Regards

Chris LaRocque
Measurement Specialties

chris<dot>larocque<at>meas<dash>spec<dot>com

ラベル(1)
0 件の賞賛
返信
1 返信

703件の閲覧回数
ChrisLaRocque
Contributor II

Hello

 

I found the problem. The tool chain path default for the MCP8308RDB projects is "/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/powerpc-e300c3-linux-gnu/bin" but the true path is "/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux-gnu/bin". Also I didn't understand that I must close and re-open CW when I change the toolchain path.

 

Now I'll have to find where the default path is specified for this toolchain and change it. Probably under the ltib directory tree?

 

Regards

 

C

 

0 件の賞賛
返信