Help with building boost for ARM

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

Help with building boost for ARM

Boost - Build mailing list
I need to build some of the boost libraries for ARM. I followed the instructions here: https://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html and I get the following error when running "b2 --toolset=gcc":

aarch64-linux-gnu-g++: error: unrecognized command line option ‘-m64’

If it means anything, before the error I get:

Performing configuration checks

    - 32-bit                   : no  (cached)
    - 64-bit                   : yes (cached)
    - arm                      : no  (cached) // is this right?

And 
Building the Boost C++ Libraries.
...
    - x86                      : no  (cached)
    - arm                      : no  (cached) // ?

My project-config.jam has:
using gcc : arm : aarch64-linux-gnu-g++ ; // also tried arm64, aarch64-linux-gnu-gcc

Any help appreciated.


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: Help with building boost for ARM

Boost - Build mailing list
AMDG

On 06/29/2018 08:42 AM, dbegun via Boost-build wrote:
> I need to build some of the boost libraries for ARM. I followed the instructions here: https://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html and I get the following error when running "b2 --toolset=gcc":
>

  Boost 1.58 is too old and cannot auto-detect arm64.
Try updating to a more recent version or pass architecture=arm
explicitly.

> aarch64-linux-gnu-g++: error: unrecognized command line option ‘-m64’
>
> If it means anything, before the error I get:
> Performing configuration checks
>
>     - 32-bit                   : no  (cached)
>     - 64-bit                   : yes (cached)
>     - arm                      : no  (cached) // is this right?
>
> And
> Building the Boost C++ Libraries.
> ...
>     - x86                      : no  (cached)
>     - arm                      : no  (cached) // ?
> > My project-config.jam has:
> using gcc : arm : aarch64-linux-gnu-g++ ; // also tried arm64, aarch64-linux-gnu-gcc
>

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: Help with building boost for ARM

Boost - Build mailing list
Thank you, this worked. A few errors down the road, and with some help from https://github.com/moritz-wundke/Boost-for-Android/issues/81 it seems to be compiling.


​Sent with ProtonMail Secure Email.​

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On June 29, 2018 6:21 PM, Steven Watanabe via Boost-build <[hidden email]> wrote:

> AMDG
>
> On 06/29/2018 08:42 AM, dbegun via Boost-build wrote:
>
> > I need to build some of the boost libraries for ARM. I followed the instructions here: https://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html and I get the following error when running "b2 --toolset=gcc":
>
> Boost 1.58 is too old and cannot auto-detect arm64.
>
> Try updating to a more recent version or pass architecture=arm
>
> explicitly.
>
> > aarch64-linux-gnu-g++: error: unrecognized command line option ‘-m64’
> >
> > If it means anything, before the error I get:
> >
> > Performing configuration checks
> >
> >     - 32-bit                   : no  (cached)
> >     - 64-bit                   : yes (cached)
> >     - arm                      : no  (cached) // is this right?
> >    
> >
> > And
> >
> > Building the Boost C++ Libraries.
> >
> > ...
> >
> > - x86 : no (cached)
> >
> > - arm : no (cached) // ?
> >
> > > My project-config.jam has:
> > >
> > > using gcc : arm : aarch64-linux-gnu-g++ ; // also tried arm64, aarch64-linux-gnu-gcc
>
> 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