List Info

Thread: Deafults to multithreading and 64-bit




Deafults to multithreading and 64-bit
country flaguser name
Australia
2007-02-26 10:48:22
Hi,
 The build for HP-UX defaults to
"<threading>multi" and "64-bit" in

RC_1_34_0/tools/build/v2/tools/acc.jam i.e. "-mt"
and "+DD64" flags are hard 
coded.
 1.actions acc.link bind NEEDLIBS
 2.actions acc.link.dll bind NEEDLIBS
 3.actions acc.compile.c
 4.actions acc.compile.c++

 Is this by design ? 

Regards,
Prashant Thakre

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

Re: Defaults to multithreading and 64-bit
country flaguser name
India
2007-02-27 05:32:57
Vladimir Prus <ghost <at> cs.msu.su> writes:
> 
> I believe that's how it was in Boost.Build V1. I have
no experience with HP-
UX,
> and therefore have no idea what should be hardcoded,
what is sensible default
> and what should be customizable via features.

 acc-tools.jam included with [Boost].[1_33_1] doesn't have
"+DD64" and "-mt" as 
part of aCC-Link-action{} and actions aCC-C++-action{} by
default. 

 I was able to build 32/64-bit (single/multi threaded)
binaries for 
[Boost].[1_33_1] by 
 adding following options to acc-tools.jam:-
 ---------------------------------Cut here
-------------------------------------
  # architecture/instruction-set/address-model options
 .ARCH = <architecture>ia64 <architecture>native
;
 flags acc CFLAGS $(.ARCH)/<instruction-set>default :
+DSnative ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>blended :
+DSblended ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>itanium :
+DSitanium ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>itanium2 :
+DSitanium2 ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>mckinley :
+DSitanium2 ;
 flags acc CFLAGS $(.ARCH)/<instruction-set>montecito
: +DSmontecito;
 flags acc CFLAGS $(.ARCH)/<address-model>default :
+DD64 ;
 flags acc CFLAGS $(.ARCH)/<address-model>32 : +DD32
;
 flags acc CFLAGS $(.ARCH)/<address-model>64 : +DD64
;
 flags acc LINKFLAGS $(.ARCH)/<address-model>default :
+DD64 ;
 flags acc LINKFLAGS $(.ARCH)/<address-model>32 :
+DD32 ;
 flags acc LINKFLAGS $(.ARCH)/<address-model>64 :
+DD64 ;
 ---------------------------------Cut here
-------------------------------------

 However, the above mentioned method hasn't worked for
bjam.v2 on hp-ux(ia64).
 bjam install --variant=release --without-python
--toolset=acc 
 --prefix="$HOME/RC_1_34_0" --builddir=/tmp
--optimization=full 
 --threading=single/multi --runtime-link=shared,static 
 --architechture=ia64 --instruction-set=itanium2
--address-model=64  
1>>build.log 2>>build.log
 
 I guess bjam.v2 can default to 64-bit build for
hp-ux(ia64), but should also 
provide an option for 32-bit build. 
 Since <threading>multi: -mt; is already present as an
option in acc.jam, "-mt" 
option should be removed from all actions rules {} i.e.
compile and link.
 
 Btw, is "flags acc CFLAGS" equivalent to
"flags.acc.compile OPTIONS" ?

 Please let me know if I should try out something else to
achieve this with 
bjam.v2.

>
> - Volodya

Regards,
Prashant Thakre


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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )