Cannot execute ld (342 Views)
Reply
Advisor
Matt Wardle
Posts: 23
Registered: ‎01-16-2002
Message 1 of 11 (342 Views)
Accepted Solution

Cannot execute ld

This has just started happening:

$make -f Makefile

Fort77: Cannot execute linker /usr/ccs/bin/ld while linking
*** Error exit code 1

Makefile hasn't changed in months.

Any ideas for a non ex developer sysadmin?

Ta.
Honored Contributor
Steve Steel
Posts: 2,909
Registered: ‎02-13-2000
Message 2 of 11 (342 Views)

Re: Cannot execute ld

Hi


ll /usr/ccs/bin/ld

-r-xr-xr-x 1 bin bin 593920 Feb 1 2001 /usr/ccs/bin/ld

Does it look like this


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Advisor
Matt Wardle
Posts: 23
Registered: ‎01-16-2002
Message 3 of 11 (342 Views)

Re: Cannot execute ld

Yep:

-r-xr-xr-x 1 bin bin 483328 Oct 29 1999 /usr/ccs/bin/ld
Honored Contributor
Ravi_8
Posts: 2,824
Registered: ‎04-16-2001
Message 4 of 11 (342 Views)

Re: Cannot execute ld

Hi,

if the ld doesn't look like this(as Steve said) copt the ld from other HP machine(where it is working) and change the permissions and owner/group.

(i had faced this problem long back and this was the solution i found)
never give up
Honored Contributor
Steve Steel
Posts: 2,909
Registered: ‎02-13-2000
Message 5 of 11 (342 Views)

Re: Cannot execute ld

Hi


ll -d / /usr /usr/ccs /usr/ccs/bin

drwxrwxrwx 37 root root 2048 Aug 4 15:59 /
dr-xr-xr-x 24 bin bin 1024 Jun 11 08:47 /usr
dr-xr-xr-x 5 bin bin 96 Jun 16 2001 /usr/ccs
dr-xr-xr-x 2 bin bin 1024 Jun 16 2001 /usr/ccs/bin

what /usr/ccs/bin/ld
/usr/ccs/bin/ld:
HP aC++ B3910B A.03.27 Classic Iostream Library
HP aC++ B3910B A.03.27 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.25 REL 001129




Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Advisor
Matt Wardle
Posts: 23
Registered: ‎01-16-2002
Message 6 of 11 (342 Views)

Re: Cannot execute ld

ll -d / /usr /usr/ccs /usr/ccs/bin
drwxr-xr-x 20 root root 4096 Jul 20 10:20 /
dr-xr-xr-x 32 bin bin 1024 Mar 5 2001 /usr
dr-xr-xr-x 5 bin bin 1024 Feb 26 2001 /usr/ccs
dr-xr-xr-x 2 bin bin 1024 Feb 26 2001 /usr/ccs/bin

/usr/ccs/bin/ld:
92453-07 linker linker ld B.10.37 991028

(older version possibly)

On further investigation, if the user rlogins to the machine, it builds, if they log in via the console, it doesn't!

What sort of environment condition could affect it?
Honored Contributor
Steve Steel
Posts: 2,909
Registered: ‎02-13-2000
Message 7 of 11 (342 Views)

Re: Cannot execute ld

Hi


Do you have /etc/securetty


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Advisor
Matt Wardle
Posts: 23
Registered: ‎01-16-2002
Message 8 of 11 (342 Views)

Re: Cannot execute ld

No.

Next!
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 9 of 11 (342 Views)

Re: Cannot execute ld

can you try the following:
- add -v & -Wl,-v to the fortran compiler command line to see what options it is calling ld with (it will probably tell you what is exactly happening too)
- run ld manually and see what happens
- check if user's login scripts have anything set differently for different terminal cases
Advisor
Matt Wardle
Posts: 23
Registered: ‎01-16-2002
Message 10 of 11 (342 Views)

Re: Cannot execute ld

Errrm, I'll get back to you......
Honored Contributor
Steve Steel
Posts: 2,909
Registered: ‎02-13-2000
Message 11 of 11 (342 Views)

Re: Cannot execute ld

Hi

At console

env > /tmp/1
set >> /tmp/1

Other login

env > /tmp/2
set >> /tmp/2

diff /tmp/1 /tmp/2


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.