ld: 0711-736 ERROR:

I am trying to build a code on IBM_AIX 5.3.
& getting error message as-
ld: 0711-736 ERROR: Input file $projdir/obj/ibm/5.3/new/new.o:
XCOFF64 object files are not allowed in 32-bit mode.
Error code return is 8.

Can anybody guide to resolve the error.

Thanks

Which compiler (name, version, origin) did you use?

Hi,

apparently you're trying to build 64bit code on a 32bit box and that's why you get the error.

please post bootinfo -K output but I am almost sure that this is your problem and it will show up with 32. You can switch your kernel if you're root:

ln -sf /usr/lib/boot/unix_64 /unix 
ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix 
bosboot -ad /dev/ipldevice 
shutdown -Fr 

once the system is back, bootinfo -K will show you 64

Thanks for your reply.
I dont have permission to run bootinfo
can you pls let me know is thr any other by which I can provide the info.
I dont have root access as well.

try:
lsconf | grep -i kernel
or
prtconf | head
or
ls -l /unix
And look for a mention of 64.

Thanks for all your support guys.

I am now able to resolve the error-
I have just set OBJECT_MODE variable-
export OBJECT_MODE=64(for ksh)