PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

/usr/bin/ld: final link failed: Input/output error

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
sbuis



Joined: 04 Apr 2006
Posts: 5

PostPosted: Wed Apr 26, 2006 1:27 am    Post subject: /usr/bin/ld: final link failed: Input/output error Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Mon May 01, 2006 8:57 pm    Post subject: Reply with quote

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
Back to top
View user's profile
sbuis



Joined: 04 Apr 2006
Posts: 5

PostPosted: Tue May 02, 2006 2:00 am    Post subject: Reply with quote

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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Tue May 02, 2006 8:07 am    Post subject: Reply with quote

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.

Quote:
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
Back to top
View user's profile
sbuis



Joined: 04 Apr 2006
Posts: 5

PostPosted: Wed May 03, 2006 12:25 am    Post subject: Reply with quote

Hi Mat,

Quote:

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group