Skip to contentSkip to conversation

can't compile kernels lately (2.6.16.5 and up)

DISCUSSION Grzegorz Jaśkiewicz 3 participants 7 messages Apr 26, 2006 – Apr 27, 2006 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw
root@puppet:/usr/src/linux-2.6.16.11# make
  CHK     include/linux/version.h
  HOSTCC  scripts/mod/file2alias.o
scripts/mod/file2alias.c:386: warning: 'struct input_device_id'
declared inside parameter list
scripts/mod/file2alias.c:386: warning: its scope is only this
definition or declaration, which is probably not what you want
scripts/mod/file2alias.c: In function 'do_input_entry':
scripts/mod/file2alias.c:390: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:390: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:390: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:390: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:390: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:392: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:392: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:392: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:392: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:392: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:398: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:399: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:401: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:402: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:404: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:405: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:407: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:408: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:410: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:411: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:413: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:414: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:416: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:417: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:419: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:420: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:422: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c:423: error: dereferencing pointer to incomplete type
scripts/mod/file2alias.c: In function 'handle_moddevtable':
scripts/mod/file2alias.c:515: error: invalid application of 'sizeof'
to incomplete type 'struct input_device_id'
make[2]: *** [scripts/mod/file2alias.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

any hints ? I can see that file2alias.c is using kernel-only includes, there might be something missing to make it work (this is a hack, and you know it :P)
--
GJ

#1 lore raw
Quoted 67 lines · Grzegorz Jaśkiewicz
root@puppet:/usr/src/linux-2.6.16.11# make
 CHK     include/linux/version.h
 HOSTCC  scripts/mod/file2alias.o
scripts/mod/file2alias.c:386: warning: 'struct input_device_id'
declared inside parameter list
scripts/mod/file2alias.c:386: warning: its scope is only this
definition or declaration, which is probably not what you want
scripts/mod/file2alias.c: In function 'do_input_entry':
scripts/mod/file2alias.c:390: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:390: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:390: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:390: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:390: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:391: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:391: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:391: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:391: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:392: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:392: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:392: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:392: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:392: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:394: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:394: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:394: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:394: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:398: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:399: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:401: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:402: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:404: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:405: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:407: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:408: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:410: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:411: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:413: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:414: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:416: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:417: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:419: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c:420: error:
dereferencing pointer to incomplete type
scripts/mod/file2alias.c:422: error: dereferencing pointer to
incomplete type scripts/mod/file2alias.c:423: error: dereferencing
pointer to incomplete type scripts/mod/file2alias.c: In function
'handle_moddevtable':
scripts/mod/file2alias.c:515: error: invalid application of 'sizeof'
to incomplete type 'struct input_device_id'
make[2]: *** [scripts/mod/file2alias.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
Quoted 3 lines

any hints ? I can see that file2alias.c is using kernel-only includes, there might be something missing to make it work (this is a hack, and you know it :P)

This has a slight taste of a bzip2 error. As I'm instantly running 2.6.16.9, and have .11 ready for a reboot, I've not encountered any such with my compiles here, but after having been burnt a couple of times, I now get the .gz files to src the stuff and have not had that sort of thing happen since. YMMV of course, but its one suggestion of something to try.

Quoted 7 lines

--
GJ
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 7 lines
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.
#2 lore raw

don't think that's the issue man. I got 2.6.16.5 from tar.bz2, than just upgraded with patches to 2.6.16.9, where it stopped to compile. Now with 2.6.16.11 it still doens't work

--
GJ

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 8 lines

I did all that without errors. I don't think it's a tarball problem at all. It looks more like a toolchain problem.

Were there any other errors or warnings, e.g., when scripts/mod/file2alias.c does
#include "../../include/linux/input.h"
does that generate any error or warning?

Quoted 4 lines

I think that your last comment was closer to the real problem. All of the errors are related to input_device_id.

What CPU architecture/type are you doing this on?

x86, pentim M toshiba laptop.

--
GJ

#9 lore raw
In reply to Grzegorz Jaśkiewicz
Quoted 3 lines · Grzegorz Jaśkiewicz

don't think that's the issue man. I got 2.6.16.5 from tar.bz2, than just upgraded with patches to 2.6.16.9, where it stopped to compile. Now with 2.6.16.11 it still doens't work

I'm now booted to 2.6.16.11, and here, from my buildit script, is the list of patches used, most of them simply saved to /usr/src from this list:
VEROLD="linux-2.6.16.9"
# This is the src file to be used
VERSRC="linux-2.6.16"
# These are the patchfile(s) to be used VERP1="../patch-2.6.16.3" VERP2="../patch-2.6.16.3-2.6.16.4" VERP3="../patch-2.6.16.5"
VERP4="../patch-2.6.16.6"
VERP5="../patch-2.6.16.7"
VERP6="../patch-2.6.16.8"
VERP7="../patch-2.6.16.9"
VERP8="../patch-2.6.16.10"
VERP9="../patch-2.6.16.11"

They are applied in the above sequence further down in the script, and they are all error free in application, and now in running that kernel too.
[root@coyote src]# uname -r
2.6.16.11

Anyplace you are using a bz2, replace it with the .gz version and see if you still have the problem. I'm not betting one way or the other, but it sure tastes like it to me.

Signature · 7 lines
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.
#10 lore raw
In reply to Grzegorz Jaśkiewicz
Quoted 7 lines · Grzegorz Jaśkiewicz
root@puppet:/usr/src/linux-2.6.16.11# make
  CHK     include/linux/version.h
  HOSTCC  scripts/mod/file2alias.o
scripts/mod/file2alias.c:386: warning: 'struct input_device_id'
declared inside parameter list
scripts/mod/file2alias.c:386: warning: its scope is only this
definition or declaration, which is probably not what you want

Did you try
- save .config
- make distclean (or mrproper)
- restore .config
- make oldconfig

I think there's a corner case which patch application leaves file mod dates wrong somehow.just "make clean" is a cure, but this is the big gun.

I realize you probably know this and tried it before asking, but it sure looks like what I see which I brain fart and don't clean properly before the next build,.

Signature · 3 lines
   -bill davidsen ([email protected])
"The secret to procrastination is to put things off until the
 last possible moment - but no longer"  -me