Igor Zavoychinskiy | 6 Feb 21:59
Picon

Building sgd library versions

Hello there,

Not sure if I'm writing to the correct place. Please feel free to correct me and point the right one.

Building boost 1.48 on Win7 for MSVC.2008 I discover a strange behavior: sgd versions are not get built if you request them explicitly. When I specify the following command:
b2.exe --stagedir=./ --build-dir=/tmp --toolset=msvc-9.0 threading=multi --link=static --runtime-link=static --with-thread

I expect to get the following libraries:
libboost_thread-vc90-mt-s-1_48.lib
libboost_thread-vc90-mt-sgd-1_48.lib

But in fact I get:
libboost_thread-vc90-mt-1_48.lib
libboost_thread-vc90-mt-gd-1_48.lib

Setting "--runtime-link=shared" results in the exactly the same set of output libraries which makes me believe this flag is just ignored.

I know the workaround and here is it:
b2.exe --stagedir=./ --build-dir=/tmp --toolset=msvc-9.0 --with-thread --build-type=complete

This way I get all the libraries built including the sgd versions. Though, I'd say this workaround is kind of expensive. Especially for continues build systems.

- Igor
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Jürgen Hunold | 7 Feb 11:49
Picon

Re: Building sgd library versions

Hi Igor,

On Monday, 6. February 2012 21:59:19 Igor Zavoychinskiy wrote:
> Hello there,
> 
> Not sure if I'm writing to the correct place. Please feel free to correct me
> and point the right one.

Yes your are right-

> Building boost 1.48 on Win7 for MSVC.2008 I discover a strange behavior: sgd
> versions are not get built if you request them explicitly. When I specify
> the following command: b2.exe --stagedir=./ --build-dir=/tmp
> --toolset=msvc-9.0 threading=multi --link=static --runtime-link=static
> --with-thread
> 
> I expect to get the following libraries:
> libboost_thread-vc90-mt-s-1_48.lib
> libboost_thread-vc90-mt-sgd-1_48.lib
> 
> But in fact I get:
> libboost_thread-vc90-mt-1_48.lib
> libboost_thread-vc90-mt-gd-1_48.lib

This is expected. You have way too much "--" in your options ;-))

That should be 
"toolset=msvc-9.0 threading=multi link=static runtime-link=static"

for b2 options.

> Setting "--runtime-link=shared" results in the exactly the same set of
> output libraries which makes me believe this flag is just ignored.

Yes, because "runtime-link=shared" is the correct value.

> I know the workaround and here is it:
> b2.exe --stagedir=./ --build-dir=/tmp --toolset=msvc-9.0 --with-thread
> --build-type=complete

even her "--toolset" is wrong and just working because you have only Visual 
Studio 2008 installed.

> This way I get all the libraries built including the sgd versions. Though,
> I'd say this workaround is kind of expensive. Especially for continues
> build systems.

Definetely.

Hope this helps.

Yours, 

Jürgen
--

-- 
Dipl.-Math. Jürgen Hunold       | IVE mbH
Software-Entwickler             | Lützerodestraße 10 
Tel: +49 511 897668 33          | 30161 Hannover, Germany
Fax: +49 511 897668 29          | http://www.ivembh.de
juergen.hunold <at> ivembh.de        | 
                                | Geschäftsführer:
Sitz des Unternehmens: Hannover | Univ.-Prof. Dr.-Ing. Thomas Siefer               
Amtsgericht Hannover, HRB 56965 | PD Dr.-Ing. Alfons Radtke  

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

Igor Zavoychinskiy | 8 Feb 05:04
Picon

Re: Building sgd library versions

My bad, I mistaken "--" flags and these switches.

Thanks a lot!

2012/2/7 Jürgen Hunold <juergen.hunold <at> ivembh.de>
Hi Igor,

On Monday, 6. February 2012 21:59:19 Igor Zavoychinskiy wrote:
> Hello there,
>
> Not sure if I'm writing to the correct place. Please feel free to correct me
> and point the right one.

Yes your are right-

> Building boost 1.48 on Win7 for MSVC.2008 I discover a strange behavior: sgd
> versions are not get built if you request them explicitly. When I specify
> the following command: b2.exe --stagedir=./ --build-dir=/tmp
> --toolset=msvc-9.0 threading=multi --link=static --runtime-link=static
> --with-thread
>
> I expect to get the following libraries:
> libboost_thread-vc90-mt-s-1_48.lib
> libboost_thread-vc90-mt-sgd-1_48.lib
>
> But in fact I get:
> libboost_thread-vc90-mt-1_48.lib
> libboost_thread-vc90-mt-gd-1_48.lib

This is expected. You have way too much "--" in your options ;-))

That should be
"toolset=msvc-9.0 threading=multi link=static runtime-link=static"

for b2 options.

> Setting "--runtime-link=shared" results in the exactly the same set of
> output libraries which makes me believe this flag is just ignored.

Yes, because "runtime-link=shared" is the correct value.

> I know the workaround and here is it:
> b2.exe --stagedir=./ --build-dir=/tmp --toolset=msvc-9.0 --with-thread
> --build-type=complete

even her "--toolset" is wrong and just working because you have only Visual
Studio 2008 installed.

> This way I get all the libraries built including the sgd versions. Though,
> I'd say this workaround is kind of expensive. Especially for continues
> build systems.

Definetely.

Hope this helps.

Yours,

Jürgen
--
Dipl.-Math. Jürgen Hunold       | IVE mbH
Software-Entwickler             | Lützerodestraße 10
Tel: +49 511 897668 33          | 30161 Hannover, Germany
Fax: +49 511 897668 29          | http://www.ivembh.de
juergen.hunold <at> ivembh.de        |
                               | Geschäftsführer:
Sitz des Unternehmens: Hannover | Univ.-Prof. Dr.-Ing. Thomas Siefer
Amtsgericht Hannover, HRB 56965 | PD Dr.-Ing. Alfons Radtke

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Hans-Peter Küchler | 26 Feb 05:39
Picon

Re: Building sgd library versions


Am 07.02.2012 11:49, schrieb Jürgen Hunold:
> Hi Igor,
> ...
> That should be
> "toolset=msvc-9.0 threading=multi link=static runtime-link=static"

But something goes wrong even if there are the properties without --. If 
I build with the following command:

.\bjam -q -sICU_PATH=c:\lib\icu toolset=msvc threading=multi link=static 
runtime-link=static --with-locale --with-regex stage

then I expect 4 libraries:

libboost_locale-vc90-mt-s-1_49.lib
libboost_locale-vc90-mt-sgd-1_49.lib
libboost_regex-vc90-mt-s-1_49.lib
libboost_regex-vc90-mt-sgd-1_49.lib

But I get 6 libraries:

libboost_locale-vc90-mt-1_49.lib
libboost_locale-vc90-mt-gd-1_49.lib
libboost_regex-vc90-mt-s-1_49.lib
libboost_regex-vc90-mt-sgd-1_49.lib
libboost_thread-vc90-mt-1_49.lib
libboost_thread-vc90-mt-gd-1_49.lib

thread is unexpected and locale ist not the requested type.

Regards, Hans-Peter

>
> for b2 options.
> ...
> Hope this helps.
>
> Yours,
>
> Jürgen

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


Gmane