This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Offloading not relocatable
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: Bernd Schmidt <bernds at codesourcery dot com>, Kirill Yukhin <kirill dot yukhin at gmail dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Wed, 17 Sep 2014 18:43:36 +0200
- Subject: Re: Offloading not relocatable
- Authentication-results: sourceware.org; auth=none
- References: <20140917142141 dot GI17454 at tucnak dot redhat dot com> <20140917161125 dot GO17454 at tucnak dot redhat dot com> <20140917162218 dot GP17454 at tucnak dot redhat dot com> <5419B73A dot 4030506 at codesourcery dot com> <CADG=Z0FaYHg4_nm6nE5p9mHSXnALv-8C=4tKzAoK_knxMDRoAQ at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Sep 17, 2014 at 08:39:38PM +0400, Ilya Verbin wrote:
> 2014-09-17 20:30 GMT+04:00 Bernd Schmidt <bernds@codesourcery.com>:
> > That's also a solved problem in nvptx mkoffload - you do need to unset these
> > environment variables when invoking the target compiler. I've posted the
> > source a few times but here it is again.
>
> I see there:
> unsetenv ("GCC_EXEC_PREFIX");
> unsetenv ("COMPILER_PATH");
> unsetenv ("LIBRARY_PATH");
>
> Or do you mean, that there is no need to set them to the new values
> before invoking the target compiler?
If you are invoking the target compiler DRIVER (rather than compiler),
you should not have those in the environment, otherwise those env vars
will override where the target compiler driver would be looking for
the target compiler, libraries, headers etc.
Jakub