Thanks.  In half an hour I'll know how this works (my RISC-V system is
quite slow).

For others who stumble on this thread, it is "-C" not "-c".

Jeff

On Tue, Sep 7, 2021 at 3:35 PM Gilles Gouaillardet via users <
users@lists.open-mpi.org> wrote:

> Hi Jeff,
>
>
> Here is a sample file I used some times ago (some definitions might be
> missing though ...)
>
>
> In order to automatically generate this file - this is a bit of an egg
> and the chicken problem -
>
> you can run
>
> configure -c
>
> on the RISC-V node. It will generate a config.cache file.
>
> Then you can
>
> grep ^ompi_cv_fortran_ config.cache
>
> to generate the file you can pass to --with-cross when cross compiling
> on your x86 system
>
>
> Cheers,
>
>
> Gilles
>
>
> On 9/7/2021 7:35 PM, Jeff Hammond via users wrote:
> > I am attempting to cross-compile Open-MPI for RISC-V on an x86
> > system.  I get this error, with which I have some familiarity:
> >
> > checking size of Fortran CHARACTER... configure: error: Can not
> > determine size of CHARACTER when cross-compiling
> >
> > I know that I need to specify the size explicitly using a
> > cross-compilation file.  According to configure, this is documented.
> >
> > --with-cross=FILE       Specify configure values that can not be
> > determined in a cross-compilation environment. See the Open MPI FAQ.
> >
> > Where is this documented?
> > https://www.open-mpi.org/faq/?category=building
> > <https://www.open-mpi.org/faq/?category=building> contains nothing
> > relevant.
> >
> > Thanks,
> >
> > Jeff
> >
> > --
> > Jeff Hammond
> > jeff.scie...@gmail.com <mailto:jeff.scie...@gmail.com>
> > http://jeffhammond.github.io/ <http://jeffhammond.github.io/>
>


-- 
Jeff Hammond
jeff.scie...@gmail.com
http://jeffhammond.github.io/

Reply via email to