public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0'
@ 2021-03-05 8:53 brechtsanders at users dot sourceforge.net
2021-03-05 9:19 ` [Bug c++/99401] " ebotcazou at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: brechtsanders at users dot sourceforge.net @ 2021-03-05 8:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
Bug ID: 99401
Summary: GCC11 MinGW-w64 32-bit build fails with undefined
reference to `LC0'
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: brechtsanders at users dot sourceforge.net
Target Milestone: ---
Created attachment 50301
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50301&action=edit
make output
When building GCC11 (last tested with 11-20210228) for Windows 32-bit with
MinGW-w64 the build fails with undefined references to LC0/LC1/LC2/LC3.
My build was done using the following configure command:
../configure --prefix=/R/winlibs32_stage/inst_gcc-11-20210228/share/gcc
--build=i686-w64-mingw32 --host=i686-w64-mingw32 --with-pkgversion=MinGW-W64
i686-posix-dwarf, built by Brecht Sanders --with-tune=generic
--enable-checking=release --enable-threads=posix --with-dwarf2
--disable-sjlj-exceptions --disable-libunwind-exceptions
--disable-serial-configure --disable-bootstrap --enable-host-shared
--enable-plugin --disable-default-ssp --disable-rpath --disable-libstdcxx-pch
--enable-libstdcxx-time=yes --disable-libstdcxx-debug
--disable-version-specific-runtime-libs --with-stabs --disable-symvers
--enable-languages=c,c++,lto,objc,obj-c++,d --disable-gold --disable-nls
--disable-stage1-checking --disable-win32-registry --disable-multilib
--enable-ld --enable-libquadmath --enable-libada --enable-libssp
--enable-libstdcxx --enable-lto --enable-fully-dynamic-string --enable-libgomp
--enable-graphite --enable-mingw-wildcard
--with-mpc=/d/Prog/winlibs32_stage/custombuilt
--with-mpfr=/d/Prog/winlibs32_stage/custombuilt
--with-gmp=/d/Prog/winlibs32_stage/custombuilt
--with-isl=/d/Prog/winlibs32_stage/custombuilt --enable-install-libiberty
--enable-__cxa_atexit --without-included-gettext --with-diagnostics-color=auto
--with-libiconv --with-system-zlib
--with-build-sysroot=/R/winlibs32_stage/gcc-11-20210228/mingw-w64
--enable-large-address-aware
CFLAGS=-I/d/Prog/winlibs32_stage/custombuilt/include/libdl-win32
Note that I was able to build the 32-bit compiler once, but I had to disable
fortran to work around this error. This is the second iteration where I try to
build GCC 11-20210228 with the same version of GCC from the first iteration.
Windows 64-bit builds work fine, so this error is limited to Windows 32-bit.
Any idea what causes this?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99401] GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0'
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
@ 2021-03-05 9:19 ` ebotcazou at gcc dot gnu.org
2021-03-05 10:33 ` [Bug target/99401] " brechtsanders at users dot sourceforge.net
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-03-05 9:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-03-05
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
CC| |ebotcazou at gcc dot gnu.org
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
This looks like an issue with the base compiler, could you post the output of
'gcc -v'? Could you also avoid forcing -O2 during stage #1, i.e. use the
default -O0 or only -O1?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0'
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
2021-03-05 9:19 ` [Bug c++/99401] " ebotcazou at gcc dot gnu.org
@ 2021-03-05 10:33 ` brechtsanders at users dot sourceforge.net
2021-03-05 11:23 ` ebotcazou at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: brechtsanders at users dot sourceforge.net @ 2021-03-05 10:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
--- Comment #2 from Brecht Sanders <brechtsanders at users dot sourceforge.net> ---
Created attachment 50302
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50302&action=edit
gcc -v
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0'
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
2021-03-05 9:19 ` [Bug c++/99401] " ebotcazou at gcc dot gnu.org
2021-03-05 10:33 ` [Bug target/99401] " brechtsanders at users dot sourceforge.net
@ 2021-03-05 11:23 ` ebotcazou at gcc dot gnu.org
2021-03-05 12:39 ` [Bug target/99401] Rebuilding the compiler with itself fails at -O2 ebotcazou at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-03-05 11:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> gcc -v
No, what's needed is the output for the *base* compiler, i.e. the compiler you
start from, not the compiler you're building.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] Rebuilding the compiler with itself fails at -O2
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
` (2 preceding siblings ...)
2021-03-05 11:23 ` ebotcazou at gcc dot gnu.org
@ 2021-03-05 12:39 ` ebotcazou at gcc dot gnu.org
2021-03-05 12:44 ` brechtsanders at users dot sourceforge.net
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-03-05 12:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Summary|GCC11 MinGW-w64 32-bit |Rebuilding the compiler
|build fails with undefined |with itself fails at -O2
|reference to `LC0' |
Keywords|build |
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
OK, I missed that you're explicitly rebuilding the compiler with itself after
having bootstrapped it first... You're on your own here, no one does that.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] Rebuilding the compiler with itself fails at -O2
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
` (3 preceding siblings ...)
2021-03-05 12:39 ` [Bug target/99401] Rebuilding the compiler with itself fails at -O2 ebotcazou at gcc dot gnu.org
@ 2021-03-05 12:44 ` brechtsanders at users dot sourceforge.net
2021-03-05 12:51 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: brechtsanders at users dot sourceforge.net @ 2021-03-05 12:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
--- Comment #5 from Brecht Sanders <brechtsanders at users dot sourceforge.net> ---
*** Bug 97618 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] Rebuilding the compiler with itself fails at -O2
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
` (4 preceding siblings ...)
2021-03-05 12:44 ` brechtsanders at users dot sourceforge.net
@ 2021-03-05 12:51 ` jakub at gcc dot gnu.org
2021-04-29 13:49 ` jakub at gcc dot gnu.org
2021-04-29 17:21 ` brechtsanders at users dot sourceforge.net
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-03-05 12:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Anyway, in that case you want to attach here the preprocessed source on which
some undefined references to LC* appear and state exact gcc options that were
used to compile that, so that others can try to reproduce it e.g. with
cross-compilers.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] Rebuilding the compiler with itself fails at -O2
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
` (5 preceding siblings ...)
2021-03-05 12:51 ` jakub at gcc dot gnu.org
@ 2021-04-29 13:49 ` jakub at gcc dot gnu.org
2021-04-29 17:21 ` brechtsanders at users dot sourceforge.net
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-29 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Maybe dup of PR99872 ?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/99401] Rebuilding the compiler with itself fails at -O2
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
` (6 preceding siblings ...)
2021-04-29 13:49 ` jakub at gcc dot gnu.org
@ 2021-04-29 17:21 ` brechtsanders at users dot sourceforge.net
7 siblings, 0 replies; 9+ messages in thread
From: brechtsanders at users dot sourceforge.net @ 2021-04-29 17:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99401
Brecht Sanders <brechtsanders at users dot sourceforge.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Brecht Sanders <brechtsanders at users dot sourceforge.net> ---
Recently released version 11.1.0 does build for Windows 32-bit with MinGW-w64
without issues.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-04-29 17:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 8:53 [Bug c++/99401] New: GCC11 MinGW-w64 32-bit build fails with undefined reference to `LC0' brechtsanders at users dot sourceforge.net
2021-03-05 9:19 ` [Bug c++/99401] " ebotcazou at gcc dot gnu.org
2021-03-05 10:33 ` [Bug target/99401] " brechtsanders at users dot sourceforge.net
2021-03-05 11:23 ` ebotcazou at gcc dot gnu.org
2021-03-05 12:39 ` [Bug target/99401] Rebuilding the compiler with itself fails at -O2 ebotcazou at gcc dot gnu.org
2021-03-05 12:44 ` brechtsanders at users dot sourceforge.net
2021-03-05 12:51 ` jakub at gcc dot gnu.org
2021-04-29 13:49 ` jakub at gcc dot gnu.org
2021-04-29 17:21 ` brechtsanders at users dot sourceforge.net
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).