Issue #115 resolved

Build Errors: Pygame + Python 2.7.2 (Homebrew) + LLVM-GCC-4.2 + OSX Lion 10.7.3

Anonymous created an issue

I'm getting errors when building pygame. I followed the instructions in #103 and #82 but I always get the same result:

Errors:

{{{ building 'pygame.imageext' extension

creating build/temp.macosx-10.5-x86_64-2.7

creating build/temp.macosx-10.5-x86_64-2.7/src

llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -arch x86_64 -Ddarwin -D_THREAD_SAFE -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/X11/include -I/usr/local/include -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/imageext.c -o build/temp.macosx-10.5-x86_64-2.7/src/imageext.o

src/imageext.c:1: error: bad value (native) for -march= switch

src/imageext.c:1: error: bad value (native) for -mtune= switch

error: command 'llvm-gcc-4.2' failed with exit status 1

}}}

If it helps I have Xcode 4.3.2 and Command Line Tools for Xcode (Late March 2012) installed.

Has anyone getting this error? Any fix?

EDIT: Attached the complete output from the failing build process.

Comments (8)

  1. Log in to comment