[OpenIndiana-discuss] Mercurial 2.3.1 - local compile fails

Ewald Ertl ewald.ertl at gmail.com
Fri Sep 7 06:22:23 UTC 2012


Hi,

On Thu, Sep 6, 2012 at 10:59 AM, Open Indiana <openindiana at out-side.nl>wrote:

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

Today I booted into oi151_a5 and there the compilation of the same
Mercurial package
didn't have any problem, where the main version of python is also 2.6.4.


>
> -----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
>
> Hello,
>
> 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
> 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
> CCSHARED=   -KPIC
>
> Now after changing this line to "CCSHARED=   -fPIC", mercurial can be
> compiled.
>
> Can this be some inconsistency from former  updates, or is there a problem
> from the last update.
>
> The same procedure works on Solaris 10.
>
> Ewald
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>


More information about the OpenIndiana-discuss mailing list