[Insight-users] building from source
Rocky Rhodes
rhodes at sgi.com
Mon Jun 28 13:54:18 EDT 2004
My gcc version made considerably better progress. I successfully completed
a build and ran a "make test" from the build directory. 713/714 tests
PASSED. vnl_test_math failed, with 4 assertions failing on lines 136-139 of
test_math.cxx. All four assertions are "#ifndef __alpha__"'ed in the code:
#ifndef __alpha__ // on alpha, infinity() == max()
!vnl_math_isfinite(pinf_q)
vnl_math_isinf(pinf_q)
!vnl_math_isfinite(ninf_q)
vnl_math_ising(ninf_q)
#endif
These values are of type "long double".
The code in vnl_math.cxx looks incredibly ugly. It also looks like there is
code in /usr/include/math.h on this system that relies on
"__NO_LONG_DOUBLES_MATH" not being defined for long doubles to use the
correct versions of isfinite() and isinf().
Does any of this ring any bells for anyone?
Rocky
> -----Original Message-----
> From: Rocky Rhodes
> Sent: Friday, June 25, 2004 9:33 AM
> To: 'Luis Ibanez'
> Cc: 'insight-users at itk.org'
> Subject: RE: [Insight-users] building from source
>
>
> Thanks for the help. Picking a different tar tool did fix
> the truncation problem.
>
> My new problem now is: ;^)
>
> Cmake now completes its job. When I run make, I get an error
> compiling
> Utilities/.../Templates/vcl_algorithm+vnl_rational-.cxx. The
> compiler complains:
>
> Building object file Templates/vcl_algorithm+vnl_rational-.o...
> /.automount/ironman/root/usr/people/rhodes/itk/InsightToolkit-
> 1.6.0/Utilities/vxl/core/vnl/Templates/vcl_algorithm+vnl_ratio
> nal-.cxx(8): warning #799: qualified name is not allowed in
> namespace member declaration
> template vnl_rational* std::fill_n<vnl_rational*,
> unsigned long, vnl_rational>(vnl_rational*, unsigned long,
> vnl_rational const&);
> ^
>
> /.automount/ironman/root/usr/people/rhodes/itk/InsightToolkit-
> 1.6.0/Utilities/vxl/core/vnl/Templates/vcl_algorithm+vnl_ratio
> nal-.cxx(8): error: no instance of overloaded function
> "std::fill_n" matches the specified type
> template vnl_rational* std::fill_n<vnl_rational*,
> unsigned long, vnl_rational>(vnl_rational*, unsigned long,
> vnl_rational const&);
> ^
>
> compilation aborted for
> /.automount/ironman/root/usr/people/rhodes/itk/InsightToolkit-
> 1.6.0/Utilities/vxl/core/vnl/Templates/vcl_algorithm+vnl_ratio
> nal-.cxx (code 2)
>
>
> I was trying to use version 8.0.066 of Intel's icc/icpc
> compiler for ia64. Any thoughts on the problem? I will try
> gcc and see if I have better luck if nothing comes to mind.
>
> Rocky
>
> > -----Original Message-----
> > From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
> > Sent: Thursday, June 24, 2004 9:05 PM
> > To: Rocky Rhodes
> > Cc: 'insight-users at itk.org'
> > Subject: Re: [Insight-users] building from source
> >
> >
> >
> > Hi Rocky,
> >
> >
> > This sounds like your tar tool is broken. :-/
> >
> >
> > Here are two alternatives that come to mind.
> >
> > 1) Expand the tar file in a "normal" machine
> > e.g. a Linux PC or a Sun workstation.
> > Then copy the source tree throuugh the
> > network into your particular IA64 machine.
> >
> > XOR
> >
> > 2) Get the source code through CVS.
> >
> > Simply follow the instructions on the Download
> > page. If you want to stick to version 1.6, you
> > can after downloading, sync to that version by
> > doing:
> >
> > cvs upate -r Release-1-6
> >
> >
> > Note that as far as we know, ITK has never been
> > built in a IA64 machine, so, be prepared for
> > surprises and get ready your coffee supplies.
> >
> >
> > Please let us know what you find.
> >
> >
> > Thanks
> >
> >
> >
> > Luis
> >
> >
> >
> > ----------------------
> > Rocky Rhodes wrote:
> > > I just downloaded the 1.6.0 source and am trying to build it on an
> > > IA64/Linux machine. When I run cmake I get a number of
> > errors caused by the
> > > truncation of various long file names. "tar -tvf" shows
> > the names to be
> > > truncated in the archive file when the total path name is
> about 100
> > > characters long.
> > >
> > > For instance, cmake says it cannot find file
> > > "itkExpectationMaximizationMixtureModeEstimatorTest.cxx" in
> > the Testing
> > > directory tree. The file it wants is there, but is called
> > > "itkExpectationMaximizationMixtureModeEstimat" instead. Is
> > this a known
> > > problem, and is there a quick fix?
> > >
> > > Thanks for the help.
> > >
> > > Rocky
> > >
> > > _______________________________________________
> > > Insight-users mailing list
> > > Insight-users at itk.org
> > > http://www.itk.org/mailman/listinfo/insight-users
> > >
> >
> >
> >
>
More information about the Insight-users
mailing list