NetBSD Problem Report #42109
From www@NetBSD.org Tue Sep 22 07:54:34 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 6133E63C36B
for <gnats-bugs@gnats.netbsd.org>; Tue, 22 Sep 2009 07:54:34 +0000 (UTC)
Message-Id: <20090922075434.0099E63C309@www.NetBSD.org>
Date: Tue, 22 Sep 2009 07:54:33 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: lang/gcc44 does not compile with Sun Studio Compiler
X-Send-Pr-Version: www-1.0
>Number: 42109
>Category: pkg
>Synopsis: lang/gcc44 does not compile with Sun Studio Compiler
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 22 07:55:00 +0000 2009
>Closed-Date: Sun May 15 02:28:05 +0000 2022
>Last-Modified: Sun May 15 02:28:05 +0000 2022
>Originator: Jörn Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
SunOS spare4200 5.10 Generic_139556-08 i86pc i386 i86pc
>Description:
Compiling lang/gcc44 from a newly bootstrapped pkgsrc using Sun Studio 12 fails with
cc -g -DIN_GCC -DHAVE_CONFIG_H -L/usr/pkgsrc/gcc4test/lib -Wl,-R/usr/pkgsrc/gcc4test/lib -L/usr/lib -Wl,-R/usr/lib -o xgcc gcc.o opts-common.o gcc-options.o gccspec.o \
intl.o prefix.o version.o driver-i386.o ../libcpp/libcpp.a /usr/pkgsrc/gcc4test/lib/libintl.so /usr/pkgsrc/gcc4test/lib/libiconv.so /usr/lib/libc.so -R/usr/pkgsrc/gcc4test/lib /usr/pkgsrc/gcc4test/lib/libiconv.so -R/usr/pkgsrc/gcc4test/lib ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
Undefined first referenced
symbol in file
__gmpn_perfect_square_p gcc.o
__gmpz_tdiv_q gcc.o
__gmpq_set gcc.o
__gmpz_set gcc.o
__gmpn_add_n gcc.o
__gmpn_sub_n gcc.o
__gmpn_popcount gcc.o
ld: fatal: Symbol referencing errors. No output written to xgcc
gmake[3]: *** [xgcc] Error 1
gmake[3]: Leaving directory `/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj'
gmake: *** [all] Error 2
*** Error code 2
>How-To-Repeat:
>Fix:
add "-lgmp" to list of linker flags
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->bjs
Responsible-Changed-By: reed@NetBSD.org
Responsible-Changed-When: Tue, 22 Sep 2009 10:39:32 +0000
Responsible-Changed-Why:
Assign to maintainer.
From: Dan McMahill <dmcmahill@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42109 CVS commit: pkgsrc/lang/gcc44
Date: Thu, 24 Sep 2009 11:58:35 +0000
Module Name: pkgsrc
Committed By: dmcmahill
Date: Thu Sep 24 11:58:35 UTC 2009
Modified Files:
pkgsrc/lang/gcc44: Makefile
Log Message:
add LIBS.SunOS+= -lgmp per PR42109
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/gcc44/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dmcmahill@NetBSD.org
State-Changed-When: Thu, 24 Sep 2009 12:10:08 +0000
State-Changed-Why:
Made a change which should help
.
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/42109
Date: Wed, 21 Oct 2009 10:32:58 +0200
It's always nice to have the Solaris GCC maintainer in house...
See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41771
for more information and how the story develops. Hopefully this will
lead to a fix for this PR.
--
Jörn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/42109
Date: Fri, 23 Oct 2009 16:08:09 +0200
I followed the advice in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41771
and downgraded devel/gmp to version 4.3.0. This version conflicts with
patch-ad, which seems to fix exactly the problem mentioned in the bug
report above. After removing the patch, compilation now breaks like this:
gmake[3]: Entering directory
`/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/libdecnumber'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory
`/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/libdecnumber'
gmake[3]: Entering directory
`/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/gcc'
/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/./gcc/xgcc
-B/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/./gcc/
-B/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/bin/
-B/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/lib/ -isystem
/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/include -isystem
/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/sys-include -dumpspecs >
tmp-specs
ld.so.1: xgcc: fatal: libintl.so.3: open failed: No such file or directory
/bin/bash: line 1: 22145 Killed
/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/./gcc/xgcc
-B/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/./gcc/
-B/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/bin/
-B/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/lib/ -isystem
/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/include -isystem
/usr/pkgsrc/gcc44/gcc44/i386-pc-solaris2.10/sys-include -dumpspecs
>tmp-specs
gmake[3]: *** [specs] Error 137
gmake[3]: Leaving directory
`/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory
`/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj'
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory
`/software/pkgsrc/source/pkgsrc/lang/gcc44/work/obj'
gmake: *** [all] Error 2
*** Error code 2
Indeed, the interim gcc is not linked correctly:
$ ldd ./work/obj/gcc/xgcc
libintl.so.3 => (file not found)
libiconv.so.2 => (file not found)
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
I'm not sure in which phase this xgcc is built, but this one finds its
libraries:
$ ldd ./work/obj/prev-gcc/xgcc
libintl.so.3 => /usr/pkgsrc/gcc44/lib/libintl.so.3
libiconv.so.2 => /usr/pkgsrc/gcc44/lib/libiconv.so.2
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
--
Jörn Clausen joern.clausen@uni-bielefeld.de
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: =?ISO-8859-1?Q?J=F6rn?= Clausen <joern.clausen@uni-bielefeld.de>
Subject: Re: pkg/42109
Date: Fri, 23 Oct 2009 16:21:36 +0200
> $ ldd ./work/obj/gcc/xgcc
> libintl.so.3 => (file not found)
> libiconv.so.2 => (file not found)
> libc.so.1 => /lib/libc.so.1
> libm.so.2 => /lib/libm.so.2
I propose that we build the lang/gcc44 package with --disable-nls and
drop the gettext-libs dependency. I've always built GCC binaries
this way to avoid cross dependencies and chicken-and-egg situations.
At least we should have an nls PKG_OPTION and leave it disabled by
default. imo.
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 03 May 2010 04:18:27 +0000
State-Changed-Why:
problem is not fully fixed
Responsible-Changed-From-To: bjs->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 28 Feb 2011 15:10:33 +0000
Responsible-Changed-Why:
Reset responsible field for retired developer.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 15 May 2022 02:28:05 +0000
State-Changed-Why:
we dropped gcc 4.4 when cleaning up old gcc versions some time back
>Unformatted:
Added LIBS.SunOS+= -lgmp to lang/gcc44/Makefile
Could you see if this helped?
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.