https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118247

            Bug ID: 118247
           Summary: [15 Regression] gnatbind fails to relink in the
                    install target for powerpc64-linux-gnu and
                    powerpc64le-linux-gnu in a cross build
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

gnatbind fails to relink in the install target for powerpc64-linux-gnu and
powerpc64le-linux-gnu in a cross build.

seen with trunk 20241220. Note that other linux cross targets succeed to build
and install, this is is seen on

 - powerpc64le-linux-gnu, building a powerpc64-linux-gnu cross compiler

 - powerpc64-linux-gnu, building a powerpc64le-linux-gnu cross compiler

fails relinking gnatbind with:
/usr/bin/ld: libgcc_s.so.1: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status

I'm also building these power64 cross compilers on amd64, i386, aarch64
successfully.

complete build log at
https://buildd.debian.org/status/fetch.php?pkg=gcc-15-cross-ports&arch=ppc64el&ver=1&stamp=1734982239&raw=0

make[6]: Entering directory '/<<PKGBUILDDIR>>/gcc/build/lto-plugin'
 /usr/bin/mkdir -p
'/<<PKGBUILDDIR>>/gcc/debian/tmp/usr/libexec/gcc-cross/powerpc64-linux-gnu/15'
 /bin/bash ./libtool --tag=disable-static  --mode=install /usr/bin/install -c  
liblto_plugin.la '/<<PKGBUILDDIR>>/gcc/debian/tm
p/usr/libexec/gcc-cross/powerpc64-linux-gnu/15'
libtool: install: /usr/bin/install -c .libs/liblto_plugin.so
/<<PKGBUILDDIR>>/gcc/debian/tmp/usr/libexec/gcc-cross/powerpc64-lin
ux-gnu/15/liblto_plugin.so
libtool: install: /usr/bin/install -c .libs/liblto_plugin.lai
/<<PKGBUILDDIR>>/gcc/debian/tmp/usr/libexec/gcc-cross/powerpc64-li
nux-gnu/15/liblto_plugin.la
libtool: install: warning: remember to run `libtool --finish
/usr/libexec/gcc-cross/powerpc64-linux-gnu/15'
make[6]: Nothing to be done for 'install-data-am'.
make[6]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build/lto-plugin'
make[5]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build/lto-plugin'
make[5]: Entering directory '/<<PKGBUILDDIR>>/gcc/build/gcc'
powerpc64le-linux-gnu-g++-15 -no-pie -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind
-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -Wconditionally-supported -Woverloa
ded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -no-pie -Wl,--no-allow-shlib-u
ndefined -Wl,--no-copy-dt-needed-entries -Wl,--no-undefined -Wl,-z,relro -o
gnatbind -g -O2     ada/b_gnatb.o ada/ali-util.o ada
/ali.o ada/alloc.o ada/atree.o ada/bcheck.o ada/binde.o ada/binderr.o
ada/bindgen.o ada/bindo.o ada/bindo-augmentors.o ada/bindo
-builders.o ada/bindo-diagnostics.o ada/bindo-elaborators.o ada/bindo-graphs.o
ada/bindo-units.o ada/bindo-validators.o ada/bind
o-writers.o ada/bindusg.o ada/butil.o ada/casing.o ada/csets.o ada/debug.o
ada/diagnostics-brief_emitter.o ada/diagnostics-const
ructors.o ada/diagnostics-converter.o ada/diagnostics-json_utils.o
ada/diagnostics-pretty_emitter.o ada/diagnostics-repository.o
 ada/diagnostics-sarif_emitter.o ada/diagnostics-switch_repository.o
ada/diagnostics-utils.o ada/diagnostics.o ada/einfo-entitie
s.o ada/einfo-utils.o ada/einfo.o ada/elists.o ada/err_vars.o ada/errout.o
ada/erroutc.o ada/exit.o ada/final.o ada/fmap.o ada/f
name.o ada/gnatbind.o ada/gnatvsn.o ada/hostparm.o ada/lib.o ada/link.o
ada/namet.o ada/nlists.o ada/opt.o ada/osint-b.o ada/osi
nt.o ada/output.o ada/rident.o ada/scans.o ada/scng.o ada/sdefault.o
ada/seinfo.o ada/sem_aux.o ada/sinfo.o ada/sinfo-nodes.o ad
a/sinfo-utils.o ada/sinput-c.o ada/sinput.o ada/snames.o ada/stand.o
ada/stringt.o ada/styleg.o ada/stylesw.o ada/switch-b.o ada
/switch.o ada/table.o ada/targext.o ada/targparm.o ada/types.o ada/uintp.o
ada/uname.o ada/urealp.o ada/warnsw.o ada/widechar.o 
ada/gnat.o ada/g-dynhta.o ada/g-lists.o ada/g-graphs.o ada/g-sets.o
ada/s-resfil.o ada/version.o ada/s-utf_32.o ada/init.o ada/i
nitialize.o ada/raise.o ada/raise-gcc.o ada/rtfinal.o ada/rtinit.o
ada/seh_init.o ada/gcc-interface/system.o ada/libgnat/a-asser
t.o ada/libgnat/a-elchha.o ada/libgnat/a-except.o ada/libgnat/a-nubinu.o
ada/libgnat/a-numeri.o ada/libgnat/ada.o ada/libgnat/g-
byorma.o ada/libgnat/g-hesora.o ada/libgnat/g-htable.o ada/libgnat/i-c.o
ada/libgnat/interfac.o ada/libgnat/s-addope.o ada/libgn
at/s-assert.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-excdeb.o ada/libgnat/s-except.o ada/libgnat/s-excmac.o
ada/libgnat/s-exctab.o ada/libgnat/s-htable.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-re
stri.o ada/libgnat/s-secsta.o ada/libgnat/s-soflin.o ada/libgnat/s-soliin.o
ada/libgnat/s-stache.o ada/libgnat/s-stalib.o ada/li
bgnat/s-stoele.o ada/libgnat/s-strhas.o ada/libgnat/s-string.o
ada/libgnat/s-traent.o ada/libgnat/s-traceb.o ada/libgnat/s-unsty
p.o ada/libgnat/s-wchcnv.o ada/libgnat/s-wchcon.o ada/libgnat/s-wchjis.o
ada/libgnat/s-wchstw.o ada/libgnat/s-widuns.o ada/adain
t.o ada/argv.o ada/cio.o ada/cstreams.o ada/env.o ada/errno.o  ggc-none.o
libcommon-target.a libcommon.a ../libcpp/libcpp.a   ..
/libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   
/usr/bin/ld: libgcc_s.so.1: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[5]: *** [../../src/gcc/ada/gcc-interface/Make-lang.in:795: gnatbind] Error
1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build/gcc'
make[4]: *** [Makefile:4807: install-gcc] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build'
make[3]: *** [Makefile:2673: install] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/gcc/build'
make[2]: *** [debian/rules2:2689: stamps/07-install-stamp] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/gcc'

Reply via email to