public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100092] New: [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi
@ 2021-04-15  8:05 rguenth at gcc dot gnu.org
  2021-04-15  8:05 ` [Bug target/100092] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-15  8:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100092

            Bug ID: 100092
           Summary: [10 Regression] nvptx offloading on aarch64 fails to
                    specify -foffload-abi
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Comparing GCC 10.2.1 and 10.3.0 testresults on aarch64 I see

                === libgomp Summary ===

-# of expected passes           7627
-# of unexpected successes      6
-# of expected failures         4
+# of expected passes           6837
+# of unexpected failures       820
+# of expected failures         10
+# of unresolved testcases      400
 # of untested testcases                3
-# of unsupported tests         601
+# of unsupported tests         602

with all the FAILs being like

+FAIL: libgomp.c/examples-4/target_data-4.c (internal compiler error)
+FAIL: libgomp.c/examples-4/target_data-4.c (test for excess errors)
+UNRESOLVED: libgomp.c/examples-4/target_data-4.c compilation failed to produce
executable

and in the log

spawn -ignore SIGHUP
/home/abuild/rpmbuild/BUILD/gcc-10.3.0+git1587/obj-aarch64-suse-linux/./gcc/xgcc
-B/home/abuild/rpmbuild/BUILD/gcc-10.3.0+git1587/obj-aarch64-suse-linux/./gcc/
-B/usr/aarch64-suse-linux/bin/ -B/usr/aarch64-suse-linux/lib/ -isystem
/usr/aarch64-suse-linux/include -isystem /usr/aarch64-suse-linux/sys-include
-fchecking=1 ../../../../libgomp/testsuite/libgomp.c/examples-4/target_data-4.c
-B/home/abuild/rpmbuild/BUILD/gcc-10.3.0+git1587/obj-aarch64-suse-linux/aarch64-suse-linux/./libgomp/
-B/home/abuild/rpmbuild/BUILD/gcc-10.3.0+git1587/obj-aarch64-suse-linux/aarch64-suse-linux/./libgomp/.libs
-I/home/abuild/rpmbuild/BUILD/gcc-10.3.0+git1587/obj-aarch64-suse-linux/aarch64-suse-linux/./libgomp
-I../../../../libgomp/testsuite/../../include
-I../../../../libgomp/testsuite/.. -Lno -fmessage-length=0
-fno-diagnostics-show-caret -Wno-hsa -fdiagnostics-color=never
-B/usr/lib64/gcc/aarch64-suse-linux/10 -B/usr/bin -fopenmp -O2
-L/home/abuild/rpmbuild/BUILD/gcc-10.3.0+git1587/obj-aarch64-suse-linux/aarch64-suse-linux/./libgomp/.libs
-lm -o ./target_data-4.exe^M
mkoffload: internal compiler error: in main, at config/nvptx/mkoffload.c:511^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
See <https://bugs.opensuse.org/> for instructions.^M
lto-wrapper: fatal error:
/usr/lib64/gcc/aarch64-suse-linux/10//accel/nvptx-none/mkoffload returned 4
exit status^M
compilation terminated.^M
/usr/aarch64-suse-linux/bin/ld: error: lto-wrapper failed^M

if you look at mkoffload you see

  switch (offload_abi)
    {
    case OFFLOAD_ABI_LP64:
      obstack_ptr_grow (&argv_obstack, "-m64");
      break;
    case OFFLOAD_ABI_ILP32:
      obstack_ptr_grow (&argv_obstack, "-m32");
      break;
    default:
      gcc_unreachable ();  // <--- ICE here

I fail to see a corresponding setting of -foffload-abi in the aarch64 backend
on the branch (there is one on trunk).

I'm not at all sure how this is a regression but the testcase passes earlier
(10.2.1+git583 vs. 10.3.0+git1587)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/100092] [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi
  2021-04-15  8:05 [Bug target/100092] New: [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi rguenth at gcc dot gnu.org
@ 2021-04-15  8:05 ` rguenth at gcc dot gnu.org
  2021-04-15  8:09 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-15  8:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100092

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.4
             Target|                            |nvptx
               Host|                            |aarch64-linux

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/100092] [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi
  2021-04-15  8:05 [Bug target/100092] New: [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi rguenth at gcc dot gnu.org
  2021-04-15  8:05 ` [Bug target/100092] " rguenth at gcc dot gnu.org
@ 2021-04-15  8:09 ` rguenth at gcc dot gnu.org
  2021-04-15  8:34 ` doko at debian dot org
  2021-04-15  8:37 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-15  8:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100092

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
On trunk g:29a14a1a907947fe9e43bce62d3468559f17da97 adds TARGET_OFFLOAD_OPTIONS
to aarch64.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/100092] [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi
  2021-04-15  8:05 [Bug target/100092] New: [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi rguenth at gcc dot gnu.org
  2021-04-15  8:05 ` [Bug target/100092] " rguenth at gcc dot gnu.org
  2021-04-15  8:09 ` rguenth at gcc dot gnu.org
@ 2021-04-15  8:34 ` doko at debian dot org
  2021-04-15  8:37 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: doko at debian dot org @ 2021-04-15  8:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100092

Matthias Klose <doko at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at debian dot org

--- Comment #2 from Matthias Klose <doko at debian dot org> ---
there's more needed, see PR96265.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/100092] [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi
  2021-04-15  8:05 [Bug target/100092] New: [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-04-15  8:34 ` doko at debian dot org
@ 2021-04-15  8:37 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-15  8:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100092

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
OK, so the difference in the testresults is because the 10.2.1 based compiler
did not have the offload compiler installed at test time.  Oops.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-15  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  8:05 [Bug target/100092] New: [10 Regression] nvptx offloading on aarch64 fails to specify -foffload-abi rguenth at gcc dot gnu.org
2021-04-15  8:05 ` [Bug target/100092] " rguenth at gcc dot gnu.org
2021-04-15  8:09 ` rguenth at gcc dot gnu.org
2021-04-15  8:34 ` doko at debian dot org
2021-04-15  8:37 ` rguenth at gcc dot gnu.org

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).