编译mame最后一步链接时报错relocation R_LARCH_B26 overflow,请问这是怎么回事,是不是需要把gcc升级到14?
gcc版本是13.2.1 20240405
ld版本是2.42.0
以下是出错信息
GCC 13.2.1 detected
fatal: No names found, cannot describe anything.
make -R verbose=1 -C build/projects/sdl/mame/gmake-linux config=release platform=loongarch64 precompile
make[1]: Entering directory '/home/user/Workspace/mame/mame-mame0265/build/projects/sdl/mame/gmake-linux'
make[1]: Leaving directory '/home/user/Workspace/mame/mame-mame0265/build/projects/sdl/mame/gmake-linux'
make -R verbose=1 -C build/projects/sdl/mame/gmake-linux config=release platform=loongarch64
make[1]: Entering directory '/home/user/Workspace/mame/mame-mame0265/build/projects/sdl/mame/gmake-linux'
Linking mame...
g++ -o ../../../../../mame obj/Release/src/mame/mame.o obj/Release/generated/mame/mame/drivlist.o obj/Release/generated/version.o -L"../../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../../usr/openwin/lib" -L"." -L"../../../../../scripts/mame_mame" -L"../../../../../scripts/src/mame" -L"../../../../../scripts/src" -L"../../../../../scripts/src/osd/mame_mame" -L"../../../../../scripts/src/osd" -Wl,--start-group ../../../../../scripts/mame_mame/libteamconcepts.a ../../../../../scripts/mame_mame/libvaladon.a ../../../../../scripts/mame_mame/libnintendo.a ../../../../../scripts/mame_mame/libmit.a ../../../../../scripts/mame_mame/libice.a ../../../../../scripts/mame_mame/libswtpc.a ../../../../../scripts/mame_mame/libacorn.a ../../../../../scripts/mame_mame/libmatic.a ../../../../../scripts/mame_mame/libsinclair.a ../../../../../scripts/mame_mame/libwang.a ../../../../../scripts/mame_mame/libsaitek.a ../../../../../scripts/mame_mame/libnmk.a ../../../../../scripts/mame_mame/libcinematronics.a ../../../../../scripts/mame_mame/libolympiaint.a ../../../../../scripts/mame_mame/libamirix.a ../../../../../scripts/mame_mame/libcoleco.a ../../../../../scripts/mame_mame/libtelercas.a ../../../../../scripts/mame_mame/libseibu.a ../../../../../scripts/mame_mame/libsony.a ../../../../../scripts/mame_mame/libpacman.a ../../../../../scripts/mame_mame/libmisc.a ../../../../../scripts/mame_mame/libpinball.a ../../../../../scripts/mame_mame/libkorg.a ../../../../../scripts/mame_mame/libdg.a ../../../../../scripts/mame_mame/libadc.a ../../../../../scripts/mame_mame/libheathkit.a ../../../../../scripts/mame_mame/libadds.a ../../../../../scripts/mame_mame/libcybiko.a ../../../../../scripts/mame_mame/libyunsung.a ../../../../../scripts/mame_mame/libkiwako.a ../../../../../scripts/mame_mame/liborla.a ../../../../../scripts/mame_mame/libcantab.a ../../../../../scripts/mame_mame/libhds.a ../../../../../scripts/mame_mame/libtektronix.a ../../../../../scripts/mame_mame/libunisys.a ../../../../../scripts/mame_mame/librare.a ../../../../../scripts/mame_mame/libquantel.a ../../../../../scripts/mame_mame/libsigma.a ../../../../../scripts/mame_mame/libakai.a ../../../../../scripts/mame_mame/libmidcoin.a ../../../../../scripts/mame_mame/libleapfrog.a ../../../../../scripts/mame_mame/libtiger.a ../../../../../scripts/mame_mame/libccs.a ../../../../../scripts/mame_mame/libnascom.a ../../../../../scripts/mame_mame/libdai.a ../../../../../scripts/mame_mame/libtelenova.a ../../../../../scripts/mame_mame/libcommodore.a ../../../../../scripts/mame_mame/libcasio.a ../../../../../scripts/mame_mame/libgametron.a ../../../../../scripts/mame_mame/libmg1.a ../../../../../scripts/mame_mame/libtab.a ../../../../../scripts/mame_mame/libmc.a ../../../../../scripts/mame_mame/libnamco.a ../../../../../scripts/mame_mame/libunico.a ../../../../../scripts/mame_mame/libbooth.a ../../../../../scripts/mame_mame/libopenuni.a ../../../../../scripts/mame_mame/libphilips.a ../../../../../scripts/mame_mame/libintergraph.a ../../../../../scripts/mame_mame/libexcellent.a ../../../../../scripts/mame_mame/libomnibyte.a ../../../../../scripts/mame_mame/libwicat.a ../../../../../scripts/mame_mame/libunisonic.a ../../../../../scripts/mame_mame/libolympia.a ../../../../../scripts/mame_mame/libwyse.a ../../../../../scripts/mame_mame/libddr.a ../../../../../scripts/mame_mame/libmaygay.a ../../../../../scripts/mame_mame/libwavemate.a ../../../../../scripts/mame_mame/libsfrj.a ../../../../../scripts/mame_mame/libhomelab.a ../../../../../scripts/mame_mame/libact.a ../../../../../scripts/mame_mame/libskeleton.a ../../../../../scripts/mame_mame/libefo.a ../../../../../scripts/mame_mame/libnext.a ../../../../../scripts/mame_mame/libvisual.a ../../../../../scripts/mame_mame/libcanon.a ../../../../../scripts/mame_mame/libbandai.a ../../../../../scripts/mame_mame/libnovation.a ../../../../../scripts/mame_mame/libhomebrew.a ../../../../../scripts/mame_mame/libluxor.a ../../../../../scripts/mame_mame/libsvi.a ../../../../../scripts/mame_mame/libchromatics.a ../../../../../scripts/mame_mame/libatari.a ../../../../../scripts/mame_mame/libatt.a ../../../../../scripts/mame_mame/libxerox.a ../../../../../scripts/mame_mame/libmupid.a ../../../../../scripts/mame_mame/libtesla.a ../../../../../scripts/mame_mame/libtiki.a ../../../../../scripts/mame_mame/libtangerine.a ../../../../../scripts/mame_mame/libtaito.a ../../../../../scripts/mame_mame/libapollo.a ../../../../../scripts/mame_mame/libupl.a ../../../../../scripts/mame_mame/libjaleco.a ../../../../../scripts/mame_mame/libadp.a ../../../../../scripts/mame_mame/libbarcrest.a ../../../../../scripts/mame_mame/libgamepark.a ../../../../../scripts/mame_mame/libneogeo.a ../../../../../scripts/mame_mame/libcomx.a ../../../../../scripts/mame_mame/libsamcoupe.a ../../../../../scripts/mame_mame/libmips.a ../../../../../scripts/mame_mame/libigt.a ../../../../../scripts/mame_mame/libfujitsu.a ../../../../../scripts/mame_mame/libti.a ../../../../../scripts/mame_mame/libkawai.a ../../../../../scripts/mame_mame/libzaccaria.a ../../../../../scripts/mame_mame/libaltos.a ../../../../../scripts/mame_mame/libkurzweil.a ../../../../../scripts/mame_mame/libpacific.a ../../../../../scripts/mame_mame/libepoch.a ../../../../../scripts/mame_mame/libultratec.a ../../../../../scripts/mame_mame/libbrother.a ../../../../../scripts/mame_mame/libibm.a ../../../../../scripts/mame_mame/libitech.a ../../../../../scripts/mame_mame/libsunelectronics.a ../../../../../scripts/mame_mame/libmiltonbradley.a ../../../../../scripts/mame_mame/libmitsubishi.a ../../../../../scripts/mame_mame/libelektor.a ../../../../../scripts/mame_mame/libsiemens.a ../../../../../scripts/mame_mame/libsgi.a ../../../../../scripts/mame_mame/libuniversal.a ../../../../../scripts/mame_mame/libampro.a ../../../../../scripts/mame_mame/libvtech.a ../../../../../scripts/mame_mame/libbe.a ../../../../../scripts/mame_mame/libampex.a ../../../../../scripts/mame_mame/libsubsino.a ../../../../../scripts/mame_mame/libforce.a ../../../../../scripts/mame_mame/libfunworld.a ../../../../../scripts/mame_mame/libmeadows.a ../../../../../scripts/mame_mame/libdynax.a ../../../../../scripts/mame_mame/libintel.a ../../../../../scripts/mame_mame/libsega.a ../../../../../scripts/mame_mame/libmicroterm.a ../../../../../scripts/mame_mame/libconcept.a ../../../../../scripts/mame_mame/libcxg.a ../../../../../scripts/mame_mame/libfairchild.a ../../../../../scripts/mame_mame/libemusys.a ../../../../../scripts/mame_mame/libmidw8080.a ../../../../../scripts/mame_mame/libdec.a ../../../../../scripts/mame_mame/libesprit.a ../../../../../scripts/mame_mame/libpoly88.a ../../../../../scripts/mame_mame/libkyocera.a ../../../../../scripts/mame_mame/libcave.a ../../../../../scripts/mame_mame/libomori.a ../../../../../scripts/mame_mame/libkontron.a ../../../../../scripts/mame_mame/libappliedconcepts.a ../../../../../scripts/mame_mame/libtrs.a ../../../../../scripts/mame_mame/libtelevideo.a ../../../../../scripts/mame_mame/libatlus.a ../../../../../scripts/mame_mame/libnakajima.a ../../../../../scripts/mame_mame/libepson.a ../../../../../scripts/mame_mame/libalpha.a ../../../../../scripts/mame_mame/libeaca.a ../../../../../scripts/mame_mame/librockwell.a ../../../../../scripts/mame_mame/libirem.a ../../../../../scripts/mame_mame/libcomad.a ../../../../../scripts/mame_mame/libkyber.a ../../../../../scripts/mame_mame/libstern.a ../../../../../scripts/mame_mame/libtecfri.a ../../../../../scripts/mame_mame/libsvision.a ../../../../../scripts/mame_mame/libmicrocraft.a ../../../../../scripts/mame_mame/libpalm.a ../../../../../scripts/mame_mame/libf32.a ../../../../../scripts/mame_mame/libnichibutsu.a ../../../../../scripts/mame_mame/libvirtual.a ../../../../../scripts/mame_mame/libgalaxian.a ../../../../../scripts/mame_mame/libnetronics.a ../../../../../scripts/mame_mame/libliberty.a ../../../../../scripts/mame_mame/libolivetti.a ../../../../../scripts/mame_mame/libta.a ../../../../../scripts/mame_mame/libhp.a ../../../../../scripts/mame_mame/libaristocrat.a ../../../../../scripts/mame_mame/librm.a ../../../../../scripts/mame_mame/libbmc.a ../../../../../scripts/mame_mame/libventure.a ../../../../../scripts/mame_mame/libgaelco.a ../../../../../scripts/mame_mame/libzvt.a ../../../../../scripts/mame_mame/libburroughs.a ../../../../../scripts/mame_mame/libfidelity.a ../../../../../scripts/mame_mame/libbondwell.a ../../../../../scripts/mame_mame/libaccess.a ../../../../../scripts/mame_mame/libcamputers.a ../../../../../scripts/mame_mame/libisc.a ../../../../../scripts/mame_mame/libsanritsu.a ../../../../../scripts/mame_mame/libtomy.a ../../../../../scripts/mame_mame/libausnz.a ../../../../../scripts/mame_mame/libmattel.a ../../../../../scripts/mame_mame/libfairlight.a ../../../../../scripts/mame_mame/libmetro.a ../../../../../scripts/mame_mame/libconitec.a ../../../../../scripts/mame_mame/libvidbrain.a ../../../../../scripts/mame_mame/libwing.a ../../../../../scripts/mame_mame/libalesis.a ../../../../../scripts/mame_mame/libzenith.a ../../../../../scripts/mame_mame/libzpa.a ../../../../../scripts/mame_mame/libnovadesitec.a ../../../../../scripts/mame_mame/libcapcom.a ../../../../../scripts/mame_mame/libarcadia.a ../../../../../scripts/mame_mame/libinformer.a ../../../../../scripts/mame_mame/libsage.a ../../../../../scripts/mame_mame/libnorthstar.a ../../../../../scripts/mame_mame/libusp.a ../../../../../scripts/mame_mame/libvideoton.a ../../../../../scripts/mame_mame/libkaypro.a ../../../../../scripts/mame_mame/libpc.a ../../../../../scripts/mame_mame/libensoniq.a ../../../../../scripts/mame_mame/libsharp.a ../../../../../scripts/mame_mame/libcce.a ../../../../../scripts/mame_mame/libvotrax.a ../../../../../scripts/mame_mame/libsequential.a ../../../../../scripts/mame_mame/libnec.a ../../../../../scripts/mame_mame/libwestinghouse.a ../../../../../scripts/mame_mame/libomron.a ../../../../../scripts/mame_mame/libpromat.a ../../../../../scripts/mame_mame/libcompugraphic.a ../../../../../scripts/mame_mame/libpitronics.a ../../../../../scripts/mame_mame/libbanctec.a ../../../../../scripts/mame_mame/libcirsa.a ../../../../../scripts/mame_mame/libexcalibur.a ../../../../../scripts/mame_mame/libhitachi.a ../../../../../scripts/mame_mame/libplaymark.a ../../../../../scripts/mame_mame/libverifone.a ../../../../../scripts/mame_mame/libmits.a ../../../../../scripts/mame_mame/libsaturn.a ../../../../../scripts/mame_mame/libfalco.a ../../../../../scripts/mame_mame/libhandheld.a ../../../../../scripts/mame_mame/libcromemco.a ../../../../../scripts/mame_mame/libtigertel.a ../../../../../scripts/mame_mame/libussr.a ../../../../../scripts/mame_mame/libtechnos.a ../../../../../scripts/mame_mame/libnasco.a ../../../../../scripts/mame_mame/libfacit.a ../../../../../scripts/mame_mame/libmsx.a ../../../../../scripts/mame_mame/libjpm.a ../../../../../scripts/mame_mame/libsealy.a ../../../../../scripts/mame_mame/libtatsumi.a ../../../../../scripts/mame_mame/libncr.a ../../../../../scripts/mame_mame/libmicrosoft.a ../../../../../scripts/mame_mame/libpsikyo.a ../../../../../scripts/mame_mame/libapf.a ../../../../../scripts/mame_mame/libvsystem.a ../../../../../scripts/mame_mame/librca.a ../../../../../scripts/mame_mame/libamiga.a ../../../../../scripts/mame_mame/libhegenerglaser.a ../../../../../scripts/mame_mame/libsynertek.a ../../../../../scripts/mame_mame/libnatsemi.a ../../../../../scripts/mame_mame/libmotorola.a ../../../../../scripts/mame_mame/libtecmo.a ../../../../../scripts/mame_mame/libmidway.a ../../../../../scripts/mame_mame/libvectorgraphic.a ../../../../../scripts/mame_mame/libmerit.a ../../../../../scripts/mame_mame/libqume.a ../../../../../scripts/mame_mame/libmorrow.a ../../../../../scripts/mame_mame/libnokia.a ../../../../../scripts/mame_mame/libapple.a ../../../../../scripts/mame_mame/libinterton.a ../../../../../scripts/mame_mame/liblsi.a ../../../../../scripts/mame_mame/libagat.a ../../../../../scripts/mame_mame/libexidy.a ../../../../../scripts/mame_mame/libstm.a ../../../../../scripts/mame_mame/libtoaplan.a ../../../../../scripts/mame_mame/libosi.a ../../../../../scripts/mame_mame/libmatsushita.a ../../../../../scripts/mame_mame/libces.a ../../../../../scripts/mame_mame/libcvs.a ../../../../../scripts/mame_mame/libthomson.a ../../../../../scripts/mame_mame/libcitoh.a ../../../../../scripts/mame_mame/libthepit.a ../../../../../scripts/mame_mame/libmr.a ../../../../../scripts/mame_mame/libdms.a ../../../../../scripts/mame_mame/libncd.a ../../../../../scripts/mame_mame/libeolith.a ../../../../../scripts/mame_mame/libhusky.a ../../../../../scripts/mame_mame/libmicrokey.a ../../../../../scripts/mame_mame/libgridcomp.a ../../../../../scripts/mame_mame/libentex.a ../../../../../scripts/mame_mame/libamstrad.a ../../../../../scripts/mame_mame/libultimachine.a ../../../../../scripts/mame_mame/libbeehive.a ../../../../../scripts/mame_mame/libpositron.a ../../../../../scripts/mame_mame/libkaneko.a ../../../../../scripts/mame_mame/libsamsung.a ../../../../../scripts/mame_mame/libsnk.a ../../../../../scripts/mame_mame/libpce.a ../../../../../scripts/mame_mame/libyeno.a ../../../../../scripts/mame_mame/libtch.a ../../../../../scripts/mame_mame/libunicard.a ../../../../../scripts/mame_mame/libbfm.a ../../../../../scripts/mame_mame/libmemotech.a ../../../../../scripts/mame_mame/libseta.a ../../../../../scripts/mame_mame/libdataeast.a ../../../../../scripts/mame_mame/libalba.a ../../../../../scripts/mame_mame/liblearsiegler.a ../../../../../scripts/mame_mame/libfuntech.a ../../../../../scripts/mame_mame/libdgrm.a ../../../../../scripts/mame_mame/libceres.a ../../../../../scripts/mame_mame/libregnecentralen.a ../../../../../scripts/mame_mame/libdooyong.a ../../../../../scripts/mame_mame/librolm.a ../../../../../scripts/mame_mame/libtryom.a ../../../../../scripts/mame_mame/libmchester.a ../../../../../scripts/mame_mame/libchess.a ../../../../../scripts/mame_mame/libgrundy.a ../../../../../scripts/mame_mame/libkoei.a ../../../../../scripts/mame_mame/libsanyo.a ../../../../../scripts/mame_mame/libnix.a ../../../../../scripts/mame_mame/libnovag.a ../../../../../scripts/mame_mame/libelektron.a ../../../../../scripts/mame_mame/libfuuki.a ../../../../../scripts/mame_mame/libsuna.a ../../../../../scripts/mame_mame/libkonami.a ../../../../../scripts/mame_mame/libosborne.a ../../../../../scripts/mame_mame/libedevices.a ../../../../../scripts/mame_mame/libtvgames.a ../../../../../scripts/mame_mame/libmakerbot.a ../../../../../scripts/mame_mame/librobotron.a ../../../../../scripts/mame_mame/libigs.a ../../../../../scripts/mame_mame/libtandberg.a ../../../../../scripts/mame_mame/libroland.a ../../../../../scripts/mame_mame/libdrc.a ../../../../../scripts/mame_mame/libpsion.a ../../../../../scripts/mame_mame/libsord.a ../../../../../scripts/mame_mame/libtatung.a ../../../../../scripts/mame_mame/libgottlieb.a ../../../../../scripts/mame_mame/libmera.a ../../../../../scripts/mame_mame/libhec2hrp.a ../../../../../scripts/mame_mame/libphoenix.a ../../../../../scripts/mame_mame/libslicer.a ../../../../../scripts/mame_mame/libmultitech.a ../../../../../scripts/mame_mame/libyamaha.a ../../../../../scripts/mame_mame/liballiedleisure.a ../../../../../scripts/mame_mame/libramtek.a ../../../../../scripts/mame_mame/libtoshiba.a ../../../../../scripts/mame_mame/libtrainer.a ../../../../../scripts/mame_mame/libbitcorp.a ../../../../../scripts/mame_mame/libericsson.a ../../../../../scripts/mame_mame/libsun.a ../../../../../scripts/mame_mame/liborca.a ../../../../../scripts/mame_mame/libenterprise.a ../../../../../scripts/mame_mame/libshared.a ../../../../../scripts/src/mame/libfrontend.a ../../../../../scripts/mame_mame/liboptional.a ../../../../../scripts/src/libemu.a ../../../../../scripts/src/osd/mame_mame/libosd_sdl.a ../../../../../scripts/src/osd/libqtdbg_sdl.a ../../../../../scripts/mame_mame/libformats.a ../../../../../scripts/mame_mame/libdasm.a ../../../../../scripts/src/libnetlist.a ../../../../../scripts/src/libutils.a ../../../../../scripts/src/libexpat.a ../../../../../scripts/src/libsoftfloat.a ../../../../../scripts/src/libsoftfloat3.a ../../../../../scripts/src/libwdlfft.a ../../../../../scripts/src/libymfm.a ../../../../../scripts/src/libjpeg.a ../../../../../scripts/src/lib7z.a ../../../../../scripts/src/libasmjit.a ../../../../../scripts/src/liblua.a ../../../../../scripts/src/liblualibs.a ../../../../../scripts/src/liblinenoise.a ../../../../../scripts/src/libzlib.a ../../../../../scripts/src/libzstd.a ../../../../../scripts/src/libflac.a ../../../../../scripts/src/libutf8proc.a ../../../../../scripts/src/libsqlite3.a ../../../../../scripts/src/libportaudio.a ../../../../../scripts/src/libportmidi.a ../../../../../scripts/src/libbgfx.a ../../../../../scripts/src/libbimg.a ../../../../../scripts/src/libbx.a ../../../../../scripts/src/osd/mame_mame/libocore_sdl.a -ldl -lrt -lSDL2 -lm -lpthread -lutil -lGL -lasound -lpulse -lX11 -lXinerama -lXext -lXi -lSDL2_ttf -lfontconfig -lfreetype -Wl,--end-group
/usr/lib/gcc/loongarch64-unknown-linux-gnu/13/../../../../loongarch64-unknown-linux-gnu/bin/ld: ../../../../../scripts/mame_mame/libteamconcepts.a(comquest.o): relocation R_LARCH_B26 overflow 0x9986398
Dump relocate record:
<省略>
-- Record dump end --
../../../../../scripts/mame_mame/libteamconcepts.a(comquest.o): in function `(anonymous namespace)::comquest_state::~comquest_state()':
comquest.cpp🙁.text+0x30): relocation truncated to fit: R_LARCH_B26 against symbol `device_resolver_base::~device_resolver_base()' defined in .text section in ../../../../../scripts/src/libemu.a(devfind.o)
/usr/lib/gcc/loongarch64-unknown-linux-gnu/13/../../../../loongarch64-unknown-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
附件里是完整的输出信息
https://paste.ubuntu.org.cn/4547569
多谢了