[Insight-developers] (ITK) Build Errors terminus.kitware -- WinXP-VC60, library rebuil ds

Ken Martin ken.martin@kitware.com
Mon, 17 Mar 2003 15:10:34 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_005A_01C2EC97.5C2D3A80
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I just checked and as far as I can see CMake is setting up the target
dependencies (and chaining them) correctly for both VS6 and VC7. (it is
easy to verify from VS just look at the project dependencies). Having
seen this type of problem before on occasion, my suspicion is that this
is a bug in the VS incremental linker or VS dependency checks.
Unfortunately the offending dashboard was cleaned so there is little
remaining evidence. Looking at the dashboard it seems clear that
ITKCommon was rebuilt (the symbols are missing as they should be) the
problem seems to be that some examples still think that the symbols
should be there. So either the executable is screwed up (VS is trying to
relink the executable) or the specific test .obj file (Smooth something
or another in this case) has not been rebuilt, but that is a VS
dependency issue. It would have been nice if we could have checked if
the Smooth.obj was up to date or not.

 

Ken

 

 

-----Original Message-----
From: insight-developers-admin@public.kitware.com
[mailto:insight-developers-admin@public.kitware.com] On Behalf Of
Miller, James V (Research)
Sent: Monday, March 17, 2003 2:18 PM
To: Insight-developers (E-mail); CMake developers (E-mail)
Subject: [Insight-developers] (ITK) Build Errors terminus.kitware --
WinXP-VC60, library rebuil ds

 

The build errors on terminus.kitware are referencing methods that I
removed from the system on Friday.  These symbols were never used, so I
deleted them to simplify the code.

 

Since we have these build errors, it looks VC6 did not rebuild all the
libraries or an old object file is lying around.

 

