I'm trying to build python 2.6.8 from source code on an AIX 6.5 machine, but several modules can't build successful. In the build process, there is a XLC man page jumps out and stucks. I have to press q
to end the man page and the process will continue. So I'm thinking whether is because the build invokes the default XLC compiler, and I'm trying to change the default compiler to g++:
make clean
CC=/bin/gcc CXX=/bin/g++ ./configure
make
But it seems doesn't work, the XLC man page still pops up, and the moduls fail to build.
How can I make sure it will use g++ instead of XLC? Thanks.
Update
This is the log after CC=/bin/gcc CXX=/bin/g++ ./configure
-bash-3.2$ CC=/bin/gcc CXX=/bin/g++ ./configure
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... aix6
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... 00F63F144C00
checking for --without-gcc...
checking for gcc... cc_r
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc_r accepts -g... yes
checking for cc_r option to accept ISO C89... -qlanglvl=extc89
checking for --with-cxx-main=<compiler>... no
checking how to run the C preprocessor... cc_r -qlanglvl=extc89 -E
checking for grep that handles long lines and -e... /opt/freeware/bin/grep
checking for egrep... /opt/freeware/bin/grep -E
In that I see the line checking whether we are using the GNU C compiler... no
, does that mean it is not using the gcc?
And also in the log of make
checking for __attribute__((visibility("hidden")))... no
cc_r: 1501-210 (W) command option t contains an incorrect subargument
right after the above log, the man page of xlc pops up.