[OpenIndiana-discuss] Mercurial 2.3.1 - local compile fails

Ewald Ertl ewald.ertl at gmail.com
Thu Sep 6 07:49:35 UTC 2012


yesterday, I upgraded my local installation of OpenIndiana to prestable6.

Now Mercurial 2.3.1 is release, so I downloaded the package extracted the
and issued a "gmake local" compile run, but this fails now.

The error message is:

running build_ext
building 'mercurial.base85' extension
creating build
creating build/temp.solaris-2.11-i86pc-2.6
creating build/temp.solaris-2.11-i86pc-2.6/mercurial
/usr/lib/python2.6/pycc -DNDEBUG -KPIC -I/usr/include/python2.6 -c
mercurial/base85.c -o build/temp.solaris-2.11-i86pc-2.6/mercurial/base85.o
gcc: error: unrecognized option '-KPIC'
error: command '/usr/lib/python2.6/pycc' failed with exit status 1

After a little bit searching, I found that pycc already gets the compile
option -KPIC from the calling process.
So I search in /usr/lib/python2.6 and found in
/usr/lib/python2.6/config/Makefile the Option -KPIC in the line

Now after changing this line to "CCSHARED=   -fPIC", mercurial can be

Can this be some inconsistency from former  updates, or is there a problem
from the last update.

The same procedure works on Solaris 10.


More information about the OpenIndiana-discuss mailing list