[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#912649: gcc-8: Please disable gnat on powerpcspe temporarily



Source: gcc-8
Version: 8.2.0-9
Severity: normal
User: debian-powerpc@lists.debian.org
Usertags: powerpcspe

Hi!

gcc-8 currently FTBFS on powerpcspe because of linker issues when building
gnat [1]:

powerpc-linux-gnuspe-g++-8 -std=gnu++98 -no-pie -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -Wl,--as-needed -Wl,-z,defs -static-libstdc++ -static-libgcc  -o gnat1 ada/adadecode.o ada/adaint.o ada/argv.o ada/cio.o ada/cstreams.o ada/env.o ada/init.o ada/initialize.o ada/raise.o ada/raise-gcc.o ada/seh_init.o ada/targext.o ada/cuintp.o ada/decl.o ada/rtfinal.o ada/rtinit.o ada/misc.o ada/utils.o ada/utils2.o ada/trans.o ada/targtyps.o ada/libgnat/a-charac.o ada/libgnat/a-chlat1.o ada/libgnat/a-elchha.o ada/libgnat/a-except.o ada/libgnat/a-exctra.o ada/libgnat/a-ioexce.o ada/libgnat/ada.o ada/spark_xrefs.o ada/ali.o ada/alloc.o ada/aspects.o ada/atree.o ada/butil.o ada/casing.o ada/checks.o ada/comperr.o ada/contracts.o ada/csets.o ada/cstand.o ada/debug.o ada/debug_a.o ada/einfo.o ada/elists.o ada/err_vars.o ada/errout.o ada/erroutc.o ada/eval_fat.o ada/exp_aggr.o ada/exp_spark.o ada/exp_atag.o ada/exp_attr.o ada/exp_cg.o ada/exp_ch11.o ada/exp_ch12.o ada/exp_ch13.o ada/exp_ch2.o ada/exp_ch3.o ada/exp_ch4.o ada/exp_ch5.o ada/exp_ch6.o ada/exp_ch7.o ada/exp_ch8.o ada/exp_ch9.o ada/exp_code.o ada/exp_dbug.o ada/exp_disp.o ada/exp_dist.o ada/exp_fixd.o ada/exp_imgv.o ada/exp_intr.o ada/exp_pakd.o ada/exp_prag.o ada/exp_sel.o ada/exp_smem.o ada/exp_strm.o ada/exp_tss.o ada/exp_unst.o ada/exp_util.o ada/expander.o ada/fmap.o ada/fname-uf.o ada/fname.o ada/freeze.o ada/frontend.o ada/libgnat/g-byorma.o ada/libgnat/g-dynhta.o ada/libgnat/g-hesora.o ada/libgnat/g-htable.o ada/libgnat/g-spchge.o ada/libgnat/g-speche.o ada/libgnat/g-u3spch.o ada/get_targ.o ada/ghost.o ada/libgnat/gnat.o ada/gnatvsn.o ada/hostparm.o ada/impunit.o ada/inline.o ada/libgnat/interfac.o ada/itypes.o ada/krunch.o ada/layout.o ada/lib-load.o ada/lib-util.o ada/lib-writ.o ada/lib-xref.o ada/lib.o ada/live.o ada/namet-sp.o ada/namet.o ada/nlists.o ada/nmake.o ada/opt.o ada/osint-c.o ada/osint.o ada/output.o ada/par.o ada/par_sco.o ada/prep.o ada/prepcomp.o ada/put_scos.o ada/repinfo.o ada/restrict.o ada/rident.o ada/rtsfind.o ada/libgnat/s-addope.o ada/libgnat/s-addima.o ada/libgnat/s-assert.o ada/libgnat/s-bitops.o ada/libgnat/s-carun8.o ada/libgnat/s-casuti.o ada/libgnat/s-conca2.o ada/libgnat/s-conca3.o ada/libgnat/s-conca4.o ada/libgnat/s-conca5.o ada/libgnat/s-conca6.o ada/libgnat/s-conca7.o ada/libgnat/s-conca8.o ada/libgnat/s-conca9.o ada/libgnat/s-crc32.o ada/libgnat/s-crtl.o ada/libgnat/s-excdeb.o ada/libgnat/s-except.o ada/libgnat/s-exctab.o ada/libgnat/s-excmac.o ada/libgnat/s-htable.o ada/libgnat/s-imenne.o ada/libgnat/s-imgenu.o ada/libgnat/s-imgint.o ada/libgnat/s-mastop.o ada/libgnat/s-memory.o ada/libgnat/s-os_lib.o ada/libgnat/s-parame.o ada/libgnat/s-purexc.o ada/libgnat/s-restri.o ada/libgnat/s-secsta.o ada/libgnat/s-soflin.o ada/libgnat/s-soliin.o ada/libgnat/s-sopco3.o ada/libgnat/s-sopco4.o ada/libgnat/s-sopco5.o ada/libgnat/s-stache.o ada/libgnat/s-stalib.o ada/libgnat/s-stoele.o ada/libgnat/s-strcom.o ada/libgnat/s-strhas.o ada/libgnat/s-string.o ada/libgnat/s-strops.o ada/libgnat/s-traceb.o ada/libgnat/s-traent.o ada/libgnat/s-trasym.o ada/libgnat/s-unstyp.o ada/libgnat/s-utf_32.o ada/libgnat/s-valint.o ada/libgnat/s-valuns.o ada/libgnat/s-valuti.o ada/libgnat/s-wchcnv.o ada/libgnat/s-wchcon.o ada/libgnat/s-wchjis.o ada/libgnat/s-wchstw.o ada/scans.o ada/scil_ll.o ada/scn.o ada/scng.o ada/scos.o ada/sdefault.o ada/sem.o ada/sem_aggr.o ada/sem_attr.o ada/sem_aux.o ada/sem_case.o ada/sem_cat.o ada/sem_ch10.o ada/sem_ch11.o ada/sem_ch12.o ada/sem_ch13.o ada/sem_ch2.o ada/sem_ch3.o ada/sem_ch4.o ada/sem_ch5.o ada/sem_ch6.o ada/sem_ch7.o ada/sem_ch8.o ada/sem_ch9.o ada/sem_dim.o ada/sem_disp.o ada/sem_dist.o ada/sem_elab.o ada/sem_elim.o ada/sem_eval.o ada/sem_intr.o ada/sem_mech.o ada/sem_prag.o ada/sem_res.o ada/sem_scil.o ada/sem_smem.o ada/sem_spark.o ada/sem_type.o ada/sem_util.o ada/sem_warn.o ada/set_targ.o ada/sinfo-cn.o ada/sinfo.o ada/sinput-d.o ada/sinput-l.o ada/sinput.o ada/snames.o ada/sprint.o ada/stand.o ada/stringt.o ada/style.o ada/styleg.o ada/stylesw.o ada/switch-c.o ada/switch.o ada/libgnat/system.o ada/table.o ada/targparm.o ada/tbuild.o ada/tree_gen.o ada/tree_in.o ada/tree_io.o ada/treepr.o ada/treeprs.o ada/ttypes.o ada/types.o ada/uintp.o ada/uname.o ada/urealp.o ada/usage.o ada/validsw.o ada/warnsw.o ada/widechar.o ada/back_end.o ada/gnat1drv.o ada/b_gnat1.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a attribs.o \
  libcommon-target.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lisl -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz -g
/usr/bin/ld: /usr/lib/gcc/powerpc-linux-gnuspe/8/../../../powerpc-linux-gnuspe/crt1.o: in function `_start':
(.text+0x20): relocation truncated to fit: R_PPC_REL24 against symbol `__libc_start_main@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: /usr/lib/gcc/powerpc-linux-gnuspe/8/libstdc++.a(eh_alloc.o): in function `_GLOBAL__sub_I_eh_alloc.cc':
(.text.startup._GLOBAL__sub_I_eh_alloc.cc+0x5c): relocation truncated to fit: R_PPC_PLTREL24 against symbol `malloc@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: ada/adadecode.o: in function `add_verbose(char const*, char*)':
/<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:73:(.text+0x48): relocation truncated to fit: R_PPC_REL24 against symbol `strcat@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: /<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:74:(.text+0x54): relocation truncated to fit: R_PPC_REL24 against symbol `strcat@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: ada/adadecode.o: in function `has_prefix(char const*, char const*)':
/<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:84:(.text+0xa0): relocation truncated to fit: R_PPC_REL24 against symbol `strlen@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: /<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:84:(.text+0xb4): relocation truncated to fit: R_PPC_REL24 against symbol `strncmp@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: ada/adadecode.o: in function `has_suffix(char const*, char const*)':
/<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:92:(.text+0x10c): relocation truncated to fit: R_PPC_REL24 against symbol `strlen@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: /<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:93:(.text+0x11c): relocation truncated to fit: R_PPC_REL24 against symbol `strlen@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: /<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:95:(.text+0x15c): relocation truncated to fit: R_PPC_REL24 against symbol `strncmp@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: ada/adadecode.o: in function `__gnat_decode':
/<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:180:(.text+0x2b0): relocation truncated to fit: R_PPC_REL24 against symbol `strcpy@@GLIBC_2.0' defined in .plt section in ../libiberty/libiberty.a(concat.o)
/usr/bin/ld: /<<PKGBUILDDIR>>/build/gcc/../../src/gcc/ada/adadecode.c:184:(.text+0x2c8): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make[5]: *** [../../src/gcc/ada/gcc-interface/Make-lang.in:657: gnat1] Error 1

There is most likely a bug in the newer binutils version. As a workaround, gnat
can just be disabled and gcc-8 builds fine which I just did for a manual build.

Please disable gnat on powerpcspe for the time being until we have resolved
the linker issues.

Thanks,
Adrian

> [1] https://buildd.debian.org/status/fetch.php?pkg=gcc-8&arch=powerpcspe&ver=8.2.0-9&stamp=1540969207&raw=0

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: