cross-compiling 1.58 for arm64

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

cross-compiling 1.58 for arm64

Boost - Build mailing list
I am cross-compiling 1.58 for 64-bit ARM. I have done this before (with some help - http://boost.2283326.n4.nabble.com/Help-with-building-boost-for-ARM-td4703570.html). This time, I am unable to follow my own notes or the docs on cross-compilation.

with:
using gcc : arm : aarch64-linux-gnu-g++ ;

And compile with:
./bootstrap.sh
./b2 -q --without-context --without-coroutine -s NO_BZIP2=1 toolset=gcc architecture=arm address-model=64

This produces an x86 build (it used to produce an arm build on a different machine, and I don't know what's changed).

If I try toolset=gcc-arm, I get:
.../boost_1_58_0/tools/build/src/tools/gcc.jam:121: in gcc.init from module gcc
error: toolset gcc initialization:
error: version 'arm' requested, but 'g++-arm' not found and version '5.4.0' of default 'g++' does not match



Sent with ProtonMail Secure Email.


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: cross-compiling 1.58 for arm64

Boost - Build mailing list
Oh, ok, placing the "using gcc" stuff inside project-config.jam solved the issue. I guess 1.58 doesn't support user-config.jam yet?


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, February 25, 2019 4:46 PM, dbegun <[hidden email]> wrote:

I am cross-compiling 1.58 for 64-bit ARM. I have done this before (with some help - http://boost.2283326.n4.nabble.com/Help-with-building-boost-for-ARM-td4703570.html). This time, I am unable to follow my own notes or the docs on cross-compilation.

with:
using gcc : arm : aarch64-linux-gnu-g++ ;

And compile with:
./bootstrap.sh
./b2 -q --without-context --without-coroutine -s NO_BZIP2=1 toolset=gcc architecture=arm address-model=64

This produces an x86 build (it used to produce an arm build on a different machine, and I don't know what's changed).

If I try toolset=gcc-arm, I get:
.../boost_1_58_0/tools/build/src/tools/gcc.jam:121: in gcc.init from module gcc
error: toolset gcc initialization:
error: version 'arm' requested, but 'g++-arm' not found and version '5.4.0' of default 'g++' does not match



Sent with ProtonMail Secure Email.



_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: cross-compiling 1.58 for arm64

Boost - Build mailing list
AMDG

On 2/25/19 8:24 AM, dbegun via Boost-build wrote:
> Oh, ok, placing the "using gcc" stuff inside project-config.jam solved the issue. I guess 1.58 doesn't support user-config.jam yet?
>

user-config.jam has always been supported.
(Long before project-config.jam).  Did you
make sure that it was in the right location?

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: cross-compiling 1.58 for arm64

Boost - Build mailing list
Yeah, my bad, I was placing user-config.jam in the same directory as project-config.jam rather than in $HOME or $BOOST_BUILD_PATH as documented. Thanks.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, February 28, 2019 10:28 PM, Steven Watanabe via Boost-build <[hidden email]> wrote:

> AMDG
>
> On 2/25/19 8:24 AM, dbegun via Boost-build wrote:
>
> > Oh, ok, placing the "using gcc" stuff inside project-config.jam solved the issue. I guess 1.58 doesn't support user-config.jam yet?
>
> user-config.jam has always been supported.
> (Long before project-config.jam). Did you
> make sure that it was in the right location?
>
> In Christ,
> Steven Watanabe
>
> Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build