Hi,
The following error sometimes appears when linking my program:
“/usr/bin/ld: final link failed: Input/output error”
Do you have any idea about the origin of the problem ?
thanks,
Sam
Hi,
The following error sometimes appears when linking my program:
“/usr/bin/ld: final link failed: Input/output error”
Do you have any idea about the origin of the problem ?
thanks,
Sam
Hi Sam,
Do you know what circumstances it occurs? Could it be a disk space issue? Can you post a log of the failing link with the addition of the “-v” flag?
Thanks,
Mat
Hi Mat,
Now, the problem often occurs with the application I work on, and this problem occurs on two different platforms: a linux PC under REDHAT 7 and another one under DEBIAN.
Sometimes I have another error message:
“/usr/bin/ld: final link failed: No space left on device
pgf77-Fatal-linker completed with exit code 1”
Thus, as you say, it looks like a disk space issue. However “df -k .” gives:
1K-blocks Used Available Use%
309811104 219377184 87335808 72%
and “df -k /tmp”:
1K-blocks Used Available Use%
3844584 32888 3616400 1%
Is there any other directory used by pgf77 during the link step ?
Here’s the log obtained with the “-v” flag:
/usr/bin/ld /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i486-linux/3.3.5/crtbegin.o /centre/avi2/sbuis/WORK/PGF90_PCLIM79/linux86/5.2/lib/pgfmain.o -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 generated/Fertil.o generated/initial.o generated/levee.o generated/recolte.o generated/absorbn.o generated/denit.o generated/irrig.o generated/linseuil.o generated/recup.o generated/apores.o generated/densirac.o generated/julien.o generated/lixiv.o generated/repartir.o generated/beaupl.o generated/develop.o generated/ketp.o generated/senescen.o generated/beer.o generated/eauqual.o generated/mineral.o generated/shutwall.o generated/bfroid.o generated/ecriparam.o generated/leclai.o generated/minpitaf.o generated/solnu.o generated/bilan.o generated/effeuill.o generated/minval.o generated/sortie.o generated/bilcoupe.o generated/escalin.o generated/numdec.o generated/bigfunction.o generated/biomaer.o generated/etatsurf.o generated/offrnodu.o generated/tauxrecouv.o generated/calai.o generated/feuille.o generated/tempsol.o generated/calapNenUpvt.o generated/fruit.o generated/lecprofi.o generated/perteng.o generated/transpi.o generated/calrnet.o generated/gel.o generated/lecrap.o generated/photpd.o generated/trimo.o generated/caltcult.o generated/grain.o generated/volatorg.o generated/climabri.o generated/iniclim.o generated/lecsortiunix.o generated/profil.o generated/croira.o generated/inicoupe.o generated/lecstat.o generated/rapport.o generated/debutdec.o generated/initepitaf.o generated/raytrans.o generated/testAD.o generated/decade.o generated/message.o generated/lectech.o generated/lecsol.o generated/oteblanc.o generated/lecplant.o generated/lecparamv6.o generated/lecparam.o generated/lecoptim.o generated/lecepitaf.o generated/allDiff_d.o generated/allDiff_b.o generated/adBuffer.o generated/adStack.o -o data/executable -L/centre/avi2/sbuis/WORK/PGF90_PCLIM79/linux86/5.2/lib -L/usr/lib -L/usr/lib/gcc-lib/i486-linux/3.3.5 -rpath /centre/avi2/sbuis/WORK/PGF90_PCLIM79/linux86/5.2/lib -lpgftnrtl -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc /usr/lib/gcc-lib/i486-linux/3.3.5/crtend.o /usr/lib/crtn.o
thanks,
Sam
Hi Sam,
Is the directory that your linking in on the local disk or is it a network mounted directory? If it’s on the network, you might be having network problems and/or network disk space issues.
What are the sizes of your object files? It’s possible that one or more of them are very large and are causing the linker problems.
Is there any other directory used by pgf77 during the link step ?
For the link step, the pgf77 driver simply calls the system’s linker program (ld) and does not use any temporary files. However, during compilation the driver and compilers do use the TMPDIR environmental variable (which defaults to /tmp on Linux) to store temporary files.
Thanks,
Mat
Hi Mat,
Is the directory that your linking in on the local disk or is it a network mounted directory? If it’s on the network, you might be having network problems and/or network disk space issues.
OK, that’s it. The directory is a network mounted one, and when I try on a local disk one, the linking step works well.
Thanks a lot,
sam