public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/113147] New: Building a crosscompiler fails under MigW-W64/MSYS2 @ Windows 10
@ 2023-12-26 15:19 jdx at o2 dot pl
  2023-12-26 19:30 ` [Bug other/113147] " pinskia at gcc dot gnu.org
  2023-12-30  9:23 ` jdx at o2 dot pl
  0 siblings, 2 replies; 3+ messages in thread
From: jdx at o2 dot pl @ 2023-12-26 15:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113147
           Summary: Building a crosscompiler fails under MigW-W64/MSYS2 @
                    Windows 10
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jdx at o2 dot pl
  Target Milestone: ---
              Host: x86_64-w64-mingw32
            Target: h8300-elf, arm-elf

The following error occurs when I try to build a crosscompiler under
MigW-W64/MSYS2:

[...]
rm -rf libcommon.a
ar  rc libcommon.a diagnostic-spec.o diagnostic.o diagnostic-color.o
diagnostic-format-json.o diagnostic-format-sarif.o diagnostic-show-locus.o
edit-context.o pretty-print.o intl.o json.o sbitmap.o vec.o input.o
hash-table.o ggc-none.o memory-block.o selftest.o selftest-diagnostic.o sort.o
text-art/box-drawing.o text-art/canvas.o text-art/ruler.o text-art/selftests.o
text-art/style.o text-art/styled-string.o text-art/table.o text-art/theme.o
text-art/widget.o
ranlib   libcommon.a
make[2]: *** No rule to make target '../libiberty/pic/libiberty.a', needed by
'cc1-checksum.cc'.  Stop.
make[2]: Leaving directory '/d/Works/xcomp/gcc-build/gcc'
make[1]: *** [Makefile:4683: all-gcc] Error 2
make[1]: Leaving directory '/d/Works/xcomp/gcc-build'
make: *** [Makefile:1049: all] Error 2

Configure options:
../../gcc/configure --prefix=/usr/local --with-sysroot=$CWD/sysroot
--target=h8300-elf --disable-nls --disable-threads --disable-tls
--enable-checking=release --enable-languages=c --with-newlib --without-headers
--enable-multilib --enable-lto --disable-shared --enable-static
--disable-host-shared --disable-bootstrap --disable-libatomic --disable-libgomp
--disable-libitm --disable-libquadmath --disable-libsanitizer --disable-libssp
--disable-libvtv --with-system-zlib

Everything is fine on Ubuntu with the same options.

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

* [Bug other/113147] Building a crosscompiler fails under MigW-W64/MSYS2 @ Windows 10
  2023-12-26 15:19 [Bug other/113147] New: Building a crosscompiler fails under MigW-W64/MSYS2 @ Windows 10 jdx at o2 dot pl
@ 2023-12-26 19:30 ` pinskia at gcc dot gnu.org
  2023-12-30  9:23 ` jdx at o2 dot pl
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-26 19:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
# Use the "pic" build of libiberty if --enable-host-shared or
--enable-host-pie,
# unless we are building for mingw.
LIBIBERTY_PICDIR=$(if $(findstring mingw,$(target)),,pic)
ifneq ($(enable_host_shared)$(enable_host_pie),)
LIBIBERTY = ../libiberty/$(LIBIBERTY_PICDIR)/libiberty.a
else
LIBIBERTY = ../libiberty/libiberty.a
endif
ifeq ($(enable_host_shared),yes)
BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/$(LIBIBERTY_PICDIR)/libiberty.a
else
BUILD_LIBIBERTY = $(build_libobjdir)/libiberty/libiberty.a
endif


Don't use `--disable-host-shared` basically.
Though the above check for mingw really should be the host rather than the
target ...

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

* [Bug other/113147] Building a crosscompiler fails under MigW-W64/MSYS2 @ Windows 10
  2023-12-26 15:19 [Bug other/113147] New: Building a crosscompiler fails under MigW-W64/MSYS2 @ Windows 10 jdx at o2 dot pl
  2023-12-26 19:30 ` [Bug other/113147] " pinskia at gcc dot gnu.org
@ 2023-12-30  9:23 ` jdx at o2 dot pl
  1 sibling, 0 replies; 3+ messages in thread
From: jdx at o2 dot pl @ 2023-12-30  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jan Dubiec <jdx at o2 dot pl> ---
(In reply to Andrew Pinski from comment #1)
> Don't use `--disable-host-shared` basically.

OK, removal of this option seems to solve the problem, but... I had an
impression that the above set of options (including "--disable-host-shared")
used to work for me quite well earlier this year. I have checked out 13.1.0
(commit cc035c5d) and it has been built without problems. So, taking into
account your words, there used to be an issue then, or there is an issue *now*.

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

end of thread, other threads:[~2023-12-30  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26 15:19 [Bug other/113147] New: Building a crosscompiler fails under MigW-W64/MSYS2 @ Windows 10 jdx at o2 dot pl
2023-12-26 19:30 ` [Bug other/113147] " pinskia at gcc dot gnu.org
2023-12-30  9:23 ` jdx at o2 dot pl

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).