The reason I bring this up on the list(s) is that we have had a lot of
problems recently with VC6 building applications (examples) where the
dependent libraries are not being rebuilt.  Here is an example:  change
some code in library A.  Library B links with library A.  Executable C
links with library B.  If you just tell VC6 to build executable C, then
library A does not get rebuilt.  If you build from the top using the
ALL_BUILD target, then everything works fine. I think Matt discovered if
he added the other libraries to the particular projects (using "Add
files to project"), then the rebuilds are triggered properly.  However,
this information is lost the next time CMake is run.

Have other people seen this? Can CMake add the link libraries that an
executable uses that are also built by the workspace to the dependent
projects? Or is this necessary?

I think I have seen this same behavior on VC7.

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv@research.ge.com

james.miller@research.ge.com
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 

 


------=_NextPart_000_005A_01C2EC97.5C2D3A80
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Comic Sans MS";
	panose-1:3 15 7 2 3 3 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{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;}
p
	{margin-right:0in;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
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;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I just checked and as far as I can =
see CMake
is setting up the target dependencies (and chaining them) correctly for =
both
VS6 and VC7. (it is easy to verify from VS just look at the project
dependencies). Having seen this type of problem before on occasion, my
suspicion is that this is a bug in the VS incremental linker or VS =
dependency
checks. &nbsp;Unfortunately the offending dashboard was cleaned so there =
is little
remaining evidence. Looking at the dashboard it seems clear that =
ITKCommon was
rebuilt (the symbols are missing as they should be) the problem seems to =
be
that some examples still think that the symbols should be there. So =
either the
executable is screwed up (VS is trying to relink the executable) or the
specific test .obj file (Smooth something or another in this case) has =
not been
rebuilt, but that is a VS dependency issue. It would have been nice if =
we could
have checked if the Smooth&#8230;obj was up to date or =
not.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ken</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;</span></font></p>

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

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b>
insight-developers-admin@public.kitware.com
[mailto:insight-developers-admin@public.kitware.com] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Miller, James V (Research)<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, March 17, =
2003 2:18
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Insight-developers =
(E-mail);
CMake developers (E-mail)<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[Insight-developers]
(ITK) Build Errors terminus.kitware -- WinXP-VC60, library rebuil =
ds</span></font></p>

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

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
style=3D'font-size:
10.0pt'>The build errors on terminus.kitware are referencing methods =
that I
removed from the system on Friday.&nbsp; These symbols were never used, =
so I
deleted them to simplify the code.</span></font></p>

</div>

<div>

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

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
style=3D'font-size:
10.0pt'>Since we have these build errors, it looks VC6 did not rebuild =
all the
libraries or an old object file is lying around.</span></font></p>

</div>

<div>

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

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
style=3D'font-size:
10.0pt'>The reason I bring this up on the list(s) is that we have had a =
lot of
problems recently with VC6 building applications (examples) where the =
dependent
libraries are not being rebuilt.&nbsp; Here is an example:&nbsp; change =
some
code in library A.&nbsp; Library B links with library A.&nbsp; =
Executable C
links with library B.&nbsp; If you just tell VC6 to build executable C, =
then
library A does not get rebuilt.&nbsp; If you build from the top using =
the
ALL_BUILD target, then everything works fine. I think Matt discovered if =
he
added the other libraries to the particular projects (using &quot;Add =
files to
project&quot;), then the rebuilds are triggered properly.&nbsp; However, =
this
information is lost the next time CMake is run.</span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
style=3D'font-size:
10.0pt'>Have other people seen this? Can CMake add the link libraries =
that an
executable uses that are also built by the workspace to the dependent =
projects?
Or is this necessary?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
style=3D'font-size:
10.0pt'>I think I have seen this same behavior on VC7.</span></font></p>

<p style=3D'margin:0in;margin-bottom:.0001pt'><b><font size=3D3 =
color=3Dnavy
face=3D"Comic Sans MS"><span =
style=3D'font-size:12.0pt;font-family:"Comic Sans MS";
color:navy;font-weight:bold'>Jim Miller</span></font></b> <br>
<b><i><font size=3D2 color=3Dred face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:red;font-weight:bold;font-style:italic'>_________=
____________________________</span></font></i></b><br>
<em><i><font size=3D1 color=3Dblack face=3DArial><span =
style=3D'font-size:7.5pt;
font-family:Arial;color:black'>Visualization &amp; Computer =
Vision</span></font></i></em><i><font
size=3D1 color=3Dblack face=3DArial><span =
style=3D'font-size:7.5pt;font-family:Arial;
color:black;font-style:italic'><br>
<em><i><font face=3DArial><span style=3D'font-family:Arial'>GE =
Research</span></font></i></em><br>
<em><i><font face=3DArial><span style=3D'font-family:Arial'>Bldg. KW, =
Room C218B</span></font></i></em><br>
<em><i><font face=3DArial><span style=3D'font-family:Arial'>P.O. Box 8, =
Schenectady
NY 12301</span></font></i></em><br>
<br>
</span></font></i><em><i><u><font size=3D1 color=3Dblue face=3D"Times =
New Roman"><span
style=3D'font-size:7.5pt;color:blue'><a =
href=3D"mailto:millerjv@research.ge.com">millerjv@research.ge.com</a></sp=
an></font></u></i></em></p>

<p style=3D'margin:0in;margin-bottom:.0001pt'><em><i><u><font size=3D1 =
color=3Dblue
face=3D"Times New Roman"><span =
style=3D'font-size:7.5pt;color:blue'>james.miller@research.ge.com</span><=
/font></u></i></em><br>
<i><font size=3D1 color=3Dblack face=3DArial><span =
style=3D'font-size:7.5pt;font-family:
Arial;color:black;font-style:italic'>(518) 387-4005, Dial Comm: =
8*833-4005, </span></font></i><br>
<i><font size=3D1 color=3Dblack face=3DArial><span =
style=3D'font-size:7.5pt;font-family:
Arial;color:black;font-style:italic'>Cell: (518) 505-7065, Fax: (518) =
387-6981</span></font></i>
</p>

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

</div>

<div>

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

</div>

</div>

</div>

</body>

</html>

------=_NextPart_000_005A_01C2EC97.5C2D3A80--