Re: Building a cross-compiler

2021-01-21 Thread Sébastien Hinderer
that what's wrong here is that > > autoconf expects CC to point to a C compiler that runs on the build > > system and produces code that runs on the host system and my > > definition of CC breaks this assumption. > > Yes, exactly. This is the Right Thing in the common case, e

Re: Building a cross-compiler

2021-01-21 Thread Zack Weinberg
> system and produces code that runs on the host system and my > definition of CC breaks this assumption. Yes, exactly. This is the Right Thing in the common case, even when you are cross-compiling, because the common case is that you're not building a cross-compiler at all (so --targ

Re: Building a cross-compiler

2021-01-21 Thread Sébastien Hinderer
Dear Nick, Many thanks for your response! Nick Bowler (2021/01/20 10:36 -0500): > One thing that might help you is to know that you can just add > cross_compiling=yes to the configure command line to force > configure into cross compilation mode. I didn't know that indeed! thanks! > If you only

Re: Building a cross-compiler

2021-01-20 Thread Nick Bowler
On 2021-01-20, Sébastien Hinderer wrote: > I am in charge of making cross-compilation possible for the OCaml > language, given that the compiler's build system uses autoconf. The > compiler is written in OCaml itself and has a runtime written in C. > > To start experimenting, I am trying to build

Building a cross-compiler

2021-01-20 Thread Sébastien Hinderer
Dear all, Sorry if what follows is unclear. I am writing because things are unclear in my brain and I am looking for help to clarify them. I am in charge of making cross-compilation possible for the OCaml language, given that the compiler's build system uses autoconf. The compiler is written in O