List Info

Thread: State of PCH/msvc




State of PCH/msvc
user name
2006-04-26 13:38:08
On Wednesday 26 April 2006 17:33, Phillip Seaver wrote:
> Felipe Magno de Almeida wrote:
> > On 4/26/06, Philip Craig <philippobox.com> wrote:
> >> Just to add my datapoint again.
> >>
> >> boost build can't be used for serious
projects in msvc++ until all of
> >> pch and -jn (where n > 1) and pdb are
working.
> >
> > What is the problem with -jn and pdb?
> > I'm using here -j2 and never had any problem
yet...
>
> Well, for a start, it doesn't generate .pdb's at the
moment.    The
> problem is that when compiling two files that use the
same .pdb, one
> locks the file and the other fails to compile when it
tries to open the
> locked .pdb for writing.

And what are possible solution, other then serializing
compile actions?

- Volodya

-- 
Vladimir Prus
http://vladimir_pru
s.blogspot.com
Boost.Build V2: http://boost.org/boost-
build2
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
State of PCH/msvc
user name
2006-04-26 14:45:17
Vladimir Prus wrote:
> On Wednesday 26 April 2006 17:33, Phillip Seaver wrote:
>   
>> Felipe Magno de Almeida wrote:
>>     
>>> On 4/26/06, Philip Craig <philippobox.com> wrote:
>>>       
>>>> Just to add my datapoint again.
>>>>
>>>> boost build can't be used for serious
projects in msvc++ until all of
>>>> pch and -jn (where n > 1) and pdb are
working.
>>>>         
>>> What is the problem with -jn and pdb?
>>> I'm using here -j2 and never had any problem
yet...
>>>       
>> Well, for a start, it doesn't generate .pdb's at
the moment.    The
>> problem is that when compiling two files that use
the same .pdb, one
>> locks the file and the other fails to compile when
it tries to open the
>> locked .pdb for writing.
>>     
>
> And what are possible solution, other then serializing
compile actions?
>
> - Volodya

I don't know of any -- I was just answering his question as
to why he
hadn't seen the problem and what the problem would be.

So,  how would I go about serializing it?  I see that in my
copy,
there's a line reading:

    JAM_SEMAPHORE on $(targets) =
<s>gcc-link-semaphore ;

...in the link rule in gcc.jam.  I assume it would be
something like that?

Thanks,

Phillip
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
State of PCH/msvc
user name
2006-04-26 14:56:21
Vladimir Prus wrote:
>> Well, for a start, it doesn't generate .pdb's at
the moment.    The
>> problem is that when compiling two files that use
the same .pdb, one
>> locks the file and the other fails to compile when
it tries to open the
>> locked .pdb for writing.
> And what are possible solution, other then serializing
compile actions?
It's possible to create several .pdb-files - one for each
build process.

In fact, my first try at using -Fd option created a .pdb
file for each 
.obj file.

We have a few licenses for IncrediBuild (parallel build
support for 
MSVS) and it somehow works with .pdbs and precompiled
headers. I'll try 
to see how it works...

PS: It's possible to download trial version of IncrediBuild
at 
http://www.xoreax.com/
main.htm .

-- 
With respect,
             Alex Besogonov (cyberaxelewise.com)

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

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