Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Klibc problems leading to genkernel problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
swaun
n00b
n00b


Joined: 17 Jun 2002
Posts: 23

PostPosted: Tue Oct 16, 2007 3:47 am    Post subject: Klibc problems leading to genkernel problems Reply with quote

I was trying to update my system the other day, and I ran into an odd problem... Klibc failed to update from 1.2.1-r2 to 1.5, on a missing #include <asm-generic/signal.h>. Low and behold, there is no /usr/src/linux/include/asm-generic/signal.h in my kernel sources. I haven't upgraded my kernel in a while (2.6.11-gentoo-r5) and I WAS able to find the file in a more recent kernel source directory (2.6.22-gentoo-r8).

Perhaps klibc-1.5 requires a newer kernel, and the ebuild does a poor job of checking this dependency... no biggie, I probably need to update my kernel anyway. Since my kernel is so old, I figured that my old .config file is probably way to outdated to be reused. Since I don't have a lot of time to mess with it, I figured I could live with the bloat of a full "genkernel all" kernel.

Now genkernel is failing while trying to create the bzImage. Besides a bunch of strange warnings, it appears to be failing on a "Error: suffix or operands invalid for `mov' ".

Here's the relevant part of the genkernel log:

Code:

* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" 
awk: cmd. line:1: fatal: cannot open file `/usr/src/linux-2.6.11-gentoo-r5/include/linux/version.h' for reading (No such file or directory)
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" 
  SPLIT   include/linux/autoconf.h -> include/config/*
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: In function 'parse_config_file':
scripts/basic/fixdep.c:245: warning: pointer targets in passing argument 1 of 'use_config' differ in signedness
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:299: warning: pointer targets in passing argument 1 of '__builtin_strchr' differ in signedness
scripts/basic/fixdep.c:299: warning: pointer targets in assignment differ in signedness
  SYMLINK include/asm -> include/asm-i386
  CHK     include/linux/version.h
  HOSTCC  scripts/basic/split-include
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/docproc
scripts/basic/split-include.c: In function 'main':
scripts/basic/split-include.c:113: warning: pointer targets in assignment differ in signedness
scripts/basic/docproc.c: In function 'find_export_symbols':
scripts/basic/docproc.c:184: warning: pointer targets in assignment differ in signedness
scripts/basic/docproc.c:185: warning: pointer targets in assignment differ in signedness
scripts/basic/docproc.c:202: warning: pointer targets in passing argument 2 of 'add_new_symbol' differ in signedness
scripts/basic/docproc.c: In function 'singfunc':
scripts/basic/docproc.c:274: warning: pointer targets in assignment differ in signedness
scripts/basic/docproc.c: In function 'parse_file':
scripts/basic/docproc.c:296: warning: pointer targets in assignment differ in signedness
  CC      scripts/mod/empty.o
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/lex.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/genksyms/parse.o
scripts/mod/sumversion.c: In function 'parse_file':
scripts/mod/sumversion.c:260: warning: pointer targets in passing argument 1 of 'grab_file' differ in signedness
scripts/mod/sumversion.c:277: warning: pointer targets in passing argument 1 of 'parse_string' differ in signedness
scripts/mod/sumversion.c:283: warning: pointer targets in passing argument 1 of 'parse_comment' differ in signedness
scripts/mod/sumversion.c: In function 'parse_source_files':
scripts/mod/sumversion.c:335: warning: pointer targets in initialization differ in signedness
scripts/mod/sumversion.c:344: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:357: warning: pointer targets in passing argument 1 of 'parse_file' differ in signedness
scripts/mod/sumversion.c: In function 'strip_rcs_crap':
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:463: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness
scripts/mod/sumversion.c:467: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:467: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:467: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:483: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c:484: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
scripts/mod/sumversion.c: In function 'maybe_frob_rcs_version':
scripts/mod/sumversion.c:494: warning: pointer targets in passing argument 1 of 'strip_rcs_crap' differ in signedness
  HOSTLD  scripts/mod/modpost
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
scripts/conmakehash.c: In function 'getunicode':
scripts/conmakehash.c:36: warning: pointer targets in initialization differ in signedness
scripts/conmakehash.c:44: warning: pointer targets in assignment differ in signedness
scripts/conmakehash.c:45: warning: pointer targets in passing argument 1 of 'strtol' differ in signedness
  CC      arch/i386/kernel/asm-offsets.s
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from arch/i386/kernel/asm-offsets.c:7:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  CHK     include/asm-i386/asm_offsets.h
  UPD     include/asm-i386/asm_offsets.h
*         >> Compiling 2.6.11-gentoo-r5 bzImage...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" 
  CHK     include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CC      init/main.o
  HOSTCC  usr/gen_init_cpio
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from include/linux/module.h:10,
                 from init/main.c:16:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  CHK     usr/initramfs_list
  UPD     usr/initramfs_list
  CPIO    usr/initramfs_data.cpio
  GZIP    usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      arch/i386/kernel/process.o
  CHK     include/linux/compile.h
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from arch/i386/kernel/process.c:17:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  UPD     include/linux/compile.h
  CC      init/do_mounts.o
{standard input}: Assembler messages:
{standard input}:765: Error: suffix or operands invalid for `mov'
{standard input}:766: Error: suffix or operands invalid for `mov'
{standard input}:957: Error: suffix or operands invalid for `mov'
{standard input}:958: Error: suffix or operands invalid for `mov'
{standard input}:1029: Error: suffix or operands invalid for `mov'
{standard input}:1030: Error: suffix or operands invalid for `mov'
{standard input}:1134: Error: suffix or operands invalid for `mov'
{standard input}:1135: Error: suffix or operands invalid for `mov'
{standard input}:1145: Error: suffix or operands invalid for `mov'
{standard input}:1157: Error: suffix or operands invalid for `mov'
make[1]: *** [arch/i386/kernel/process.o] Error 1
make: *** [arch/i386/kernel] Error 2
make: *** Waiting for unfinished jobs....
  CC      init/do_mounts_rd.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from include/linux/module.h:10,
                 from init/do_mounts.c:1:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:371,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/dcache.h:10,
                 from include/linux/fs.h:206,
                 from init/do_mounts_rd.c:3:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  CC      init/do_mounts_initrd.o
  CC      init/do_mounts_md.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from include/linux/module.h:10,
                 from include/linux/device.h:20,
                 from include/linux/genhd.h:15,
                 from include/linux/blkdev.h:6,
                 from include/linux/raid/md.h:21,
                 from init/do_mounts_md.c:2:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  CC      init/initramfs.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:371,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/dcache.h:10,
                 from include/linux/fs.h:206,
                 from init/do_mounts_initrd.c:4:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:371,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/dcache.h:10,
                 from include/linux/fs.h:206,
                 from init/initramfs.c:2:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  CC      init/calibrate.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from init/calibrate.c:7:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  CC      init/version.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:19,
                 from include/linux/sched.h:25,
                 from include/linux/module.h:10,
                 from init/version.c:10:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[6]'
  LD      init/mounts.o
  LD      init/built-in.o
* Gentoo Linux Genkernel; Version 3.4.8
* Running with options: all

* ERROR: Failed to compile the "bzImage" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
Back to top
View user's profile Send private message
absoluteflatness
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2007
Posts: 138
Location: Blacksburg or Falls Church, VA

PostPosted: Tue Oct 16, 2007 8:27 am    Post subject: Reply with quote

These lines:
Code:
awk: cmd. line:1: fatal: cannot open file `/usr/src/linux-2.6.11-gentoo-r5/include/linux/version.h' for reading (No such file or directory)
...
*         >> Compiling 2.6.11-gentoo-r5 bzImage... 

Says to me that you've forgotten to update your /usr/src/linux symlink to your newer kernel sources, since genkernel is obviously trying to build a 2.6.11 kernel, not a 2.6.22 one. You could try using "eselect kernel list" and "eselect kernel set" to change the symlink, or do it manually. I don't have experience with genkernel, but I assume it uses that symlink. Plus, it would need to be updated for ebuilds (such as klibc, for example) to see the new configuration and headers. They pretty much uniformly use "/usr/src/linux" to access the current kernel.

You could also do a "make oldconfig" after copying your .config between directories as an alternative to genkernel, but, as you mentioned, it could take a while to look through all the new config entries.

Oh, and by the way, go Hokies!
Back to top
View user's profile Send private message
swaun
n00b
n00b


Joined: 17 Jun 2002
Posts: 23

PostPosted: Tue Oct 16, 2007 12:43 pm    Post subject: Reply with quote

Well, that was dumb... I'll update the symlink and try again. I guess I assumed that if I ran genkernel from the 2.6.22 directory, it would build that kernel.
_________________
5 years as a Gentoophile and still a "n00b"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum