Boost logo

Boost-Build :

From: Michael Ellenberger (mellenbe_at_[hidden])
Date: 2004-06-15 11:23:55


The confusion over the V1 and V2 Boost.Build has been extremely frustrating.
Once I found the V2 manuals I was able to make some progress.

Building the example hello I did the following,

In the boost-build directory file user-config.jam was updated

using gcc;

using gcc : 3.3.3 g++ /usr/local/gcc/3.3.3/bin;

This seems to get me the compiler I want to use for the build. Can I assume
this is a V2 file? When I build boost will this file be used?

Then on the command line using V2 syntax in example/hello,

bjam cflags="-m64" linkflags="-m64"

This builds me an ELF64 executable.

Now if I want to build boost and would like to set up a configuration file.
I'm not sure what its name would be or what directory it would be placed in.

Some of what we need to set is as follows,

bjam --prefix="~/boost-stl/local/boost_1_31_0" -sTOOLS="gcc-stlport"
-sBUILD="<t

hreading>multi <stlport-iostream>on <runtime-link>dynamic release debug"
-sSTLPO

RT_4.6.1_PATH=~/boost-stl/local -sSTLPORT_VERSION=4.6.1
STLPORT_LIB_DIRECTORY=li

b -sSTLPORT_INCLUDE_DIRECTORY=include/stlport install

I don't know if this is V1 or V2 syntax! I'd like to have this information
in a configuration file and not the command line.

Thanks,

Mike

-----Original Message-----
From: Vladimir Prus [mailto:ghost_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Tuesday, June 15, 2004 12:16 AM
To: jamboost_at_[hidden]
Subject: Re: [jamboost] Configuring 64 bit builds on solaris

mellenbe2004 wrote:
> I'm new to bjam.
>
> Are there configuration files or makefiles to setup options for 64
> bit builds?

Hi,
I'm afraid you did not provide enough information. What compiler are you
using
-- gcc or sun? What Boost.Build version do you use, V1 or V2?

For gcc and V1, you *probably* can try

bjam -sBUILD="<address-model>64"

which will add -m64 option. I say probably, because it's a wild guess, I
don't
know what that option does and what you really want.

In all other cases, could you tell us what options for which compiler you
want. This might be a small enough change to be done quickly.

And in the meantime, you can always use <cxxflags> feature to pass whatever
flags you want.

- Volodya

Yahoo! Groups Sponsor

ADVERTISEMENT

<http://us.ard.yahoo.com/SIG=129uncgd5/M=298184.5022502.6152625.3001176/D=gr
oups/S=1707281907:HM/EXP=1087370204/A=2164331/R=0/SIG=11eaelai9/*http:/www.n
etflix.com/Default?mqso=60183351> click here

<http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=groups/S=
:HM/A=2164331/rand=626110012>

_____

Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/jamboost/
<http://groups.yahoo.com/group/jamboost/>

* To unsubscribe from this group, send an email to:
jamboost-unsubscribe_at_[hidden]
<mailto:jamboost-unsubscribe_at_[hidden]?subject=Unsubscribe>

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .

 ------_=_NextPart_001_01C452F1.EDF34A1A Content-Type: text/html

<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">

<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoToc1, li.MsoToc1, div.MsoToc1
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
tt
{font-family:"Courier New";}
span.EmailStyle19
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
/* List Definitions */
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The confusion over the V1 and V2 Boost.Build
has been extremely frustrating.&nbsp; Once I found the V2 manuals I was able to make
some progress.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Building the example hello I did the
following,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In the boost-build directory file
user-config.jam was updated </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp; using gcc;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp; using gcc : 3.3.3 g++
/usr/local/gcc/3.3.3/bin;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This seems to get me the compiler I want
to use for the build.&nbsp; Can I assume this is a V2 file?&nbsp; When I build boost will
this file be used?</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Then on the command line using V2 syntax
in example/hello, &nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>bjam cflags="-m64" linkflags="-m64"</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This builds me an ELF64 executable.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Now if I want to build boost and would
like to set up a configuration file.&nbsp; I'm not sure what its name would be
or what directory it would be placed in.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Some of what we need to set is as follows,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>bjam
--prefix=&quot;~/boost-stl/local/boost_1_31_0&quot;
-sTOOLS=&quot;gcc-stlport&quot; -sBUILD=&quot;&lt;t</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>hreading&gt;multi
&lt;stlport-iostream&gt;on &lt;runtime-link&gt;dynamic release debug&quot;
-sSTLPO</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>RT_4.6.1_PATH=~/boost-stl/local
-sSTLPORT_VERSION=4.6.1 STLPORT_LIB_DIRECTORY=li</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>b
-sSTLPORT_INCLUDE_DIRECTORY=include/stlport install</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I don't know if this is V1 or V2
syntax!&nbsp; I'd like to have this information in a configuration file and
not the command line.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Mike</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Vladimir Prus
[mailto:ghost_at_[hidden]] <b><span style='font-weight:bold'>On Behalf Of </span></b>Vladimir
Prus<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, June 15, 2004 12:16
AM<br>
<b><span style='font-weight:bold'>To:</span></b> jamboost_at_[hidden]<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [jamboost]
Configuring 64 bit builds on solaris</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

<p class=MsoNormal><tt><font size=2 face="Courier New"><span style='font-size:
10.0pt'>mellenbe2004 wrote:</span></font></tt><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">&gt; I'm new to bjam.</font></tt><br>
<tt><font face="Courier New">&gt;</font></tt><br>
<tt><font face="Courier New">&gt; Are there configuration files or makefiles to
setup options for 64</font></tt><br>
<tt><font face="Courier New">&gt; bit builds?</font></tt><br>
<br>
<tt><font face="Courier New">Hi,</font></tt><br>
<tt><font face="Courier New">I'm afraid you did not provide enough information.
What compiler are you using </font></tt><br>
<tt><font face="Courier New">-- gcc or sun? What Boost.Build version do you
use, V1 or V2?</font></tt><br>
<br>
<tt><font face="Courier New">For gcc and V1, you *probably* can try</font></tt><br>
<br>
<tt><font face="Courier New">&nbsp;&nbsp; bjam
-sBUILD=&quot;&lt;address-model&gt;64&quot;</font></tt><br>
<br>
<tt><font face="Courier New">which will add -m64 option. I say probably,
because it's a wild guess, I don't </font></tt><br>
<tt><font face="Courier New">know what that option does and what you really
want.</font></tt><br>
<br>
<tt><font face="Courier New">In all other cases, could you tell us what options
for which compiler you </font></tt><br>
<tt><font face="Courier New">want. This might be a small enough change to be
done quickly.</font></tt><br>
<br>
<tt><font face="Courier New">And in the meantime, you can always use
&lt;cxxflags&gt; feature to pass whatever </font></tt><br>
<tt><font face="Courier New">flags you want.</font></tt><br>
<br>
<tt><font face="Courier New">- Volodya</font></tt><br>
</span></font><br>
<br>
</p>

</body>

</html>
 ------_=_NextPart_001_01C452F1.EDF34A1A--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk