This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Moved from one machine to another, same OS version, GCC 3.4.2 stopsexecuting.. 3.2.3 still works!!!
- From: Saurabh dot Bhatnagar at blr dot hexaware dot com
- To: Saurabh dot Bhatnagar at blr dot hexaware dot com
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 5 May 2005 11:59:03 +0530
- Subject: Re: Moved from one machine to another, same OS version, GCC 3.4.2 stopsexecuting.. 3.2.3 still works!!!
PLEASE HELP!!!
Saurabh Bhatnagar/BLR/HTL
05/02/2005 05:10 PM
To
"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
cc
Subject
Moved from one machine to another, same OS version, GCC 3.4.2 stops
executing.. 3.2.3 still works!!!
Hi Experts!!!
Today, I have got a serious error with GCC 3.4.2.
We have moved from a SUN5.8 machine to another with this config.
$ uname -a
SunOS sunqas1 5.8 Generic_108528-24 sun4u sparc SUNW,Ultra-4
While invoking any exe built in the previous machine I get error "cannot
execute" .
I have all the permissions on the exes, I am trying to run.
I tried building a sample program that says "hello world" - ~/test.cpp.
======================
$ g++ test.cpp
ksh: g++: cannot execute
Checking for g++ in PATH
======================
$ which g++
/user/sbhatnag/gccv3.4.2/bin/g++
Using abolute path for g++
======================
$ /user/sbhatnag/gccv3.4.2/bin/g++ test.cpp
ksh: /user/sbhatnag/gccv3.4.2/bin/g++: cannot execute
Going into gcc bin dir
======================
$ cd /user/sbhatnag/gccv3.4.2/bin
$ ls -lt
total 9576
-rwxr-xr-x 3 sbhatnag rd-tech 558180 Apr 7 03:12 gcc
-rwxr-xr-x 3 sbhatnag rd-tech 558180 Apr 7 03:12
sparc-sun-solaris2.8-gcc
-rwxr-xr-x 3 sbhatnag rd-tech 558180 Apr 7 03:12
sparc-sun-solaris2.8-gcc-3.4.2
-rwxr-xr-x 1 sbhatnag rd-tech 561168 Apr 7 03:12 cpp
-rwxr-xr-x 1 sbhatnag rd-tech 15839 Apr 7 03:12 gccbug
-rwxr-xr-x 1 sbhatnag rd-tech 335940 Apr 7 03:12 gcov
-rwxr-xr-x 4 sbhatnag rd-tech 562220 Apr 7 03:11 c++
-rwxr-xr-x 4 sbhatnag rd-tech 562220 Apr 7 03:11 g++
-rwxr-xr-x 4 sbhatnag rd-tech 562220 Apr 7 03:11
sparc-sun-solaris2.8-c++
-rwxr-xr-x 4 sbhatnag rd-tech 562220 Apr 7 03:11
sparc-sun-solaris2.8-g++
$ g++
ksh: g++: cannot execute
Trying to run in new shell
======================
$ sh g++ test.cpp
sh: g++: cannot execute
Coming back to ~ and run a.out for this program created in SUNRDS4
======================
$ cd
$ a.out
ksh: a.out: cannot execute
$ ll a.out
-rwxrwxr-x 1 sbhatnag rd-tech 10664 Apr 19 07:21 a.out
Making sure running the right a.out
======================
$ ./a.out
ksh: ./a.out: cannot execute
======================
What is this causing the trouble?
What is more surprising is that when I invoke gcc 3.2.3 it builds the
a.out OK!!!
I had build 3.4.2 over 3.2.3 in the previous machine.
Can I fine tune 3.4.2 to suite this machine or Will I have to re-build
GCC3.4.2?
warm regards
Saurabh