Quantcast

specifying architecture when building bjam.exe (on Windows)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
Hi,

how can I specify the machine-type when building bjam.exe on Windows ?
I'm running `build.bat --with-python=...` which results in "fatal error
LINK1112: module machine type 'x64' conflicts with target machine type
'X86'", presumably because the default machine type differs from the
one  of my Python installation.

Thanks,

        Stefan


--

      ...ich hab' noch einen Koffer in Berlin...

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

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
Hi Stefan,

Am Freitag, 10. Februar 2017, 09:41:00 CET schrieb Stefan Seefeld via Boost-
build:

> how can I specify the machine-type when building bjam.exe on Windows ?

I don't know if you can do that.

> I'm running `build.bat --with-python=...` which results in "fatal error
> LINK1112: module machine type 'x64' conflicts with target machine type
> 'X86'", presumably because the default machine type differs from the
> one  of my Python installation.

This looks like you have a 64-bit Python install on that machine. Try adding
"address-model=64" to your Boost.Build command line.

Note that this error usually occurs when linking the libraries, not when
building b2.exe. Please provide some more context next time.

Yours,

Jürgen
--
* Dipl.-Math. Jürgen Hunold  !
* voice: ++49 4257 300       ! Fährstraße 1
* fax  : ++49 4257 300       ! 31609 Balge/Sebbenhausen
* [hidden email]             ! Germany
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
On 10.02.2017 13:59, Jürgen Hunold via Boost-build wrote:

> Hi Stefan,
>
> Am Freitag, 10. Februar 2017, 09:41:00 CET schrieb Stefan Seefeld via Boost-
> build:
>
>> how can I specify the machine-type when building bjam.exe on Windows ?
> I don't know if you can do that.
>
>> I'm running `build.bat --with-python=...` which results in "fatal error
>> LINK1112: module machine type 'x64' conflicts with target machine type
>> 'X86'", presumably because the default machine type differs from the
>> one  of my Python installation.
> This looks like you have a 64-bit Python install on that machine. Try adding
> "address-model=64" to your Boost.Build command line.
>
> Note that this error usually occurs when linking the libraries, not when
> building b2.exe. Please provide some more context next time.


I'm building b2 with builtin Python support (to experiment with a new
Python frontend). So far I have done that only on Linux, now I want to
start experimenting on Windows, too. Neither `build.bat
--with-python=... address-model=64`  nor `buid.bat --with-python=...
--address-model=64` works.

Thanks,
        Stefan

--

      ...ich hab' noch einen Koffer in Berlin...

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

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
On 10.02.2017 14:09, Stefan Seefeld wrote:
> On 10.02.2017 13:59, Jürgen Hunold via Boost-build wrote:
>> Hi Stefan,
>>
>> Am Freitag, 10. Februar 2017, 09:41:00 CET schrieb Stefan Seefeld via Boost-
>> build:
>>
>>> how can I specify the machine-type when building bjam.exe on Windows ?
>> I don't know if you can do that.

I worked around this limitation by installing a 32-bit version of
Python. Unfortunately I don't understand enough of the bootstrapping
build logic to add the missing flags to support 64-bit builds on Windows
for b2.

Thanks,
        Stefan


--

      ...ich hab' noch einen Koffer in Berlin...

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

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list

On 10 February 2017 at 19:38, Stefan Seefeld via Boost-build <[hidden email]> wrote:
I worked around this limitation by installing a 32-bit version of
Python. Unfortunately I don't understand enough of the bootstrapping
build logic to add the missing flags to support 64-bit builds on Windows
for b2.

​Stefan,

I don't know about your personal case, however this is my boost-command-line that works with the 64bit python.
b2 toolset=msvc-14.0 address-model=64 variant=debug,release threading=multi link=static --with-date_time --with-thread --with-system --with-chrono --with-atomic --with-python --with-filesystem stage​

​Obviously I have other libraries built, and use visual studio 2013 - However this works for me. If you continue to have errors It may well be your python install at fault.​


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

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
On 10.02.2017 16:11, PJB via Boost-build wrote:

>
> On 10 February 2017 at 19:38, Stefan Seefeld via Boost-build
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     I worked around this limitation by installing a 32-bit version of
>     Python. Unfortunately I don't understand enough of the bootstrapping
>     build logic to add the missing flags to support 64-bit builds on
>     Windows
>     for b2.
>
>
> ​Stefan,
>
> I don't know about your personal case, however this is my
> boost-command-line that works with the 64bit python.
> b2 toolset=msvc-14.0 address-model=64 variant=debug,release
> threading=multi link=static --with-date_time --with-thread
> --with-system --with-chrono --with-atomic --with-python
> --with-filesystem stage​

I'm not trying to build boost libraries. I'm trying to build b2 itself.

        Stefan

--

      ...ich hab' noch einen Koffer in Berlin...

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

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
Oh, my apologies then. For me simply running bootstrap.bat has always succeeded.

On 11 February 2017 at 07:01, Stefan Seefeld via Boost-build <[hidden email]> wrote:
On 10.02.2017 16:11, PJB via Boost-build wrote:
>
> On 10 February 2017 at 19:38, Stefan Seefeld via Boost-build
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     I worked around this limitation by installing a 32-bit version of
>     Python. Unfortunately I don't understand enough of the bootstrapping
>     build logic to add the missing flags to support 64-bit builds on
>     Windows
>     for b2.
>
>
> ​Stefan,
>
> I don't know about your personal case, however this is my
> boost-command-line that works with the 64bit python.
> b2 toolset=msvc-14.0 address-model=64 variant=debug,release
> threading=multi link=static --with-date_time --with-thread
> --with-system --with-chrono --with-atomic --with-python
> --with-filesystem stage​

I'm not trying to build boost libraries. I'm trying to build b2 itself.

        Stefan

--

      ...ich hab' noch einen Koffer in Berlin...

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


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

Re: specifying architecture when building bjam.exe (on Windows)

Boost - Build mailing list
In reply to this post by Boost - Build mailing list
Following up on my own post, to record the answer for posterity:

On 10.02.2017 14:09, Stefan Seefeld wrote:
> On 10.02.2017 13:59, Jürgen Hunold via Boost-build wrote:
>> Hi Stefan,
>>
>> Am Freitag, 10. Februar 2017, 09:41:00 CET schrieb Stefan Seefeld via Boost-
>> build:
>>
>>> how can I specify the machine-type when building bjam.exe on Windows ?
>> I don't know if you can do that.

 `build.bat vc14 x64` did the trick, i.e. if the first argument is the
toolchain name, the second can be an architecture flag that's passed
down to the `vcvarsall.bat` setup script invocation.

        Stefan

--

      ...ich hab' noch einen Koffer in Berlin...

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