After a bit more digging around the make file, I did this:

 make PLATFORM=x86_64 x86_64_os=rumprun-netbsd bootstrap

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-rumprun-netbsd
checking whether we are cross compiling... yes

However, I am still seeing this error:

checking for vppapigen... no
configure: error: Externaly built vppapigen is needed when
cross-compiling...
Makefile:635: recipe for target 'tools-configure' failed
make[1]: *** [tools-configure] Error 1

What is the issue?

On Tue, Dec 5, 2017 at 3:55 PM, nikhil ap <niks3...@gmail.com> wrote:

> Hi All,
>
> I am trying to cross-compile vpp. The make doesn't expose a way to pass
> the --host parameter required to configure and build using cross
> compilation.
>
> Initially, I did the following:
>
> CC=x86_64-rumprun-netbsd-gcc make bootstrap, but I saw the following error
>
> *If you meant to cross compile, use `--host'.*
> *See `config.log' for more details*
>
> As a work-around based on the config.log, I did this following
>
> /src/configure (Stripped other output ) --build=x86_64-linux-gnu
> --host=x86_64-rumprun-netbsd --target=x86_64-linux-gnu
>
> However,  I saw the following error:
> checking for vppapigen... no
> configure: error: Externaly built vppapigen is needed when
> cross-compiling...
>
> Is there a way to cleanly cross-compile?
>
>
> --
> Regards,
> Nikhil
>



-- 
Regards,
Nikhil
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to