Boost logo

Boost-Build :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-14 11:43:32


I've enclosed previous messages from this thread for Jason's benefit.
Sorry to waste everyone else's bandwidth

----- Original Message -----
From: "hugo_duncan" <hugo_duncan_at_[hidden]>

> I am not too bothered whether we use incremental linking or not. I
would just like to be able to type:
>
> MSVC_ROOT = <path to msvc 7>
> jam -sTOOLS="msvc" > msvc7.log
> jam -sTOOLS="msvc" clean
>
> MSVC_ROOT = <path to msvc 6>
> jam -sTOOLS="msvc" > msvc6.log
>
> and have the msvc6 stuff compile with no remnants of the msvc7 build

Okay, but I want more than that. I'll be supplying a separate
vc7-tools.jam file which allows you to compile with both in one build
invocation.

I have another question (for Jason and anyone else who can answer):
suppose you have some libraries that you want to debug but which are
participating in several executables, in various combinations. How do
you deal with this? If every debuggable target (.exe, .dll) gets its own
.pdb file, is there some way to merge the .pdbs from the intermediate
(.lib) targets into the result?

-Dave

 ------=_NextPart_000_00FF_01C1CB4D.77F108D0 Content-Type: message/rfc822;
name="Re_ [jamboost] PDB problems with MSVC 6_7.eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Re_ [jamboost] PDB problems with MSVC 6_7.eml"

Reply-To: "David Abrahams" <david.abrahams_at_[hidden]>
From: "David Abrahams" <david.abrahams_at_[hidden]>
To: <jamboost_at_[hidden]>
References: <a6qae1+f3en_at_[hidden]>
Subject: Re: [jamboost] PDB problems with MSVC 6/7
Date: Thu, 14 Mar 2002 10:52:51 -0500
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Actually, I could use a little more help from someone with VC expertise.

* Given the information below, what approach would be best for boost?
* I'm trying to get a picture of what happens: When using -Zi or -ZI, is
it expected that there's a single .pdb file used for all of the object
files? Is that the same one that gets generated by the linker (IOW, is
this a process of incremental updates to a single file?)

I am willing to add new properties to Boost.Build if we're convinced
it's the right thing to do. For example, we might want a <mode>user or
<mode>developer setting where the latter favors incremental rebuilds.

Thanks,
Dave

----- Original Message -----
From: "Jason Shirk" <jasonsh_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, February 26, 2002 6:41 PM
Subject: RE: [boost] Jam and PDB files

> Multiple tools produce a PDB file. The compiler will produce one when
> the switch -Zi or -ZI is used.
>
> The linker will produce a PDB if the /debug switch is used, regardless
> of whether the compiler generated a PDB, /Z7 was used, or no debug
info
> was generated.
>
> The librarian (lib.exe) does not produce a PDB, so the compiler
> generated PDB must be available when invoking the linker and including
> the lib.
>
> Ideally, the compiler generated PDB and linker generated PDB should be
> the same file, but it isn't a big deal if that's not possible. Just
> make sure you the linker generated PDB is available while debugging.
>
> Compiling w/ /Z7 isn't good or bad necessarily. It avoids the PDB
until
> link time, which is good. It is faster for full builds, but slower
for
> incremental builds. Also, it would be possible to have MP builds if
you
> use /Z7, but not w/ /Zi or /ZI since the PDB interface does not
support
> multiple writers.
>
> Jason Shirk
> VC++ Compiler Team

----- Original Message -----
From: "hugo_duncan" <hugo_duncan_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Thursday, March 14, 2002 9:00 AM
Subject: [jamboost] PDB problems with MSVC 6/7

> Hi,
>
> I am building a project with boost.build and want to build with both
msvc6 and msvc7.
>
> At present I am having problems when linking, as the pdb files are
incompatable between the versions.
>
> The simplest way around this would probably have clean remove the pdb
files. I seem unable to implement this though (I have tried various
things in msvc-tools.jam, but none seem to work for me). I notice that
the CMD files are also not removed by clean.
>
> Can anyone give me pointers on how to clean the pdb files ?
>
> I guess another way would be to have a "clean" target that removed the
directory tree for the specified build altogether.
>
> Hugo
>
>
> ------------------------ Yahoo! Groups
Sponsor ---------------------~-->
> Tiny Wireless Camera under $80!
> Order Now! FREE VCR Commander!
> Click Here - Only 1 Day Left!
> http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/z3wwlB/TM
> ---------------------------------------------------------------------~
->
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
 ------=_NextPart_000_00FF_01C1CB4D.77F108D0 Content-Type: message/rfc822;
name="Re_ [jamboost] PDB problems with MSVC 6_7 (1).eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Re_ [jamboost] PDB problems with MSVC 6_7 (1).eml"

Reply-To: "David Abrahams" <david.abrahams_at_[hidden]>
From: "David Abrahams" <david.abrahams_at_[hidden]>
To: <jamboost_at_[hidden]>
References: <a6qae1+f3en_at_[hidden]>
Subject: Re: [jamboost] PDB problems with MSVC 6/7
Date: Thu, 14 Mar 2002 09:34:52 -0500
MIME-Version: 1.0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I am going to get the same configuration set up for myself today. The
right solution would be to have msvc generate the .pdb in the same
subdirectory as the objects and other generated targets. I will make
some changes and let you know when I've checked them in.

-Dave

----- Original Message -----
From: "hugo_duncan" <hugo_duncan_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Thursday, March 14, 2002 9:00 AM
Subject: [jamboost] PDB problems with MSVC 6/7

> Hi,
>
> I am building a project with boost.build and want to build with both
msvc6 and msvc7.
>
> At present I am having problems when linking, as the pdb files are
incompatable between the versions.
>
> The simplest way around this would probably have clean remove the pdb
files. I seem unable to implement this though (I have tried various
things in msvc-tools.jam, but none seem to work for me). I notice that
the CMD files are also not removed by clean.
>
> Can anyone give me pointers on how to clean the pdb files ?
>
> I guess another way would be to have a "clean" target that removed the
directory tree for the specified build altogether.
>
> Hugo
>
>
> ------------------------ Yahoo! Groups
Sponsor ---------------------~-->
> Tiny Wireless Camera under $80!
> Order Now! FREE VCR Commander!
> Click Here - Only 1 Day Left!
> http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/z3wwlB/TM
> ---------------------------------------------------------------------~
->
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
 ------=_NextPart_000_00FF_01C1CB4D.77F108D0--


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