NetBSD Problem Report #50658
From www@NetBSD.org Fri Jan 15 09:40:40 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4E4057ABE7
for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 Jan 2016 09:40:40 +0000 (UTC)
Message-Id: <20160115094039.540B77ACA5@mollari.NetBSD.org>
Date: Fri, 15 Jan 2016 09:40:39 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: bootstrap using 64bit ABI broken on Solaris 11.2
X-Send-Pr-Version: www-1.0
>Number: 50658
>Category: pkg
>Synopsis: bootstrap using 64bit ABI broken on Solaris 11.2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 15 09:45:00 +0000 2016
>Closed-Date: Fri Oct 13 15:21:39 +0000 2017
>Last-Modified: Fri Oct 13 15:21:39 +0000 2017
>Originator: Joern Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
SunOS pkgsrc-sol11i86 5.11 11.2 i86pc i386 i86pc
>Description:
Bootstrapping a recently synced pkgsrc tree on Solaris 11.2/i86 with
./bootstrap --abi 64 ...
results in an error while installing bootstrap-mk-files:
===> Install binary package of bootstrap-mk-files-20150908
pkg_add: Warning: package `bootstrap-mk-files-20150908' was built for a platform:
pkg_add: SunOS/x86_64 5.11 (pkg) vs. SunOS/i386 5.11 (this host)
pkg_add: 1 package addition failed
The binaries generated so far are indeed 32 bit:
$ file work/sbin/pkg_add
work/sbin/pkg_add: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped
I have successfully bootstrapped older pkgsrc releases on the same machine using the 64 bit ABI option and the same compiler.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50658: bootstrap using 64bit ABI broken on Solaris 11.2
Date: Fri, 15 Jan 2016 13:29:32 +0100
The reason is probably revision 1.219 of bootstrap. uname -p yields
"i386". Maybe a variant of "isainfo" is better suited for Solaris:
$ isainfo -b # Prints the number of bits in the address space of the
native instruction set.
64
$ isainfo -n # Prints the name of the native instruction set used by
portable applications supported by the current version of the OS.
amd64
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Fri, 15 Jan 2016 14:31:58 +0000
Responsible-Changed-Why:
A Solaris issue, clearly.
From: Jonathan Perkin <jperkin@pkgsrc.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50658 (bootstrap using 64bit ABI broken on Solaris 11.2)
Date: Fri, 15 Jan 2016 16:02:25 +0000
Please could you try this patch:
https://gist.github.com/jperkin/b220bf3c09a6fcc29aaa
Click on the "Raw" link to get the raw patch.
Thanks,
--
Jonathan Perkin www.perkin.org.uk
github.com/jperkin twitter.com/jperkin
From: =?ISO-8859-15?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Jonathan Perkin <jperkin@pkgsrc.org>, solaris-pkg-people@NetBSD.org,
gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/50658 (bootstrap using 64bit ABI broken on Solaris 11.2)
Date: Mon, 18 Jan 2016 09:14:31 +0100
On 15.01.16 17:05, Jonathan Perkin wrote:
> Please could you try this patch:
>
> https://gist.github.com/jperkin/b220bf3c09a6fcc29aaa
That looks much better:
-defaults: MACHINE=sunos5, MACHINE_ARCH=i386
-Using: MACHINE=sunos5, MACHINE_ARCH=i386
+defaults: MACHINE=sunos5, MACHINE_ARCH=x86_64
+Using: MACHINE=sunos5, MACHINE_ARCH=x86_64
bootstrap succeeds and I get 64 bit binaries.
Thanks a lot!
--
Jörn Clausen
Plattformen & Serverdienste
Hochschulrechenzentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/hrz
From: Jonathan Perkin <jperkin@pkgsrc.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50658 (bootstrap using 64bit ABI broken on Solaris 11.2)
Date: Thu, 21 Jan 2016 14:22:59 +0000
I have a fuller patch to fix this once and for all, and would appreciate
testing on diverse platforms. I'd be especially interested in any SPARC
machines you may have, with combinations of bootstrap defaults, as well as
specifying --abi=32 and --abi=64 explicitly.
The patch is here:
https://github.com/jsonn/pkgsrc/compare/trunk...joyent:joyent/dev/machine-arch.patch
and should be applied to a clean checkout of pkgsrc trunk. Once
bootstrapped, performing a 'bmake install' of pkgtools/digest should be
sufficient to prove the patch works.
Thanks,
--
Jonathan Perkin www.perkin.org.uk
github.com/jperkin twitter.com/jperkin
State-Changed-From-To: open->closed
State-Changed-By: jperkin@NetBSD.org
State-Changed-When: Fri, 13 Oct 2017 15:21:39 +0000
State-Changed-Why:
This was fixed a while back.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.