From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FNLqw-0008Qk-N4 for garchives@archives.gentoo.org; Sun, 26 Mar 2006 03:23:43 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k2Q3NEm1012950; Sun, 26 Mar 2006 03:23:14 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k2Q3LIxl020005 for ; Sun, 26 Mar 2006 03:21:18 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FNLoc-00062D-2V for gentoo-dev@lists.gentoo.org; Sun, 26 Mar 2006 03:21:18 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FNLoX-0004FM-CN for gentoo-dev@gentoo.org; Sun, 26 Mar 2006 05:21:13 +0200 Received: from 24.72.131.65 ([24.72.131.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Mar 2006 05:21:13 +0200 Received: from dirtyepic.sk by 24.72.131.65 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Mar 2006 05:21:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: R Hill Subject: [gentoo-dev] Re: toolchain.eclass and gcc 4.1 snapshots Date: Sat, 25 Mar 2006 21:20:50 -0600 Message-ID: References: <442541D3.3070500@telia.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 24.72.131.65 User-Agent: Mail/News 1.5 (X11/20060324) In-Reply-To: <442541D3.3070500@telia.com> Sender: news X-Archives-Salt: 81be7e4f-dd12-4fc5-8a54-da9fbe14e03f X-Archives-Hash: 7304735101b548baa4e4439a45039075 Simon Strandman wrote: > It seems like toolchain.eclass does something wrong when configuring gcc > 4.1 snapshots. I decided to try gcc 4.1 on my server so I created a > gcc-4.1.1.20060324 ebuild and defined the SNAPSHOT variable in it > (current cvs has a lot of bugfixes since the release). This is the way > I've done it with gcc 4.0 and I never had any problems then. The ebuild > emerges without problems but it installs files in both > /usr/lib/gcc/i686-pc-linux-gnu/4.1.1-20060324 and > /usr/lib/gcc/i686-pc-linux-gnu/4.1.1. So when I try to emerge anything > it always fails with errors like this: > > configure:2239: i686-pc-linux-gnu-gcc -O2 -march=pentium3 -pipe > -fomit-frame-pointer -D_FORTIFY_SOURCE=1 conftest.c >&5 > /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: > cannot find -lgcc_s > collect2: ld returned 1 exit status > > Just copying over the files from one dir to the other and then > symlinking it works around the problems. Any ideas? This is caused by changes to the build system in 4.1 and GCC's BASE-VER not matching portage's ${PV} in snapshot builds. Most of the system directories are set up by portage during configure using ${PV} as part of the dirname. (eg. includedir=/usr//gcc//${PV}/include). However, libdir and libexecdir aren't set by portage (because they generate really strange paths w/ --enable-version-specific-runtime-libs in GCC 3.3/3.4) and default to /usr//gcc//BASE-VER/blah. When ${PV} != BASE-VER, wackiness ensues. Try this in your ebuild: src_unpack() { toolchain_src_unpack echo ${PV/_/-} > "${S}"/gcc/BASE-VER echo "" > "${S}"/gcc/DATESTAMP } --de. -- gentoo-dev@gentoo.org mailing list