So if I remove /opt/local/bin from my path, but use /opt/local/bin/cmake
(Macports) to build, it will work.

The compiler found is /usr/bin/gcc when /opt/local/bin/ is not in my path.
In our group we typically symlink /opt/local/bin to gcc-mp-4.3, which may be
causing the conflict.  I do know that, at least in the past, that cmake will
use /usr/bin/c++ instead of /opt/local/bin/g++.

Attached is the file you requested.  My only guess is that either the
compiler or other Macports tool is problematic.

Regards,

Juan

On Thu, Jun 24, 2010 at 11:32 AM, Bill Hoffman <bill.hoff...@kitware.com>wrote:

> On 6/24/2010 12:25 PM, Bill Hoffman wrote:
>
>> On 6/24/2010 12:15 PM, j s wrote:
>>
>>> I bootstrapped a version of cmake, and used it to build itself. This
>>> didn't work until I removed /opt/local/bin (Macports) from my path.
>>>
>>> I then built cmake with the Macports version of cmake, and it also
>>> worked after removing /opt/local/bin.
>>>
>>> So how is FundamentalType.h generated? I think that cmake may have an
>>> issue, because when I use it to build something external, it uses
>>> /usr/bin/c++. However, it decides to use /opt/local/bin/gcc when it is
>>> building its tests.
>>>
>>>  So, what gcc does it use when /opt/local/bin is not in your path?
>>
>>> I assume posting all this stuff to the list is an acceptable alternative
>>> to a bug report, so I guess I don't have to file one now.
>>>
>>>
>> Can you send this stuff:
>>
>>>
>>> Please post the CMakeError.log and CMakeOutput.log files. Sounds
>>> like check type size is failing for some reason.
>>>
>>> Also, you should post the whole output from running cmake.
>>>
>>>
>>
>
> Can you also send cmsys/FundamentalType.h
>
> -Bill
>
/*============================================================================
  KWSys - Kitware System Library
  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium

  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.

  This software is distributed WITHOUT ANY WARRANTY; without even the
  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the License for more information.
============================================================================*/
#ifndef cmsys_FundamentalType_h
#define cmsys_FundamentalType_h

#include <cmsys/Configure.h>

/* Redefine all public interface symbol names to be in the proper
   namespace.  These macros are used internally to kwsys only, and are
   not visible to user code.  Use kwsysHeaderDump.pl to reproduce
   these macros after making changes to the interface.  */
#if !defined(KWSYS_NAMESPACE)
# define kwsys_ns(x) cmsys##x
# define kwsysEXPORT cmsys_EXPORT
#endif

#if !cmsys_NAME_IS_KWSYS
# define kwsysFundamentalType        kwsys_ns(FundamentalType)
# define kwsysFundamentalType_Int8   kwsys_ns(FundamentalType_Int8)
# define kwsysFundamentalType_UInt8  kwsys_ns(FundamentalType_UInt8)
# define kwsysFundamentalType_Int16  kwsys_ns(FundamentalType_Int16)
# define kwsysFundamentalType_UInt16 kwsys_ns(FundamentalType_UInt16)
# define kwsysFundamentalType_Int32  kwsys_ns(FundamentalType_Int32)
# define kwsysFundamentalType_UInt32 kwsys_ns(FundamentalType_UInt32)
# define kwsysFundamentalType_Int64  kwsys_ns(FundamentalType_Int64)
# define kwsysFundamentalType_UInt64 kwsys_ns(FundamentalType_UInt64)
#endif

/* The size of fundamental types.  Types that do not exist have size 0.  */
#define cmsys_SIZEOF_CHAR 1
#define cmsys_SIZEOF_SHORT __SIZEOF_SHORT__
#define cmsys_SIZEOF_INT __SIZEOF_INT__
#define cmsys_SIZEOF_LONG __SIZEOF_LONG__
#define cmsys_SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__
#define cmsys_SIZEOF___INT64 0

/* Whether types "long long" and "__int64" are enabled.  If a type is
   enabled then it is a unique fundamental type.  */
#define cmsys_USE_LONG_LONG 1
#define cmsys_USE___INT64 0

/* Whether type "char" is signed (it may be signed or unsigned).  */
#define cmsys_CHAR_IS_SIGNED 1

