[CLN-list] CLN on MacOS X

Ron Garret ron at flownet.com
Wed Jan 23 05:39:08 CET 2008


On Jan 22, 2008, at 5:12 PM, Bruno Haible wrote:

> Ron Garret wrote:
>> Doesn't work on OS X Leopard.  I have the same problem under all
>> permutations:
>>
>> make SUBDIR=base/digitseq
>> /bin/sh ../libtool --mode=compile gcc -m64 -O  -DUNDERSCORE  -c
>> cl_asm_.s
>>  gcc -m64 -O -DUNDERSCORE -c cl_asm_.s  -fno-common -DPIC -o .libs/
>> cl_asm_.o
>> cl_asm_.s:171:suffix or operands invalid for `push'
>> cl_asm_.s:182:suffix or operands invalid for `pop'
>> [More of the same]
>> cl_asm_.s:984:suffix or operands invalid for `pop'
>> cl_asm_.s:985:suffix or operands invalid for `pop'
>> make[3]: *** [cl_asm_.lo] Error 1
>> make[2]: *** [base/digitseq.target] Error 2
>> make[1]: *** [base.target] Error 2
>> make: *** [all] Error 2
>>
>> At first I thought this meant that CLN was hard-coded for 32-bits.
>> Maybe I need -DNO_ASM or something like that?
>
> -DNO_ASM will certainly work around it. But before you try that, can
> you show the set of the compiler's predefines? Like this:
>  $ touch empty.c
>  $ gcc -m64 -E -dM empty.c | sort | uniq | grep -v FLT_ | grep -v DBL_
> And this:
>  $ grep define include/cln/config.h
> (I'm suspecting a confusion between i386 and x86_64 at the  
> preprocessor
> level.)
>
> Bruno

[ron at mickey:~/devel/cln-1.2.0]$ touch empty.c
[ron at mickey:~/devel/cln-1.2.0]$ gcc -m64 -E -dM empty.c | sort | uniq  
| grep -v FLT_ | grep -v DBL_
#define OBJC_NEW_PROPERTIES 1
#define _LP64 1
#define __APPLE_CC__ 5465
#define __APPLE__ 1
#define __CHAR_BIT__ 8
#define __CONSTANT_CFSTRINGS__ 1
#define __DECIMAL_DIG__ 21
#define __DYNAMIC__ 1
#define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1051
#define __FINITE_MATH_ONLY__ 0
#define __GNUC_MINOR__ 0
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC__ 4
#define __GXX_ABI_VERSION 1002
#define __INTMAX_MAX__ 9223372036854775807L
#define __INTMAX_TYPE__ long int
#define __INT_MAX__ 2147483647
#define __LITTLE_ENDIAN__ 1
#define __LONG_LONG_MAX__ 9223372036854775807LL
#define __LONG_MAX__ 9223372036854775807L
#define __LP64__ 1
#define __MACH__ 1
#define __MMX__ 1
#define __NO_INLINE__ 1
#define __PIC__ 1
#define __PTRDIFF_TYPE__ long int
#define __REGISTER_PREFIX__
#define __SCHAR_MAX__ 127
#define __SHRT_MAX__ 32767
#define __SIZE_TYPE__ long unsigned int
#define __SSE2_MATH__ 1
#define __SSE2__ 1
#define __SSE3__ 1
#define __SSE_MATH__ 1
#define __SSE__ 1
#define __STDC_HOSTED__ 1
#define __UINTMAX_TYPE__ long unsigned int
#define __USER_LABEL_PREFIX__ _
#define __VERSION__ "4.0.1 (Apple Inc. build 5465)"
#define __WCHAR_MAX__ 2147483647
#define __WCHAR_TYPE__ int
#define __WINT_TYPE__ int
#define __amd64 1
#define __amd64__ 1
#define __strong
#define __weak
#define __x86_64 1
#define __x86_64__ 1
[ron at mickey:~/devel/cln-1.2.0]$ grep define include/cln/config.h
#define _CL_CONFIG_H
#define CL_VERSION_MAJOR 1
#define CL_VERSION_MINOR 2
#define CL_VERSION_PATCHLEVEL 0
#define CL_VERSION 1.2.0
#define __i386__ 1
#define ASM_UNDERSCORE
#define HAVE_LONGLONG
#define HAVE_LONGDOUBLE 1
#define HAVE_UNISTD_H 1
#define HAVE_ALLOCA_H
#define CL_GLOBAL_CONSTRUCTOR_PREFIX "_GLOBAL__I_"
#define CL_NEED_GLOBALIZE_CTORDTOR 1
#define CL_GLOBAL_CONSTRUCTOR_SUFFIX_PIC(module) "cl_module__" #module  
"__firstglobalfun"
#define CL_GLOBAL_CONSTRUCTOR_SUFFIX_NOPIC(module) "cl_module__"  
#module "__firstglobalfun"
[ron at mickey:~/devel/cln-1.2.0]$



More information about the CLN-list mailing list