From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MIXeJ-0007PT-6u for garchives@archives.gentoo.org; Mon, 22 Jun 2009 00:44:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF9E8E049D; Mon, 22 Jun 2009 00:44:37 +0000 (UTC) Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by pigeon.gentoo.org (Postfix) with ESMTP id 9CB4EE049D for ; Mon, 22 Jun 2009 00:44:37 +0000 (UTC) Received: from [192.168.1.20] ([96.233.148.239]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KLM002Z67EAFDC3@vms173003.mailsrvcs.net> for gentoo-amd64@lists.gentoo.org; Sun, 21 Jun 2009 19:44:35 -0500 (CDT) Message-id: <4A3ED3F2.4000700@uri.edu> Date: Sun, 21 Jun 2009 20:44:34 -0400 From: "John P. Burkett" User-Agent: Thunderbird 2.0.0.21 (X11/20090608) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@lists.gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: [gentoo-amd64] emerge -eav system failed with ati-drivers X-Enigmail-Version: 0.95.7 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Archives-Salt: c197c124-c6c0-420c-853b-33a98c2fb508 X-Archives-Hash: 3bca58acaa6fe88140c77976c7fb96f4 David Relson wrote: > John, > > > > That looks like what I've got. If you're up to some debugging, > > here's some more info: > > > > When I deliberating have the wrong kernel source in /usr/src/linux, > > my build fails the last few lines printed are: > > > > If you need support, post the topmost build error, and the call stack > > if relevant. * A complete build log is located at > > '/var/log/portage/x11-drivers:ati-drivers-8.552-r2:20090621-200106.log'. > > * The ebuild environment file is located at > > '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/environment'. > > > > > > > > Looking at file .../temp/environment I see it's a bash script and > > contains line 2536 is > > > > get_version || die "Unable to calculate Linux Kernel version"; > > > > which is the message in your original post. Evidently function > > get_version() is failing and causing the "die" command to be > > executed. I have function get_version() at line 2326 of > > .../environment. Take a look at that and see if you can figure out > > where it might be dying. Running the script in debug mode, i.e. using > > "sh -x environment", will give you detailed information about the > > script is finding and doing. > > Thank you, David. I appreciate your continued help! Opening /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/die.env in Emacs and searching for "Unable to calculate Linux Kernel version", I found the following passage: linux-info_pkg_setup () { get_version || die "Unable to calculate Linux Kernel version"; if kernel_is 2 4; then if [ "$( gcc-major-version )" -eq "4" ]; then echo; ewarn "Be warned !! >=sys-devel/gcc-4.0.0 isn't supported with"; ewarn "linux-2.4 (or modules building against a linux-2.4 kernel)!"; echo; ewarn "Either switch to another gcc-version (via gcc-config) or use a"; ewarn "newer kernel that supports gcc-4."; echo; ewarn "Also be aware that bugreports about gcc-4 not working"; ewarn "with linux-2.4 based ebuilds will be closed as INVALID!"; echo; epause 10; fi; fi; [ -n "${CONFIG_CHECK}" ] && check_extra_config } Doing "uname -r" elicits 2.6.22-gentoo-r2-osmp Doing "equery list gcc" produces [ Searching for package 'gcc' in all categories among: ] * installed packages [I--] [ ] sys-devel/gcc-4.3.2-r3 (4.3) [I--] [ ] sys-devel/gcc-config-1.4.1 (0) [I--] [ ] x11-misc/gccmakedep-1.0.2 (0) That and the warnings in die.env suggest that I have some "modules building against a linux-2.4 kernel" despite running kernel 2.6.22. If that is the case, I may need to identify those modules and rebuild them against kernel 2.6.22. I'd be grateful for ideas about whether that's the right approach, and, if so, how to implement it. Doing "sh -x die.env" displays the following lines: + ABI=amd64 + ALSA_CARDS= + ALSA_PCM_PLUGINS='adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol' + ANT_HOME=/usr/share/ant + APACHE2_MODULES='actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias' + ARCH=amd64 + ASFLAGS_x86=--32 + ATI_URL=https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ + BAD='' + BASH=/bin/bash + BASH_ARGC=([0]="1" [1]="0" [2]="0" [3]="0" [4]="1" [5]="1" [6]="1" [7]="0" [8]="0" [9]="1") The meaning of this "sh -x die.env" output is unclear to me. Does it contain further clues to my problem? -- John P. Burkett Department of Economics University of Rhode Island Kingston, RI 02881-0808 USA phone (401) 874-9195