NetBSD Problem Report #45364

From  Tue Sep 13 15:01:32 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id C8EEE63C40C
	for <>; Tue, 13 Sep 2011 15:01:32 +0000 (UTC)
Message-Id: <>
Date: Tue, 13 Sep 2011 15:01:31 +0000 (UTC)
Subject: devel/pcre fails to build on Solaris10 with gcc in 64bit mode
X-Send-Pr-Version: www-1.0

>Number:         45364
>Category:       pkg
>Synopsis:       devel/pcre fails to build on Solaris10 with gcc in 64bit mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 13 15:05:00 +0000 2011
>Last-Modified:  Thu Sep 22 11:46:37 +0000 2011
>Originator:     Dmitry Afanasiev
SunOS sunray 5.10 Generic_144489-01 i86pc i386 i86pc
devel/pcre fails to build on Solaris 10 after these messages:
/usr/pkg/bin/pdksh ./libtool --tag=CXX    --mode=link g++   -O -Wno-format -fno-builtin -version-info 0:0:0 -Wl,-R/usr/pkg/lib -o -rpath /usr/pkg/lib pcrecpp.lo  pcre_scanner.lo pcre_stringpiece.lo
libtool: link: g++ -shared -nostdlib -Wl,-R/usr/pkg/lib /usr/lib/crti.o /usr/lib/values-Xa.o /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtbegin.o  .libs/pcrecpp.o .libs/pcre_scanner.o .libs/pcre_stringpiece.o   -Wl,-R -Wl,/root/pkgsrc/devel/pcre/work/pcre-8.12/.libs -Wl,-R -Wl,/usr/sfw/lib -Wl,-R -Wl,/usr/pkg/lib -Wl, -R -Wl,/usr/sfw/lib ./.libs/ -L/root/pkgsrc/devel/pcre/work/.buildlink/lib -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../.. /usr/sfw/lib/ -L/usr/sfw/lib -lm -lgcc_s /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtend.o /usr/lib/crtn.o  -Wl,-R/usr/pkg/lib   -Wl,-h -Wl, -o .libs/
ld: fatal: file .libs/pcrecpp.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/
collect2: ld returned 1 exit status  
*** Error code 1

The root cause is in the using:

And the problem is simular to pkg/45102.

After manual patching of work/.wrapper/tmp/cache build was complete.
But I do not understand how this file is formed in order to provide a patch.
On Solaris10/amd64:
# ./bootstrap --abi=64
(also I patched bootstrap to use x86_64 as MACHINE_ARCH)
# cd ../devel/pcre
# bmake



Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-When: Thu, 22 Sep 2011 11:46:37 +0000
Solaris bootstrap issue with --abi=64?


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.