[OpenIndiana-discuss] Mercurial 2.3.1 - local compile fails

Open Indiana openindiana at out-side.nl
Thu Sep 6 08:59:50 UTC 2012

As far as i know it is a Python 2.6 issue. It "should" fail on solaris too. 

-----Original Message-----
From: Ewald Ertl [mailto:ewald.ertl at gmail.com] 
Sent: donderdag 6 september 2012 9:50
To: Discussion list for OpenIndiana
Subject: [OpenIndiana-discuss] Mercurial 2.3.1 - local compile fails


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

Now Mercurial 2.3.1 is release, so I downloaded the package extracted the
source 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
/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.

OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org

More information about the OpenIndiana-discuss mailing list