From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E15A389041B; Mon, 25 May 2020 15:56:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E15A389041B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590422201; bh=pd/LDli+feN4sHGBC/lF6fAarKUxYUswBiBxVQ9i7uo=; h=From:To:Subject:Date:From; b=qfcmphOzKWlGsdHFNrk5vgXJdfrhvQKL/Ez9yrEx9GvU6eEPQwhPnDv7M3DEJuSOn dF2TBLZnN0KMAmM6bpfCsebqjzemOSxqmqQzzoDB83eYnZUU/ygiQpTval0ERsF9J2 k3tGW5q31QLzyswJeW8L2oXqa4JIo9+vfYFBrdQg= From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/95316] New: [10 Regression] binary built with -fopenacc fails to run when not all offload compilers are installed that were configured Date: Mon, 25 May 2020 15:56:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2020 15:56:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95316 Bug ID: 95316 Summary: [10 Regression] binary built with -fopenacc fails to run when not all offload compilers are installed that were configured Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- This is usage regression; in gcc-9 building with gcc-9 -o mandel-accel mandel.c -Wall -O2 -fopenacc and running the mandel-accel binary works, if the nvptx offload compiler is installed. Building that with gcc-10 leads to: $ gcc-10 -o mandel-accel mandel.c -Wall -O3 -fopenacc lto-wrapper: fatal error: could not find accel/amdgcn-amdhsa/mkoffload in /usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/li= b/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_= 64-linux-gnu/ (consider using =E2=80=98-B=E2=80=99) compilation terminated. /usr/bin/ld: error: lto-wrapper failed because gcc-10 was configured with more than one offload target. Installing all configured offload compilers works around it, or building for the offlo= ad targets explicitly (-foffload=3Dnvptx-none). Expected behavior: Just print a warning when an offload compiler for a tar= get cannot be found. Note: the packaged compilers for Debian/Ubuntu are gcc-10, gcc-10-offload-n= vptx and gcc-10-offload-amdgcn. See https://launchpad.net/bugs/1878760=