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

            Bug ID: 113655
           Summary: Cross compiling to mips64-elf fails because
                    "MIPS_EXPLICIT_RELOCS was not declared" after
                    r14-8386-g58af788d1d0825
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamborm at gcc dot gnu.org
                CC: syq at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: mips64-elf

Starting with r14-8386-g58af788d1d0825 (MIPS: Accept arguments for
-mexplicit-relocs), when I try to test that cross compilation from
x86_64-linux to target mips64-elf still works by configuring gcc with:

../src/configure --prefix=/home/mjambor/gcc/mine/inst --enable-languages=c,c++
--enable-checking=yes --disable-bootstrap --disable-multilib --enable-obsolete
--target=mips64-elf

and then building just the compiler with make -j64 all-host,

the compilation fails with:

options.cc:3474:3: error: ‘MIPS_EXPLICIT_RELOCS’ was not declared in this
scope; did you mean ‘MIPS_EXPLICIT_RELOCS_NON ’?
 3474 |   MIPS_EXPLICIT_RELOCS, /* mips_opt_explicit_relocs */
      |   ^~~~~~~~~~~~~~~~~~~~
      |   MIPS_EXPLICIT_RELOCS_NONE


Our buildbot reports failures when building a cross-compiler for
mips64el-st-linux-gnu, mips64octeon-linux, mipsisa64r2-linux,
mipsisa32r2-linux-gnu, mipsisa64r2-sde-elf, mipsisa32-elfoabi,
mipsisa64-elfoabi, mipsisa64r2el-elf, mipsisa64sr71k-elf,
mipsisa64sb1-elf, mips64-elf, mipsel-elf, mips64vr-elf,
mips64orion-elf, mips-rtems, mips-wrs-vxworks, mipstx39-elf and I
suspect the problem is the same or similar.

Reply via email to