RE: [boost] Wave Bjam building problems\Joel de Guzman -did youeverfind a solution?

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Hartmut Kaiser Sent: Thursday, May 26, 2005 5:20 AM To: boost@lists.boost.org Subject: RE: [boost] Wave Bjam building problems\Joel de Guzman -did youeverfind a solution?
Brian,
IIRC, removing the /GR switch (generate RTTI) should solve the
Hartmut- HI THERE! I must say, I am excited to get the build fun over with so I can use your extremely cool creation. Details: I am using V2. I am NOW much closer. I am compiling but NOT LINKING- I have removed VC70 COMPLETELY from my box and rebuilt boost with 71 (again). That an a using msvc : 7.1. : (path to cl.exe) in the user-config.jam got me to compile. Additionally, I went through and manually removed all of the references in my LIB, INCLUDE and PATH to vc70. This may sound extreme, but it allowed BJAM to compile (Bjam's interaction with those ENV vars is something I don't fully know how it works) I am now trying to build the quick start with the VC71 IDE My current problem is this link error: Linking... LINK : fatal error LNK1104: cannot open file 'libboost_wave-vc7-mt-gd-1_32.lib' Build log was saved at "file://c:\data\Irx\Irx\Arx\Main\Source\Common\Boost\V_1_32\libs\wave\sa mples\quick_start\Debug\BuildLog.htm" WaveQuickStart - 1 error(s), 0 warning(s) The LIB I have available is 'libboost_wave-vc71-mt-gd-1_32.lib not 'libboost_wave-vc7-mt-gd-1_32.lib'. I am not sure WHY the autolinking is trying to hit the vc70 version of the lib since I am using VC71's IDE. (ANYONE HAVE ANY SUGGESTIONS?) Additionally, I will try your suggestion below just to see what happens. THANK YOU Brian Braatz Info and tips for anyone who might find this mail in the archives: 1- Try to build the spirit example FIRST, if you cant build the examples with Spirit, you will not be able to get wave to compile 2- Remove all the references to other compilers in LIB, INCLUDE and PATH, this seemed to clean things up for me (though this SHOULD not be necessary I believe) 3- Maintain patience and perseverance. :) problem.
But the Wave jamfiles in the Boost CVS:HEAD should work fine, didn't
they?
Anyway, I'll retry to compile it today based on the Boost 1.32 release.
Are you using Build V1 or V2? Joel reported the error went away after switching to the V1 Jamfiles.
Regards Hartmut
Attempting to BUILD WAVE, I have spent the last few hours (midnight til 5am) searching the archives and trying different things. ( the below email is the exact problem I am having)
I have tried both the review version of wave and the one in CVS applied to the 1.32 release. I am using vc7.1
Has anyone found the issue below yet?
Many thanks,
Brian
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Joel de Guzman Sent: Sunday, February 13, 2005 2:55 PM To: boost@lists.boost.org Subject: [boost] Re: Wave review
Hartmut Kaiser wrote:
Joel de Guzman wrote:
+ when using bjam V2, VC7.1 fails with a buffer overrun
problem). No problem with bjam V1. I wanted to try
but they don't have a V1 Jamfile, only V2. So I had to
switch
to using g++ instead. So far so good.
Sure they have, haven't they? I'm pretty sure that I've added V1 Jamfile's. But thanks for reporting the V2 problems. Please add the line
: <toolset>vc-7_1:<rtti>off # workaround for compiler bug
to the V2 Jamfile's, without that VC7.1 simply fails - please look at
(compiler the samples the V2
Jamfile of the library itself for a sample ($BOOST_ROOT/libs/wave/build/Jamfile.v2).
Hi Hartmut,
VC7.1 still bombs with "buffer overrun". Here's the bjam output:
C:\dev\boost\libs\wave\build>bjam --v2 ...found 108 targets... ...updating 5 targets... msvc.compile.c++ ..\..\..\bin.v2\libs\wave\build\msvc\debug\instantiate_cpp_gram mar.obj instantiate_cpp_grammar.cpp
call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.ba t" > nul cl /Zm800 -nologo -TP -DBOOST_ALL_NO_LIB=1 /Z7 /Od /Ob0 /EHsc /GR /MDd -I"C :\dev\boost" -c -Fo"..\..\..\bin.v2\libs\wave\build\msvc\debug\instantiate_cpp_ grammar.obj" "..\src\instantiate_cpp_grammar.cpp"
...failed msvc.compile.c++ ..\..\..\bin.v2\libs\wave\build\msvc\debug\instantiat e_cpp_grammar.obj...
Did I do something wrong?
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

"Brian Braatz" <brianb@rmtg.com> writes:
Hartmut- HI THERE! I must say, I am excited to get the build fun over with so I can use your extremely cool creation.
Details: I am using V2. I am NOW much closer. I am compiling but NOT LINKING- I have removed VC70 COMPLETELY from my box
That was unneccessary. Sorry you did it.
and rebuilt boost with 71 (again). That an a using msvc : 7.1. : (path to cl.exe) in the user-config.jam got me to compile.
Additionally, I went through and manually removed all of the references in my LIB, INCLUDE and PATH to vc70.
Also unneccessary.
This may sound extreme, but it allowed BJAM to compile (Bjam's interaction with those ENV vars is something I don't fully know how it works)
It doesn't interact with them.
I am now trying to build the quick start with the VC71 IDE
My current problem is this link error: Linking... LINK : fatal error LNK1104: cannot open file 'libboost_wave-vc7-mt-gd-1_32.lib'
Build log was saved at "file://c:\data\Irx\Irx\Arx\Main\Source\Common\Boost\V_1_32\libs\wave\sa mples\quick_start\Debug\BuildLog.htm" WaveQuickStart - 1 error(s), 0 warning(s)
The LIB I have available is 'libboost_wave-vc71-mt-gd-1_32.lib not 'libboost_wave-vc7-mt-gd-1_32.lib'. I am not sure WHY the autolinking is trying to hit the vc70 version of the lib since I am using VC71's IDE.
(ANYONE HAVE ANY SUGGESTIONS?)
I don't know; this looks like a possible misuse of the autolink system by Wave, or... maybe you need to force-rebuild your entire vc71 project? If you have any object files lying around that were build with vc70 you'll have the incorrect autolink references in them. -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams wrote:
I am now trying to build the quick start with the VC71 IDE
My current problem is this link error: Linking... LINK : fatal error LNK1104: cannot open file 'libboost_wave-vc7-mt-gd-1_32.lib'
Build log was saved at
"file://c:\data\Irx\Irx\Arx\Main\Source\Common\Boost\V_1_32\libs\wave\
sa mples\quick_start\Debug\BuildLog.htm" WaveQuickStart - 1 error(s), 0 warning(s)
The LIB I have available is 'libboost_wave-vc71-mt-gd-1_32.lib not 'libboost_wave-vc7-mt-gd-1_32.lib'. I am not sure WHY the autolinking is trying to hit the vc70 version of the lib since I am using VC71's IDE.
(ANYONE HAVE ANY SUGGESTIONS?)
I don't know; this looks like a possible misuse of the autolink system by Wave, or... maybe you need to force-rebuild your entire vc71 project? If you have any object files lying around that were build with vc70 you'll have the incorrect autolink references in them.
Wave uses the autolink feature as described in the docs. No misuse here, at least I'm not aware of such. Regards Hartmut

Brian Braatz wrote:
Details: I am using V2. I am NOW much closer. I am compiling but NOT LINKING- I have removed VC70 COMPLETELY from my box and rebuilt boost with 71 (again). That an a using msvc : 7.1. : (path to cl.exe) in the user-config.jam got me to compile.
There was some confusion on the list about how to specify <rtti>off for the vc71 compiler in the Jamfile.v2. Since I'm no boost build expert (or more concrete, I have minimal clue only how it works) I followed the suggestions. So the Wave Jamfile.v2 files now contain a <toolset>msvc-7.1:<rtti>off # workaround for compiler bug which is supposed to switch off the RTTI generation for this compiler (because it otherwise shows the observed behaviour).
I am now trying to build the quick start with the VC71 IDE
My current problem is this link error: Linking... LINK : fatal error LNK1104: cannot open file 'libboost_wave-vc7-mt-gd-1_32.lib'
Very strange, there seems to occur some interaction between the vc71 and the generated vc70 libraries. Could you please remove all the binaries generated by your vc70 and compile boost from the scratch with the vc71 Regards Hartmut
participants (3)
-
Brian Braatz
-
David Abrahams
-
Hartmut Kaiser