[Insight-developers] [zobel at ftbfs.de: Bug#483312: insighttoolkit_3.6.0-2(sparc/unstable): FTBFS, error: sys/isa_defs.h: No such file or directory]

Steve M. Robbins steve at sumost.ca
Wed May 28 14:18:53 EDT 2008


Hello,

ITK does not build on a sparc running linux.  The problem is that
Utilities/itksys/SharedForward.h #includes <sys/isa_defs.h>, which
doesn't exist on linux.  See below.

The code in question reads:

/* SUN */
#if defined(__sparc)
# define KWSYS_SHARED_FORWARD_LDD "ldd"
# define KWSYS_SHARED_FORWARD_LDD_N 1
# include <sys/isa_defs.h>
# if defined(_ILP32)
#  define KWSYS_SHARED_FORWARD_LDPATH "LD_LIBRARY_PATH"
# elif defined(_LP64)
#  define KWSYS_SHARED_FORWARD_LDPATH "LD_LIBRARY_PATH_64"
# endif
#endif

Clearly "__sparc" is not sufficient to presume the presence of
sys/isa_defs.h.  Is there another symbol that can be used?

In addition, I wonder if this code is written under the assumption
that "__sparc" means solaris or sunos?  Is this code correct for
linux?

We may well have the same problem if there are assumptions that
"mips" is IRIX or "hppa" is ULTRIX, etc.

Thanks,
-Steve


----- Forwarded message from Martin Zobel-Helas <zobel at ftbfs.de> -----

There was an error while trying to autobuild your package:

> Automatic build of insighttoolkit_3.6.0-2 on lebrun by sbuild/sparc 98
> Build started at 20080527-0602

[...]

> [ 45%] Building CXX object Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.o
> cd /build/buildd/insighttoolkit-3.6.0/Build/Code/IO && /usr/bin/c++    -Wno-deprecated  -ftemplate-depth-50 -O2 -g -I/build/buildd/insighttoolkit-3.6.0/Build -I/build/buildd/insighttoolkit-3.6.0/Code/Algorithms -I/build/buildd/insighttoolkit-3.6.0/Code/BasicFilters -I/build/buildd/insighttoolkit-3.6.0/Code/Common -I/build/buildd/insighttoolkit-3.6.0/Code/Numerics -I/build/buildd/insighttoolkit-3.6.0/Code/IO -I/build/buildd/insighttoolkit-3.6.0/Code/Numerics/FEM -I/build/buildd/insighttoolkit-3.6.0/Code/Numerics/Statistics -I/build/buildd/insighttoolkit-3.6.0/Code/Numerics/NeuralNetworks -I/build/buildd/insighttoolkit-3.6.0/Code/SpatialObject -I/build/buildd/insighttoolkit-3.6.0/Utilities/MetaIO -I/build/buildd/insighttoolkit-3.6.0/Utilities/NrrdIO -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/NrrdIO -I/build/buildd/insighttoolkit-3.6.0/Utilities/DICOMParser -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/DICOMParser -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/expat -I/build/buildd/insighttoolkit-3.6.0/Utilities/expat -I/build/buildd/insighttoolkit-3.6.0/Utilities/nifti/niftilib -I/build/buildd/insighttoolkit-3.6.0/Utilities/nifti/znzlib -I/build/buildd/insighttoolkit-3.6.0/Utilities/itkExtHdrs -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities -I/build/buildd/insighttoolkit-3.6.0/Utilities -I/build/buildd/insighttoolkit-3.6.0/Utilities/vxl/v3p/netlib -I/build/buildd/insighttoolkit-3.6.0/Utilities/vxl/vcl -I/build/buildd/insighttoolkit-3.6.0/Utilities/vxl/core -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/vxl/v3p/netlib -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/vxl/vcl -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/vxl/core -I/build/buildd/insighttoolkit-3.6.0/Build/Utilities/gdcm -I/build/buildd/insighttoolkit-3.6.0/Utilities/gdcm/src   -w -o CMakeFiles/itkTestDriver.dir/itkTestDriver.o -c /build/buildd/insighttoolkit-3.6.0/Code/IO/itkTestDriver.cxx
> In file included from /build/buildd/insighttoolkit-3.6.0/Code/IO/itkTestDriver.cxx:47:
> /build/buildd/insighttoolkit-3.6.0/Build/Utilities/itksys/SharedForward.h:223:27: error: sys/isa_defs.h: No such file or directory
> make[3]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.o] Error 1
> make[3]: Leaving directory `/build/buildd/insighttoolkit-3.6.0/Build'
> make[2]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
> make[2]: Leaving directory `/build/buildd/insighttoolkit-3.6.0/Build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/buildd/insighttoolkit-3.6.0/Build'
> make: *** [debian/stamp-makefile-build] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

A full build log can be found at:
http://buildd.debian.org/build.php?arch=sparc&pkg=insighttoolkit&ver=3.6.0-2

----- End forwarded message -----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20080528/1cbe78e9/attachment.pgp>


More information about the Insight-developers mailing list