From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B41C388A832; Tue, 21 Jul 2020 11:55:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B41C388A832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595332522; bh=y5x9DhvY99/g2mrfzlvoG931tch+NTXeiWysrTJPAv4=; h=From:To:Subject:Date:From; b=YYJo5tTJPqwakb/6R1v/izdDuFUL+7pFzmm4wa9XlUh9gNSUCcFNfNRjx33vtKMmX rnWDjU4dZZ5Yz7YEGW46gS10vjM3lpnOIj31+xaqfY5BI8QPpverAyo8ZXTVZlBmyA 5zoLejfCFAUgEE6rYXAVeJbJaYVcNn/h5XEOcCV8= From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96265] New: building nvptx-none on platforms other than x86_64-linux-gnu, e.g. aarch64-linux-gnu and powerpc64le-linux-gnu Date: Tue, 21 Jul 2020 11:55:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.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: Tue, 21 Jul 2020 11:55:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96265 Bug ID: 96265 Summary: building nvptx-none on platforms other than x86_64-linux-gnu, e.g. aarch64-linux-gnu and powerpc64le-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- The nvptx-target usually is built on x86_64-linux-gnu, but searching the web you'll see that these GPUs are also used in aarch64-linux-gnu and powerpc64le-linux-gnu systems. building the nvptx offload compiler on powerpc64le, you see reasonable test results for libgomp, and I see at last one powerpc64le related commit: 2015-10-09 James Norris * config/rs6000/rs6000.c (rs6000_offload_options): New. (TARGET_OFFLOAD_OPTIONS): New. However adding an aarch64_offload_options hook doesn't look that well for AArch64, there are still two type of issues triggered in the testsuite: FAIL: libgomp.c/../libgomp.c-c++-common/for-11.c (test for excess errors) Excess errors: lto1: fatal error: nvptx-none - 0-bit integer numbers unsupported (mode 'SI= ') and: NRESOLVED: libgomp.c/../libgomp.c-c++-common/for-9.c compilation failed to produce executable UNSUPPORTED: libgomp.c/../libgomp.c-c++-common/function-not-offloaded-aux.c spawn -ignore SIGHUP /home/ubuntu/gcc-10-10.1.0/build/./gcc/xgcc -B/home/ubuntu/gcc-10-10.1.0/build/./gcc/ -B/usr/aarch64-linux-gnu/b in/ -B/usr/aarch64-linux-gnu/lib/ -isystem /usr/aarch64-linux-gnu/include -isystem /usr/aarch64-linux-gnu/sys-include -isystem /home/ ubuntu/gcc-10-10.1.0/build/sys-include -fchecking=3D1 offload_device_nonshared_as411951.c -B/home/ubuntu/gcc-10-10.1.0/build/aarch64-li nux-gnu/./libgomp/ -B/home/ubuntu/gcc-10-10.1.0/build/aarch64-linux-gnu/./libgomp/.libs -I/home/ubuntu/gcc-10-10.1.0/build/aarch64-li nux-gnu/./libgomp -I../../../../src/libgomp/testsuite/../../include -I../../../../src/libgomp/testsuite/.. -Lno -fmessage-length=3D0 -f no-diagnostics-show-caret -Wno-hsa -fdiagnostics-color=3Dnever -B/home/ubuntu/gcc-10-10.1.0/debian/tmp-nvptx/usr/libexec/gcc/aarch64-li nux-gnu/10 -B/home/ubuntu/gcc-10-10.1.0/debian/tmp-nvptx/usr/bin -fopenmp -L/home/ubuntu/gcc-10-10.1.0/build/aarch64-linux-gnu/./libg omp/.libs -lm -o offload_device_nonshared_as411951.exe lto1: internal compiler error: bytecode stream: string too long for the str= ing table 0x62559f string_for_index ../../src-nvptx/gcc/data-streamer-in.c:53 0x62559f bp_unpack_indexed_string(data_in*, bitpack_d*, unsigned int*) ../../src-nvptx/gcc/data-streamer-in.c:97 0x87a39b lto_input_mode_table(lto_file_decl_data*) ../../src-nvptx/gcc/lto-streamer-in.c:1685 0x5a076f lto_file_finalize ../../src-nvptx/gcc/lto/lto-common.c:2217 0x5a076f lto_create_files_from_ids ../../src-nvptx/gcc/lto/lto-common.c:2240 0x5a076f lto_file_read ../../src-nvptx/gcc/lto/lto-common.c:2295 0x5a076f read_cgraph_and_symbols(unsigned int, char const**) ../../src-nvptx/gcc/lto/lto-common.c:2747 0x58f523 lto_main() ../../src-nvptx/gcc/lto/lto.c:625 Please submit a full bug report, with preprocessed source if appropriate.=