You are not logged in.

#1 2011-04-23 14:41:06

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

gcc 4.6.0 causes build of kernel26-lts-ck to fail [SOLVED]

Ever since the bump to gcc 4.6.0, I have been unable to build my kernel26-lts-ck package.  It worked fine under the previous version of gcc.  Here are the last few lines (note that that "warning: variable ‘xxx’ set but not used [-Wunused-but-set-variable]" is EVERYWHERE since 4.6.0.

Note: this happens at the "make modules" step of the process; the "make bzImage" completes without indecent.

In file included from /dev/shm/kernel26-lts-ck/src/linux-2.6.35/arch/x86/include/asm/hardirq.h:5:0,
                 from include/linux/hardirq.h:10,
                 from include/linux/interrupt.h:12,
                 from include/linux/netdevice.h:1220,
                 from drivers/staging/vt6656/device.h:40,
                 from drivers/staging/vt6656/int.h:34,
                 from drivers/staging/vt6656/int.c:35:
include/linux/irq.h: In function ‘alloc_desc_masks’:
include/linux/irq.h:442:8: warning: variable ‘gfp’ set but not used [-Wunused-but-set-variable]
drivers/staging/vt6656/int.c: In function ‘INTvWorkItem’:
drivers/staging/vt6656/int.c:85:11: warning: variable ‘ntStatus’ set but not used [-Wunused-but-set-variable]
  LD [M]  drivers/staging/vt6656/vt6656_stage.o
  LD [M]  drivers/staging/xgifb/xgifb.o
make: *** [drivers] Error 2

Thoughts and suggestion are appreciated.

Last edited by graysky (2011-04-24 15:06:33)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2011-04-23 15:32:17

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: gcc 4.6.0 causes build of kernel26-lts-ck to fail [SOLVED]

The actual halting build error occurs before this. Warnings don't stop a kernel build.

Offline

#3 2011-04-23 16:34:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: gcc 4.6.0 causes build of kernel26-lts-ck to fail [SOLVED]

I don't think the warning are relevant is what I meant to say... I have no idea what is halting the build though... sad


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-04-24 13:52:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: gcc 4.6.0 causes build of kernel26-lts-ck to fail [SOLVED]

Can someone else confirm this behavior?  In the mean time, I opened a flyspray task.  In this in upstream or something in the Arch packages?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2011-04-24 14:05:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,411
Website

Re: gcc 4.6.0 causes build of kernel26-lts-ck to fail [SOLVED]

And just to keep all the information here too...   I guess this is the patch you need:
http://git.kernel.org/?p=linux/kernel/g … h=b1d670f1

Offline

#6 2011-04-24 15:06:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: gcc 4.6.0 causes build of kernel26-lts-ck to fail [SOLVED]

To echo what I put in the bugreport, acknowledgment to Allan for solving this problem: the aforementioned patch did the trick/AUR package updated and all is well again.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB