From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proofpoint7.lanl.gov (proofpoint7.lanl.gov [IPv6:2620:126:4000:1801::a7]) by sourceware.org (Postfix) with ESMTPS id 73A4D3858D33 for ; Tue, 28 Apr 2020 00:19:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 73A4D3858D33 Received: from pps.filterd (proofpoint7.lanl.gov [127.0.0.1]) by proofpoint7.lanl.gov (8.16.0.22/8.16.0.22) with SMTP id 03S0JnU4013591 for ; Mon, 27 Apr 2020 18:19:49 -0600 Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint7.lanl.gov with ESMTP id 30mkke7r8u-1 for ; Mon, 27 Apr 2020 18:19:48 -0600 Received: from localhost (localhost [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id B49D1100D2FA for ; Mon, 27 Apr 2020 18:19:48 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Received: from EXG16-P-MBX04.win.lanl.gov (exg16-p-mbx04.win.lanl.gov [128.165.106.184]) by mailrelay1.lanl.gov (Postfix) with ESMTP id A4480100D04E for ; Mon, 27 Apr 2020 18:19:48 -0600 (MDT) Received: from EXG16-P-MBX03.win.lanl.gov (128.165.106.183) by EXG16-P-MBX04.win.lanl.gov (128.165.106.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1847.3; Mon, 27 Apr 2020 18:19:48 -0600 Received: from EXG16-P-MBX03.win.lanl.gov ([fe80::35a0:4465:827b:6d11]) by EXG16-P-MBX03.win.lanl.gov ([fe80::35a0:4465:827b:6d11%2]) with mapi id 15.01.1847.009; Mon, 27 Apr 2020 18:19:48 -0600 From: "Shrader, David Lee" To: gcc-help Subject: when building openmp offloading, do invocations have to have matching '--enable-languages'? Thread-Topic: when building openmp offloading, do invocations have to have matching '--enable-languages'? Thread-Index: AQHWHPH9eg+ZkyEI3Eu+mqzByrkL0w== Date: Tue, 28 Apr 2020 00:19:48 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.165.106.138] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-04-27_17:2020-04-27, 2020-04-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=728 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2002250000 definitions=main-2004280000 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_GOV_DKIM_AU, HTML_MESSAGE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 00:19:52 -0000 Hello, When building an OpenMP offload-capable GCC, I understand there are two inv= ocations of GCC's configure: one for building the offload compiler, and ano= ther for the host compiler. Is it ok to have the list given to '--enable-la= nguages' not match between the invocations? Specifically, can additional la= nguages be given to the host compiler invocation and they work as expected?= For example, since OpenMP offload only works for c, c++, and fortran (acco= rding to the OpenMP wiki page), can the offload compiler configure invocati= on use '--enable-languages=3Dc,c++,fortran' and the host compiler configure= use '--enable-languages=3Dc,c++,fortran,go,java' and the go and java compi= lers will work as everyone expects? I have successfully been able to build an OpenMP-offload-capable GCC using = this scheme, and the build worked fine, and my initial testing of compiling= the non-offloadable languages didn't turn up any issues. But I am worried = about what I haven't tested, which is quite a lot in those other languages. Thank you so much for the help! David