2.7 compilation problem on Mac 10.10.4 - Failure with mac specific modules
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
If I disable Mac specific modules
$ ./configure --disable-toolbox-glue $ make is fine.
Has any else observed this? I am trying to determine if this a bug or an incompatibility of Mac Command Line Tools I have with the 2.7 sources, most likely it is the later.
-- Senthil
On the road in the wilds of the Rockies at the moment I can check tonight but it should work. What version of OS X and Xcode :(xcodebuild -version)?
-- Ned Deily
On Jul 17, 2015, at 10:21, 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
If I disable Mac specific modules
$ ./configure --disable-toolbox-glue $ make is fine.
Has any else observed this? I am trying to determine if this a bug or an incompatibility of Mac Command Line Tools I have with the 2.7 sources, most likely it is the later.
-- Senthil
python-committers mailing list python-committers@python.org https://mail.python.org/mailman/listinfo/python-committers
I am on 10.10.4 - Yosemite
$ xcodebuild -version Xcode 6.1.1 Build version 6A2008a
On Fri, Jul 17, 2015 at 9:44 AM, Ned Deily <nad@acm.org> wrote:
On the road in the wilds of the Rockies at the moment I can check tonight but it should work. What version of OS X and Xcode :(xcodebuild -version)?
-- Ned Deily
On Jul 17, 2015, at 10:21, 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
If I disable Mac specific modules
$ ./configure --disable-toolbox-glue $ make is fine.
Has any else observed this? I am trying to determine if this a bug or an incompatibility of Mac Command Line Tools I have with the 2.7 sources, most likely it is the later.
-- Senthil
python-committers mailing list python-committers@python.org https://mail.python.org/mailman/listinfo/python-committers
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
On Jul 17, 2015, at 13:26, Meador Inge <meadori@gmail.com> wrote:
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's right. Don't use the old gcc-4.2 with the current SDK / Command Line Tools. Let CC default to "cc" or set it to "clang"; presumably something is setting the CC environment variable to /opt/twitter/bin/gcc-4.2.
-- Ned Deily nad@acm.org -- []
On Fri, Jul 17, 2015 at 8:26 PM, Ned Deily <nad@acm.org> wrote:
Meador's right. Don't use the old gcc-4.2 with the current SDK / Command Line Tools. Let CC default to "cc" or set it to "clang"; presumably something is setting the CC environment variable to /opt/twitter/bin/gcc-4.2.
Thank you for your help. The old gcc escaped my attention. 3.x compiling fine with old gcc didn't make me suspect that. But it was indeed the case. I set the CC envvar to the gcc provided by Apple and it was alright.
Thank you, Senthil
participants (3)
-
Meador Inge
-
Ned Deily
-
Senthil Kumaran