develooper Front page | perl.perl5.porters | Postings from March 2015

Re: HP-UX use64bitint archname

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
March 5, 2015 14:46
Subject:
Re: HP-UX use64bitint archname
Message ID:
20150305154552.098ce8c8@pc09.procura.nl
On Wed, 25 Feb 2015 09:34:38 +0100, Gisle Aas <gisle@activestate.com>
wrote:

> On Wed, Feb 25, 2015 at 12:13 AM, Tony Cook <tony@develop-help.com> wrote:
> 
> > On Tue, Feb 24, 2015 at 09:33:15PM +0100, Gisle Aas wrote:
> > > We started building perl on HP-UX using the -Duse64bitint option and
> > > discovered that this caused it to have the same archname as the
> > > -Duse64bitall builds. This is confusing since they are not binary
> > > compatible builds.  Fixed by the attached patch.
> >
> > This looks wrong to me.
> >
> > It only handles -Duse64bitall on the Configure command-line, but not
> > when selected during a non -d option run.
> >
> > I think you need the hints file to produce a use64bitall.cbu which
> > sets the archname64 appropriately after use64bitall is finalized, just
> > as hints/solaris_2.sh does.
> >
> 
> This sounds really complicated for such a marginal use case.  There are
> lots of other tests for "$use64bitall" in the hpux hints file, so I guess
> they will also then have the same issue.  I still think the provided patch
> is an improvement.  Fixing the hints file properly can come later if
> somebody that understands this cares enough.

I suggest:

32bit:    IA64.ARCHREV_0
64bitint: IA64.ARCHREV_0-64int
64bitall: IA64.ARCHREV_0-LP64

if all agree, I'll make it so


HP-UX 11.31/64 U  rx2660/64 Itanium 2 9100/1710(2) ia64  4075 Mb
HP C-ANSI-C

$ grep -P '^(config_args|archlib|archname64|arhname|myarchname|osname)=' config.sh

config_args='-Dusedevel -des'
archlib='/pro/lib/perl5/5.21.10/IA64.ARCHREV_0'
archname64='LP64'
archname='IA64.ARCHREV_0'
myarchname='ia64-hpux'
osname='hpux'

av.o:           ELF-32 relocatable object file - IA64


config_args='-Dusedevel -Duse64bitint -des'
archlib='/pro/lib/perl5/5.21.10/IA64.ARCHREV_0-LP64'
archname64='LP64'
archname='IA64.ARCHREV_0-LP64'
myarchname='ia64-hpux'
osname='hpux'

av.o:           ELF-32 relocatable object file - IA64


config_args='-Dusedevel -Duse64bitall -des'
archlib='/pro/lib/perl5/5.21.10/IA64.ARCHREV_0-LP64'
archname64='LP64'
archname='IA64.ARCHREV_0-LP64'
myarchname='ia64-hpux'
osname='hpux'

av.o:           ELF-64 relocatable object file - IA64


Compare to Linux

Built on i686

archlib='/pro/lib/perl5/5.10.0/i686-linux-64int';
archname64='64int';
archname='i686-linux-64int';
config_args='-Duse64bitint -des';
myarchname='i686-linux';
osname='linux';

archlib='/pro/lib/perl5/5.12.2/i686-linux-64int-ld';
archname64='64int';
archname='i686-linux-64int-ld';
config_args='-Duse64bitint -Duselongdouble -des';
myarchname='i686-linux';
osname='linux';

archlib='/pro/lib/perl5/5.14.1/i686-linux-64int-ld';
archname64='64int';
archname='i686-linux-64int-ld';
config_args='-Duse64bitint -Duselongdouble -des';
myarchname='i686-linux';
osname='linux';

archlib='/pro/lib/perl5/5.16.3/i686-linux-64int';
archname64='64int';
archname='i686-linux-64int';
config_args='-Duse64bitint -Duselongdouble -des';
myarchname='i686-linux';
osname='linux';

archlib='/pro/lib/perl5/5.18.2/i686-linux-64int-ld';
archname64='64int';
archname='i686-linux-64int-ld';
config_args='-Duse64bitint -Duselongdouble -des';
myarchname='i686-linux';
osname='linux';

archlib='/pro/lib/perl5/5.20.0/i686-linux-thread-multi-64int-ld';
archname64='64int';
archname='i686-linux-thread-multi-64int-ld';
config_args='-Dusedevel -Uversiononly -Dinc_version_list=none -Duse64bitint -Dusethreads -Duseithreads -Duselongdouble -des';
myarchname='i686-linux';
osname='linux';

Built on x86_64:

archlib='/pro/lib/perl5/5.20.1/x86_64-linux-thread-multi-ld';
archname64='';
archname='x86_64-linux-thread-multi-ld';
config_args='-Duse64bitall -Dusethreads -Duseithreads -Duselongdouble -Uversiononly -Dinc_version_list=none -des';
myarchname='x86_64-linux';
osname='linux';

archlib='/pro/lib/perl5/5.20.2/x86_64-linux-thread-multi-ld';
archname64='';
archname='x86_64-linux-thread-multi-ld';
config_args='-Dusedevel -Duse64bitall -Dusethreads -Duseithreads -Duselongdouble -Uversiononly -Dinc_version_list=none -des';
myarchname='x86_64-linux';
osname='linux';

archlib='/pro/lib/perl5/5.21.9/x86_64-linux-thread-multi-ld';
archname64='';
archname='x86_64-linux-thread-multi-ld';
config_args='-Dusedevel -Duse64bitall -Dusethreads -Duseithreads -Duselongdouble -des';
myarchname='x86_64-linux';
osname='linux';

archlib='/pro/lib/perl5/5.8.8/i686-linux-64int';
archname64='64int';
archname='i686-linux-64int';
config_args='-Duse64bitint -Uversiononly -Dinc_version_list=none -des';
myarchname='i686-linux';
osname='linux';




-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.21   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About