1 |
David Relson wrote: |
2 |
<snip> |
3 |
> John, |
4 |
> > |
5 |
> > That looks like what I've got. If you're up to some debugging, |
6 |
> > here's some more info: |
7 |
> > |
8 |
> > When I deliberating have the wrong kernel source in /usr/src/linux, |
9 |
> > my build fails the last few lines printed are: |
10 |
> > |
11 |
> > If you need support, post the topmost build error, and the call stack |
12 |
> > if relevant. * A complete build log is located at |
13 |
> > '/var/log/portage/x11-drivers:ati-drivers-8.552-r2:20090621-200106.log'. |
14 |
> > * The ebuild environment file is located at |
15 |
> > '/var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/environment'. |
16 |
> > |
17 |
> > |
18 |
> > |
19 |
> > Looking at file .../temp/environment I see it's a bash script and |
20 |
> > contains line 2536 is |
21 |
> > |
22 |
> > get_version || die "Unable to calculate Linux Kernel version"; |
23 |
> > |
24 |
> > which is the message in your original post. Evidently function |
25 |
> > get_version() is failing and causing the "die" command to be |
26 |
> > executed. I have function get_version() at line 2326 of |
27 |
> > .../environment. Take a look at that and see if you can figure out |
28 |
> > where it might be dying. Running the script in debug mode, i.e. using |
29 |
> > "sh -x environment", will give you detailed information about the |
30 |
> > script is finding and doing. |
31 |
> > |
32 |
Thank you, David. I appreciate your continued help! |
33 |
Opening /var/tmp/portage/x11-drivers/ati-drivers-8.552-r2/temp/die.env |
34 |
in Emacs and searching for "Unable to calculate Linux Kernel version", I |
35 |
found the following passage: |
36 |
linux-info_pkg_setup () |
37 |
{ |
38 |
get_version || die "Unable to calculate Linux Kernel version"; |
39 |
if kernel_is 2 4; then |
40 |
if [ "$( gcc-major-version )" -eq "4" ]; then |
41 |
echo; |
42 |
ewarn "Be warned !! >=sys-devel/gcc-4.0.0 isn't supported with"; |
43 |
ewarn "linux-2.4 (or modules building against a linux-2.4 |
44 |
kernel)!"; |
45 |
echo; |
46 |
ewarn "Either switch to another gcc-version (via gcc-config) |
47 |
or use a"; |
48 |
ewarn "newer kernel that supports gcc-4."; |
49 |
echo; |
50 |
ewarn "Also be aware that bugreports about gcc-4 not working"; |
51 |
ewarn "with linux-2.4 based ebuilds will be closed as INVALID!"; |
52 |
echo; |
53 |
epause 10; |
54 |
fi; |
55 |
fi; |
56 |
[ -n "${CONFIG_CHECK}" ] && check_extra_config |
57 |
} |
58 |
|
59 |
Doing "uname -r" elicits |
60 |
2.6.22-gentoo-r2-osmp |
61 |
|
62 |
Doing "equery list gcc" produces |
63 |
[ Searching for package 'gcc' in all categories among: ] |
64 |
* installed packages |
65 |
[I--] [ ] sys-devel/gcc-4.3.2-r3 (4.3) |
66 |
[I--] [ ] sys-devel/gcc-config-1.4.1 (0) |
67 |
[I--] [ ] x11-misc/gccmakedep-1.0.2 (0) |
68 |
|
69 |
|
70 |
That and the warnings in die.env suggest that I have some "modules |
71 |
building against a linux-2.4 kernel" despite running kernel 2.6.22. |
72 |
If that is the case, I may need to identify those modules and rebuild |
73 |
them against kernel 2.6.22. I'd be grateful for ideas about whether |
74 |
that's the right approach, and, if so, how to implement it. |
75 |
|
76 |
Doing "sh -x die.env" |
77 |
displays the following lines: |
78 |
+ ABI=amd64 |
79 |
+ ALSA_CARDS= |
80 |
+ ALSA_PCM_PLUGINS='adpcm alaw asym copy dmix dshare dsnoop empty |
81 |
extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul |
82 |
mulaw multi null plug rate route share shm softvol' |
83 |
+ ANT_HOME=/usr/share/ant |
84 |
+ APACHE2_MODULES='actions alias auth_basic auth_digest authn_anon |
85 |
authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default |
86 |
authz_groupfile authz_host authz_owner authz_user autoindex cache dav |
87 |
dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter |
88 |
file_cache filter headers ident imagemap include info log_config logio |
89 |
mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer |
90 |
proxy_connect proxy_http rewrite setenvif so speling status unique_id |
91 |
userdir usertrack vhost_alias' |
92 |
+ ARCH=amd64 |
93 |
+ ASFLAGS_x86=--32 |
94 |
+ ATI_URL=https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ |
95 |
+ BAD='' |
96 |
+ BASH=/bin/bash |
97 |
+ BASH_ARGC=([0]="1" [1]="0" [2]="0" [3]="0" [4]="1" [5]="1" [6]="1" |
98 |
[7]="0" [8]="0" [9]="1") |
99 |
|
100 |
The meaning of this "sh -x die.env" output is unclear to me. Does it |
101 |
contain further clues to my problem? |
102 |
|
103 |
-- |
104 |
John P. Burkett |
105 |
Department of Economics |
106 |
University of Rhode Island |
107 |
Kingston, RI 02881-0808 |
108 |
USA |
109 |
|
110 |
phone (401) 874-9195 |