On Fri, Jul 17, 2015 at 11:21 AM, Senthil Kumaran <senthil@uthcode.com> wrote:
This failure happens only in 2.7 branch in the source tree.
[localhost 2.7]$ hg branch 2.7
[localhost 2.7]$ hg head 2.7 changeset: 96916:ca78b9449e04 branch: 2.7 user: Zachary Ware <zachary.ware@gmail.com> date: Thu Jul 16 00:24:48 2015 -0500
$./configure
is OK
$ make /opt/twitter/bin/gcc-4.2 -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/mactoolboxglue.o Python/mactoolboxglue.c In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:55, from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20, from Include/pymactoolbox.h:10, from Python/mactoolboxglue.c:27: /System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:486: error: expected ‘,’ or ‘}’ before ‘__attribute__’ make: *** [Python/mactoolboxglue.o] Error 1
Are you really meaning to use GCC 4.2 (that is ancient)?
I can reproduce your problem, but only with gcc-4.2. Clang works just fine. Here are the compiler versions I am using:
drago:llvm meadori$ gcc-4.2 --version couldn't understand kern.osversion `14.3.0' i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
drago:llvm meadori$ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.3.0 Thread model: posix
Hope that helps,
-- Meador