Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to compile Linux Kernel 3.3.8-gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fei871017
n00b
n00b


Joined: 22 Aug 2012
Posts: 3

PostPosted: Wed Aug 22, 2012 4:54 am    Post subject: Failed to compile Linux Kernel 3.3.8-gentoo Reply with quote

hi,guys.i'm in trouble now.

i used genkernel compiling linux kernel 3.3.8-gentoo

Code:

(chroot) Gentoo-2012 / # zcat /proc/config.gz > /usr/share/genkernel/arch/x86/kernel-config
(chroot) Gentoo-2012 / # genkernel all


then what i get...

Code:

* Gentoo Linux Genkernel; Version 3.4.24_p2
* Running with options: all

* Linux Kernel 3.3.8-gentoo for x86...
* kernel: Using config from /usr/share/genkernel/arch/x86/kernel-config
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
*         >> Compiling 3.3.8-gentoo bzImage...
* ERROR: Failed to compile the "bzImage" target...

* -- Grepping log... --

  SHIPPED scripts/genksyms/keywords.hash.c
  SHIPPED scripts/genksyms/parse.tab.h
  SHIPPED scripts/genksyms/parse.tab.c
  HOSTCC  scripts/genksyms/lex.lex.o
scripts/genksyms/lex.lex.c_shipped: In function ‘yylex1’:
scripts/genksyms/lex.lex.c_shipped:904:1: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
--
In file included from /usr/src/linux-3.3.8-gentoo/arch/x86/include/asm/uaccess.h:573:0,
                 from include/drm/drmP.h:64,
                 from drivers/gpu/drm/radeon/radeon_state.c:30:
In function ‘copy_from_user’,
    inlined from ‘radeon_cp_clear’ at drivers/gpu/drm/radeon/radeon_state.c:2171:6:
/usr/src/linux-3.3.8-gentoo/arch/x86/include/asm/uaccess_32.h:211:26: warning: call to ‘copy_from_user_overflow’ declared with attribute warning: copy_from_user() buffer size is not provably correct
--
  CC      drivers/gpu/drm/radeon/radeon_trace_points.o
  CC      drivers/gpu/drm/radeon/ni.o
make[1]: *** No rule to make target `/lib/firmware/radeon/R600_rlc.bin', needed by `firmware/radeon/R600_rlc.bin.gen.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
  MK_FW   firmware/radeon/R600_rlc.bin.gen.S
make: *** [firmware] Error 2
--
  CC      drivers/input/input.o
  CC      drivers/gpu/drm/radeon/r100.o
  CC      drivers/input/input-compat.o
  CC      drivers/input/input-mt.o
drivers/gpu/drm/radeon/r100.c: In function ‘r100_bandwidth_update’:
drivers/gpu/drm/radeon/r100.c:2845:50: warning: ‘disp_drain_rate.full’ may be used uninitialized in this function
drivers/gpu/drm/radeon/r100.c:2791:63: warning: ‘crit_point_ff.full’ may be used uninitialized in this function
--
  CC      drivers/scsi/constants.o
  CC      drivers/staging/staging.o
  CC      drivers/scsi/scsicam.o
  CC      drivers/staging/android/binder.o
drivers/staging/android/binder.c: In function ‘__check_proc_no_lock’:
drivers/staging/android/binder.c:107:1: warning: return from incompatible pointer type
--
  CC      drivers/video/console/font_8x16.o
  CC      drivers/video/cfbcopyarea.o
  CC      drivers/video/console/softcursor.o
  CC      drivers/video/console/fbcondecor.o
  CC      drivers/video/cfbimgblt.o
drivers/video/console/fbcondecor.c:512:6: warning: function declaration isn’t a prototype
--
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
* Gentoo Linux Genkernel; Version 3.4.24_p2
* Running with options: all

* ERROR: Failed to compile the "bzImage" target...

* -- 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!
*


thanks a lot.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Aug 22, 2012 5:23 am    Post subject: Reply with quote

boot cd and enter chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
(use your disk/partition names if different)
then
Code:
emerge linux-firmware
genkernel all

_________________
Defund the FCC.
Back to top
View user's profile Send private message
fei871017
n00b
n00b


Joined: 22 Aug 2012
Posts: 3

PostPosted: Wed Aug 22, 2012 12:07 pm    Post subject: Reply with quote

thanks for your reply.

unfortunately,the problem still exists...

could you tell me the reason why this kind of problem happened?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Aug 22, 2012 1:27 pm    Post subject: Reply with quote

fei871017 wrote:
thanks for your reply.

unfortunately,the problem still exists...

could you tell me the reason why this kind of problem happened?

It appears that you're not properly chrooted into the gentoo environment.

Paste back the your chroot sequence and the output of fdisk -l
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
fei871017
n00b
n00b


Joined: 22 Aug 2012
Posts: 3

PostPosted: Wed Aug 22, 2012 4:02 pm    Post subject: Reply with quote

thank you,both of you.

really helpful. :D
_________________
There's a ship out
On the ocean
At the mercy of the sea
It's been tossed about
Lost and broken
Wandering aimlessly
And God somehow
You know that ship is me
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Aug 22, 2012 7:27 pm    Post subject: Reply with quote

I suspect
Quote:
(chroot) Gentoo-2012 / # zcat /proc/config.gz > /usr/share/genkernel/arch/x86/kernel-config
shows that you are installing from the dvd and then replacing the genkernel kernel configuration file with the dvd's kernel configuration file. Importing the kernel configuration from any running gentoo-based cd system used to work pretty consistently. These days you can import the kernel configuration of a running install-*-minimal-2012*.iso cd system with a high expectation of success. From any other running linux system including gentoo-based cd's; success is unlikely. As I see your case, the imported config is failing while attempting to compile drivers and external firmware for radeon video cards into the kernel. I had hoped that emerging linux-firmware would provide necessary files to allow that. Assuming that the current error printout is the same as before that was a false hope. If the error no longer cites radeon, some other problem exists. In either case, if you continue to wish to use genkernel vice a manual kernel; I would suggest: boot cd/dvd, enter chroot, then:
Code:
emerge --unmerge genkernel gentoo-sources
rm -rf /usr/src/linux
rm -rf /usr/share/genkernel
emerge genkernel gentoo-sources
genkernel all


in addition to the radeon video problem noted above, the dvd config file is significantly older than the 3.3.8 kernel; that may be the source of other errors or the warnings you see in the genkernel output.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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