#if defined(__cplusplus)
extern "C"
{
#endif

/* Select an 8-bit integer type.  */
#if cmsys_SIZEOF_CHAR == 1
typedef signed char kwsysFundamentalType_Int8;
typedef unsigned char kwsysFundamentalType_UInt8;
#else
# error "No native data type can represent an 8-bit integer."
#endif

/* Select a 16-bit integer type.  */
#if cmsys_SIZEOF_SHORT == 2
typedef short kwsysFundamentalType_Int16;
typedef unsigned short kwsysFundamentalType_UInt16;
#elif cmsys_SIZEOF_INT == 2
typedef int kwsysFundamentalType_Int16;
typedef unsigned int kwsysFundamentalType_UInt16;
#else
# error "No native data type can represent a 16-bit integer."
#endif

/* Select a 32-bit integer type.  */
#if cmsys_SIZEOF_INT == 4
typedef int kwsysFundamentalType_Int32;
typedef unsigned int kwsysFundamentalType_UInt32;
#elif cmsys_SIZEOF_LONG == 4
typedef long kwsysFundamentalType_Int32;
typedef unsigned long kwsysFundamentalType_UInt32;
#else
# error "No native data type can represent a 32-bit integer."
#endif

/* Select a 64-bit integer type.  */
#if cmsys_SIZEOF_LONG == 8
typedef signed long   kwsysFundamentalType_Int64;
typedef unsigned long kwsysFundamentalType_UInt64;
/* Whether UInt64 can be converted to double.  */
# define cmsys_CAN_CONVERT_UI64_TO_DOUBLE 1
#elif cmsys_USE_LONG_LONG && cmsys_SIZEOF_LONG_LONG == 8
typedef signed long long   kwsysFundamentalType_Int64;
typedef unsigned long long kwsysFundamentalType_UInt64;
/* Whether UInt64 can be converted to double.  */
# define cmsys_CAN_CONVERT_UI64_TO_DOUBLE 1
#elif cmsys_USE___INT64 && cmsys_SIZEOF___INT64 == 8
typedef signed __int64   kwsysFundamentalType_Int64;
typedef unsigned __int64 kwsysFundamentalType_UInt64;
/* Whether UInt64 can be converted to double.  */
# define cmsys_CAN_CONVERT_UI64_TO_DOUBLE 1
#else
# error "No native data type can represent a 64-bit integer."
#endif

#if defined(__cplusplus)
} /* extern "C" */
#endif

/* If we are building a kwsys .c or .cxx file, let it use these macros.
   Otherwise, undefine them to keep the namespace clean.  */
#if !defined(KWSYS_NAMESPACE)
# undef kwsys_ns
# undef kwsysEXPORT
# if !defined(KWSYS_NAMESPACE) && !cmsys_NAME_IS_KWSYS
#  undef kwsysFundamentalType
#  undef kwsysFundamentalType_Int8
#  undef kwsysFundamentalType_UInt8
#  undef kwsysFundamentalType_Int16
#  undef kwsysFundamentalType_UInt16
#  undef kwsysFundamentalType_Int32
#  undef kwsysFundamentalType_UInt32
#  undef kwsysFundamentalType_Int64
#  undef kwsysFundamentalType_UInt64
# endif
#endif

/* If building a C or C++ file in kwsys itself, give the source file
   access to the configured macros without a configured namespace.  */
#if defined(KWSYS_NAMESPACE)
# define KWSYS_SIZEOF_CHAR cmsys_SIZEOF_CHAR
# define KWSYS_SIZEOF_SHORT cmsys_SIZEOF_SHORT
# define KWSYS_SIZEOF_INT cmsys_SIZEOF_INT
# define KWSYS_SIZEOF_LONG cmsys_SIZEOF_LONG
# define KWSYS_SIZEOF_LONG_LONG cmsys_SIZEOF_LONG_LONG
# define KWSYS_SIZEOF___INT64 cmsys_SIZEOF___INT64
# define KWSYS_USE_LONG_LONG cmsys_USE_LONG_LONG
# define KWSYS_USE___INT64 cmsys_USE___INT64
# define KWSYS_CHAR_IS_SIGNED cmsys_CHAR_IS_SIGNED
# define KWSYS_CAN_CONVERT_UI64_TO_DOUBLE cmsys_CAN_CONVERT_UI64_TO_DOUBLE
#endif

#endif
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to