Menu

#17 trunk r258 and newer failing to build

open
zgoubi (16)
5
2013-05-31
2010-08-06
sam tygier
No

r257 builds fine, but i get the following error when i update to r258:

gfortran accen.o accep.o adpol.o aimant.o apdpo1.o apdpo.o apherf.o appen.o arrier.o autorf.o avorpr.o baxbxr.o beaimp.o beamat.o bendf.o bendi.o bi1.o bi1p.o binari.o binary.o block.o bonul.o boost.o butee.o bxrxyz.o carla.o carshi.o cavite.o chamb.o chamc.o chamk.o chanrf.o charef.o chmbre.o chmbr.o chrefe.o chreg.o chxc.o chxp.o cible.o cinema.o cntinl.o cntpar.o coeffs.o cofin.o coils.o coilsf.o collim.o cptfct.o csri.o csrint.o ctrlb.o ctrlc.o cubspl.o dbdxyz.o debstr.o dejaca.o delta.o depla.o desbin.o devtra.o dipci.o dipi.o dipolm.o dipsi.o dist2.o dpkick.o drtent.o drvg.o dstefb.o eax3tu.o eaxial.o el2tub.o el2tu.o elcmid.o elcmif.o elcmii.o elcyld.o elcyl.o ellip.o elmirf.o elmiri.o emmac.o emmap.o end.o endfit.o endjob.o ererz.o erexyz.o esl.o eslvir.o event.o fborne.o ffagi.o ff.o ffgspi.o ffspd.o fgf.o finstr.o fitarr.o fitest.o fitexp.o fitgtv.o fitlav.o fitlma.o fitmm.o fitnu.o fitset.o fitsta.o flush2.o fmapw.o focal1.o focale.o funcd.o gammln.o gang.o gascat.o gasesl.o gasini.o geneta.o getnam.o getdst.o gg.o go2end.o header.o helix.o histab.o hist.o icentr.o idluni.o impaju.o impcsr.o impctr.o impdev.o impfai.o impplt.o imptra.o impvar.o inicin.o inidat.o inidrt.o initra.o integr.o interm.o interv.o intpl3.o intplf.o itavan.o iter.o itsens.o jcentr.o krtax.o ksmap.o kstop.o lign.o lingua.o lnul.o lpsfit.o lpsfi4.o lstins.o lstset.o majtra.o map2d.o mapshf.o maplim.o mat1.o mat2.o matimp.o matric.o mcdes.o mcdesi.o mcdesl.o mcobj1.o mcobj3.o mcobj.o mino1.o minonm.o mix.o mksa.o modord.o multip.o multpo.o nmfonc.o nmmin1.o nmmin.o normal.o normb.o obj3.o obj5.o obj6.o obj8.o obj9.o objerr.o objeta.o objets.o okkt.o open2.o partic.o path.o pavel.o pckup.o pickup.o pltdat.o poidev.o polmes.o prdata.o pscal.o pvect.o quasex.o raiman.o rautor.o raysyn.o razdrv.o rbend.o rbinar.o rcarte.o rcavit.o rchang.o rcible.o rcoils.o rcolli.o rcsr.o rdipc.o rdip.o rdips.o rdpois.o rebel.o rebmul.o refer.o rel2tu.o relcmi.o relcyl.o relmir.o remma.o rempli.o reset.o revers.o rfaist.o rffag.o rfit.o rfitgt.o rgasca.o rhelix.o rmatrx.o rmcdes.o rmcobj.o rmulti.o rnorma.o robjet.o robjta.o rotx.o rparti.o rpckup.o rqsod.o rrebel.o rscal.o rsepar.o rsimb.o rsolen.o rspn.o rspnst.o rsrlos.o rtnewt.o rtrans.o rundul.o runipo.o rwienf.o scal0.o scaler.o scalin.o scumul.o separa.o serv2.o serv32.o serv34.o serv4.o serv5.o solbax.o solenf.o soleno.o solv.o splint.o spn.o spnprn.o spnprt.o spnrot.o spntrk.o sref.o srloss.o srprn.o stpsiz.o straco.o symmed.o sympl.o synpar.o syntrk.o toroid.o toscac.o toscap.o trace.o track.o transf.o transm.o traobj.o trarot.o trbeam.o tridi.o trobj.o trrote.o tunes.o twiss.o undulf.o unduli.o unipo.o unipot.o valqv.o vequal.o vrble.o vscal.o vzero.o waist.o wedgki.o wienfi.o xnorm.o xrotb.o ymoiny.o zerof.o zgoubi.o zgoubi_main.o -L../common -lzg -o zgoubi
aimant.o: In function `aimant_':
aimant.f:(.text+0xe): relocation truncated to fit: R_X86_64_PC32 against symbol `mark_' defined in COMMON section in aimant.o
aimant.f:(.text+0xaa): relocation truncated to fit: R_X86_64_PC32 against symbol `integ_' defined in COMMON section in aimant.o
aimant.f:(.text+0xc2): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0xd2): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0xde): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0xea): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0xf1): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0xff): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0x106): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0x10d): relocation truncated to fit: R_X86_64_PC32 against symbol `aim_' defined in COMMON section in aimant.o
aimant.f:(.text+0x115): additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
make[1]: *** [zgoubi] Error 1
make[1]: Leaving directory `/afs/hep.man.ac.uk/d/accelerators-ffag/sam/zgoubi/zgoubi-sf/zgoubi'

i get the same with various Gfortran versions 4.1.2, 4.3.2, 4.4.4, 4.5.1 on scientific linux 5 64bit. with gfortran 4.4.3 on ubuntu 10.04 32bit i did not get the error.

http://www.network-theory.co.uk/docs/gccintro/gccintro_65.html suggests that "-mcmodel=medium" is needed on 64bit for programs with large datasets. (though it upsets the compiler on 32bit)

Discussion

  • sam tygier

    sam tygier - 2010-08-06
     
  • sam tygier

    sam tygier - 2010-08-06

    attached patch modifies make file to use "-mcmodel=medium" on 64bit machines. allows me to build r258 on 64bit and 32bit
    apply with:
    patch < mcmodel-fix.diff

     
  • sam tygier

    sam tygier - 2013-05-31

    I have updated the patch so that it applies to the current SVN version

     

Log in to post a comment.

MongoDB Logo MongoDB