From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1CA93858D20; Tue, 23 Jan 2024 06:31:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1CA93858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705991487; bh=4Qbn7N2Wyk0FyXy0DrGkF3L7AIykPG9l7hTGk9GB3/A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gyhilP1fe2Q3FsZnc2oztLxdAFfRBZFmEELjlgogyclemZt8i03dRmdHb6Or98WGS KPZnuqI5wYgSPaqJ/fD21NFXz2cqV2+mD8Xtc0EG84va9U7sUMuLa/GqyOZw3o7BGl smznG8+BlgHdHiwpUK5dYe9VS6Rsgy028fHges6g= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113507] can't build a cross compiler to rs6000-ibm-aix7.2 Date: Tue, 23 Jan 2024 06:31:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_status cc cf_reconfirmed_on everconfirmed 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=3D113507 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |segher at gcc dot gnu.org Last reconfirmed| |2024-01-23 Ever confirmed|0 |1 --- Comment #5 from Kewen Lin --- (In reply to H.J. Lu from comment #3) > (In reply to Kewen Lin from comment #2) > > Guessing /usr/local/bin/ld is a gnu ld? Based on what I heard before, g= nu ld > > has some problems on aix, people pass object files to aix system and us= e aix > > ld there. Not sure if the understanding still holds. >=20 > I am building a cross compiler. No AIX tools are involved. Thanks for clarifying, I was dull and misunderstood it. Confirmed, some symbols are from rs6000-builtin.cc (which is not generated)= but it requires some symbols in rs6000-builtins.cc (which is generated). Both object files are not included in linking. The below diff can fix it: diff --git a/gcc/config.gcc b/gcc/config.gcc index b2d7d7dd475..6b62e4fe56c 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -557,8 +557,10 @@ rs6000*-*-*) extra_options=3D"${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt" extra_objs=3D"rs6000-string.o rs6000-p8swap.o rs6000-logue.o" extra_objs=3D"${extra_objs} rs6000-call.o rs6000-pcrel-opt.o" + extra_objs=3D"${extra_objs} rs6000-builtin.o rs6000-builtins.o" target_gtfiles=3D"$target_gtfiles \$(srcdir)/config/rs6000/rs6000-logue.cc \$(srcdir)/config/rs6000/rs6000-call.cc" target_gtfiles=3D"$target_gtfiles \$(srcdir)/config/rs6000/rs6000-pcrel-opt.cc" + target_gtfiles=3D"$target_gtfiles ./rs6000-builtins.h" ;; sparc*-*-*) cpu_type=3Dsparc According to David's comments "rs6000-ibm-aix doesn't exist any more" and I vaguely remembered Segher also mentioned rs6000*-*-*) becomes stale, maybe = we can aggressively drop the whole rs6000*-*-*) case handling?=