public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Shrader, David Lee" <dshrader@lanl.gov>
To: gcc-help <gcc-help@gcc.gnu.org>
Subject: when building openmp offloading, do invocations have to have matching '--enable-languages'?
Date: Tue, 28 Apr 2020 00:19:48 +0000	[thread overview]
Message-ID: <e00b30b9658842a2a66658114fdbd083@lanl.gov> (raw)

Hello,


When building an OpenMP offload-capable GCC, I understand there are two invocations of GCC's configure: one for building the offload compiler, and another for the host compiler. Is it ok to have the list given to '--enable-languages' not match between the invocations? Specifically, can additional languages be given to the host compiler invocation and they work as expected? For example, since OpenMP offload only works for c, c++, and fortran (according to the OpenMP wiki page), can the offload compiler configure invocation use '--enable-languages=c,c++,fortran' and the host compiler configure use '--enable-languages=c,c++,fortran,go,java' and the go and java compilers 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

                 reply	other threads:[~2020-04-28  0:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e00b30b9658842a2a66658114fdbd083@lanl.gov \
    --to=dshrader@lanl.gov \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).