In compiling Python 2.7.1 on RHEL I run into the following error message when running make. gcc: unrecognized option '-n32' gcc -pthread -n32 -Xlinker -export-dynamic -o python \ Modules/python.o \ -L. -lpython2.7 -lpthread -ldl -lutil -lm gcc: unrecognized option '-n32' running build running build_ext Configured with: ./configure --prefix=/cs/local --enable-shared --libdir=/cs/local/lib64 --with-gcc=yes GCC: # gcc --version gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13) Copyright (C) 2010 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. I checked the bug tracker, but I only thing I see related deals with IRIX.
> CFAGS and friends are not set. How about LDFLAGS? By the way, the build should have succeeded anyway: the "python" executable should be at the root of your build directory.
I found the problem, it is with my system. In the past we used to support SGI hosts and I had the SGI_ABI environmental variable set to -n32. Please consider this issue closed.