From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A5E33858D32; Fri, 22 Mar 2024 15:38:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A5E33858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711121926; bh=RF/0g+AKwovDonlXqv0wqjbhvJb0kVeWjID9y/zrgLw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fYZG7cD/gluCS/deV84Q3IiJtiXPELA3XmYuC3NaRmEa79EWG/KXOWWrj4cugwmAa G3+P4LmBwXSuH8/OrJ1dRB3Giwa14pqzfHWZyz1IS3nofoKsT+/rEvy39Mp9kfXEUa s7L9Tssr7DTGn2x/j/XrerpZiAoOyyMjZj8i4E2c= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114419] [GCC < 14] amdgcn offload compiler fails to build with amdgcn tools based on LLVM 18 Date: Fri, 22 Mar 2024 15:38:45 +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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cc short_desc 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=3D114419 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ams at gcc dot gnu.org, | |burnus at gcc dot gnu.org Summary|amdgcn offload compiler |[GCC < 14] amdgcn offload |fails to build with amdgcn |compiler fails to build |tools based on LLVM 18 |with amdgcn tools based on | |LLVM 18 --- Comment #2 from Tobias Burnus --- This has been fixed in GCC 14 - and the documentation has been updated accordingly. See the AMD GCN entry in the GCC 14 and the link to the install document there: https://gcc.gnu.org/gcc-14/changes.html * * * I think there are two problems with LLVM 18 - both fixed with GCC 14/mainli= ne. Namely: (A) Support for 'Fuji' devices was stopped, i.e. those use AMDHSA Code Object Version 3 =E2=86=92 Solution: Configure with --with-arch=3Dgfx900 --with-multilib-list=3Dgfx900,gfx906,gfx908,gfx90a i.e. leave out 'fiji' and switch to gfx900 for the default Cf. r14-4734-g56ed1055b2f40ac162ae8d382280ac07a33f789f (B) The default version used if no version has been specified changed to Co= de Object 5 in LLVM's linker =E2=80=93 but with '-g' also mkoffload produces a= n object file - but with version 4. =3D> With debugging enabled, there will be an error with LLVM 18, solved by the commit: r14-8449-g4b5650acb3107239867830dc1214b31bdbe3cacd - namely: Since LLVM commit 082f87c9d418 (Pull Req. #79038; will become LLVM 18) "[AMDGPU] Change default AMDHSA Code Object version to 5" the default - when no --amdhsa-code-object-version=3D is used - was bumpe= d.=