public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102353] New: powerpc64le-linux-gnu build failure when build != host
@ 2021-09-15 17:34 sandra at gcc dot gnu.org
  2021-09-15 17:36 ` [Bug target/102353] " sandra at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: sandra at gcc dot gnu.org @ 2021-09-15 17:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102353
           Summary: powerpc64le-linux-gnu build failure when build != host
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sandra at gcc dot gnu.org
                CC: wschmidt at linux dot ibm.com
  Target Milestone: ---
              Host: powerpc64le-linux-gnu
            Target: powerpc64le-linux-gnu
             Build: x86_64-linux-gnu

I'm trying to build gcc for powerpc64le-linux-gnu host and target from
x86_64-linux-gnu host using scripts that have been known to work within the
last month or so.  I'm seeing multiple linker errors like 

ld: rs6000-gen-builtins.o: Relocations in generic ELF (EM: 21)

followed by

ld: rs6000-gen-builtins.o: error adding symbols: file in wrong format

And indeed, looking at config/rs6000/t-rs6000, this seems to be broken:

rs6000-gen-builtins.o: $(srcdir)/config/rs6000/rs6000-gen-builtins.c
        $(COMPILE) $<
        $(POSTCOMPILE)

rbtree.o: $(srcdir)/config/rs6000/rbtree.c
        $(COMPILE) $<
        $(POSTCOMPILE)

rs6000-gen-builtins: rs6000-gen-builtins.o rbtree.o
        $(LINKER_FOR_BUILD) $(BUILD_LINKERFLAGS) $(BUILD_LDFLAGS) -o $@ \
            $(filter-out $(BUILD_LIBDEPS), $^) $(BUILD_LIBS)

The two .o files are being built with the *host* compiler, and we're trying to
link them with the *build* linker.  ???

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-16 16:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 17:34 [Bug target/102353] New: powerpc64le-linux-gnu build failure when build != host sandra at gcc dot gnu.org
2021-09-15 17:36 ` [Bug target/102353] " sandra at gcc dot gnu.org
2021-09-15 17:38 ` wschmidt at gcc dot gnu.org
2021-09-15 19:49 ` wschmidt at gcc dot gnu.org
2021-09-15 23:36 ` sandra at gcc dot gnu.org
2021-09-16  9:21 ` burnus at gcc dot gnu.org
2021-09-16 12:50 ` wschmidt at gcc dot gnu.org
2021-09-16 16:37 ` cvs-commit at gcc dot gnu.org
2021-09-16 16:53 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).