From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 263263858D32; Wed, 12 Apr 2023 10:00:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 263263858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681293648; bh=RUwI4zai11o0QGCu+YxHM6aeaFT3m/MJAUy+YAHl6J8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h3RZnj2MelV77ReGrTBpBuOd/hikIlvDy+SKWb6F6Qr+7KGaCqcjH2jtzz5X+xb3N d8n3NUJ8eqWbAM6eO2Ka3ai+Hwp80kiz56tF1tF/9q6pgsw/ck770gTtNLxMYGXdFZ 0uY3f7F9pyxaDrJPunaV2/iWPwSs5LT/DerTxMHM= From: "costas.argyris at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/109460] Build gcc for win32 failed in gcc13 master branch Date: Wed, 12 Apr 2023 10:00:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: costas.argyris at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109460 --- Comment #18 from Costas Argyris --- For some reason you are compiling gcc/utf8-mingw32.o as an executable, which shouldn't be happening. This is the rule for it in gcc\gcc\config\i386\x-mingw32-utf8 utf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o $(COMPILER) -r utf8rc-mingw32.o sym-mingw32.o -o $@ This simply takes the two .o files and combines them into one. No executables or main functions are involved here whatsoever. Did you perhaps change anything in this rule while trying to fix it?=20=20= =20 Otherwise I don't know why your utf8-mingw32.o has a main function and mine doesn't. The linker comes to mind - I noticed your gcc is configured to explicitly u= se: --with-ld=3D/usr/bin/i686-w64-mingw32-ld but I don't know why that would cause such behavior. You are also getting a bunch of errors like this: /usr/bin/i686-w64-mingw32-ld: Dwarf Error: Could not find abbrev number 101. which again are coming from the linker.=