ludwigschwardt/python-readline — Issue #11: Compilation fail with gcc 4.6
Author: fabianp
Created: 2011-12-23 21:13:09+00:00
State: open

Got gcc 4.6 from macports and tried building. It seems some flags are incompatible with this release of gcc:

```

~/src/readline-6.2.1 python setup.py build
running build
running build_ext
building 'readline' extension
creating build
creating build/temp.macosx-10.7-x86_64-2.7
creating build/temp.macosx-10.7-x86_64-2.7/Modules
creating build/temp.macosx-10.7-x86_64-2.7/Modules/2.x
gcc -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/2.x/readline.c -o build/temp.macosx-10.7-x86_64-2.7/Modules/2.x/readline.o -Wno-strict-prototypes -isysroot /Developer/SDKs/MacOSX10.7.sdk -arch i386 -arch x86_64
gcc: error: i386: No such file or directory
gcc: error: x86_64: No such file or directory
gcc: error: unrecognized option '-arch'
gcc: error: unrecognized option '-arch'
error: command 'gcc' failed with exit status 1
```