Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
Dhiraj Bhor wrote: > Is there any clue to proceed with this query? I compiled many kernels from the 2.6.26 - 2.6.37 in chrooted i386 environment with gcc-4.7 it works pretty well for me. To me it looks like the patches you apply mess up something. regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/mkuib1$laf$1...@ger.gmane.org
Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
On Wed, 2015-06-03 at 10:05 +0530, Dhiraj Bhor wrote: > Is there any clue to proceed with this query? No idea. My suggestion was made after googling your problem for a couple of minutes. If this is for a school or uni project, you should really talk to the people in charge and ask them to use a recent kernel that actually builds or provide patches themselves. -- Cheers, Sven Arvidsson http://www.whiz.se PGP Key ID 6FAB5CD5 signature.asc Description: This is a digitally signed message part
Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
Is there any clue to proceed with this query? On Fri, May 29, 2015 at 9:54 AM, Dhiraj Bhor wrote: > Can anyone help me out. > > > On Thu, May 28, 2015 at 12:47 PM, Dhiraj Bhor > wrote: > >> Hi Sven, >> >> I applied the patch suggested but it did not worked for me. >> I wanted to let you know that i am compiling kernel version 2.6.20 and >> given link has patch applicable for 2.6.27 which is not working for me. >> >> When i applied the patch, i got following error: >> >> * CC kernel/capability.o* >> * CC kernel/ptrace.o* >> *In file included from kernel/ptrace.c:16:0:* >> *include/linux/pagemap.h: In function ‘fault_in_pages_readable’:* >> *include/linux/pagemap.h:222:16: warning: variable ‘c’ set but not used >> [-Wunused-but-set-variable]* >> * volatile char c;* >> *^* >> * CC kernel/timer.o* >> *In file included from include/asm/current.h:4:0,* >> * from include/linux/capability.h:46,* >> * from include/linux/sched.h:46,* >> * from include/asm/irq.h:13,* >> * from include/linux/kernel_stat.h:4,* >> * from kernel/timer.c:22:* >> *include/asm/irq_regs.h: In function ‘set_irq_regs’:* >> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used >> [-Wunused-but-set-variable]* >> * if (0) { T__ tmp__; tmp__ = (val); } \* >> *^* >> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* >> * #define write_pda(field,val) pda_to_op("mov",field,val)* >> * ^* >> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* >> * write_pda(irq_regs, new_regs);* >> * ^* >> * CC kernel/user.o* >> *In file included from include/asm/current.h:4:0,* >> * from include/linux/capability.h:46,* >> * from include/linux/sched.h:46,* >> * from kernel/user.c:12:* >> *include/asm/irq_regs.h: In function ‘set_irq_regs’:* >> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used >> [-Wunused-but-set-variable]* >> * if (0) { T__ tmp__; tmp__ = (val); } \* >> *^* >> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* >> * #define write_pda(field,val) pda_to_op("mov",field,val)* >> * ^* >> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* >> * write_pda(irq_regs, new_regs);* >> * ^* >> * CC kernel/signal.o* >> * CC kernel/sys.o* >> * CC kernel/kmod.o* >> *kernel/kmod.c: In function ‘call_usermodehelper’:* >> *kernel/kmod.c:134:28: warning: variable ‘old_session’ set but not used >> [-Wunused-but-set-variable]* >> * struct key *new_session, *old_session;* >> *^* >> *kernel/kmod.c:134:14: warning: variable ‘new_session’ set but not used >> [-Wunused-but-set-variable]* >> * struct key *new_session, *old_session;* >> * ^* >> * CC kernel/workqueue.o* >> *In file included from include/asm/current.h:4:0,* >> * from include/linux/capability.h:46,* >> * from include/linux/sched.h:46,* >> * from include/linux/utsname.h:35,* >> * from include/asm/elf.h:12,* >> * from include/linux/elf.h:7,* >> * from include/linux/module.h:15,* >> * from kernel/workqueue.c:19:* >> *include/asm/irq_regs.h: In function ‘set_irq_regs’:* >> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used >> [-Wunused-but-set-variable]* >> * if (0) { T__ tmp__; tmp__ = (val); } \* >> *^* >> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* >> * #define write_pda(field,val) pda_to_op("mov",field,val)* >> * ^* >> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* >> * write_pda(irq_regs, new_regs);* >> * ^* >> * CC kernel/pid.o* >> * CC kernel/rcupdate.o* >> *In file included from include/asm/current.h:4:0,* >> * from include/linux/wait.h:26,* >> * from include/linux/mmzone.h:9,* >> * from include/linux/gfp.h:4,* >> * from include/linux/slab.h:14,* >> * from include/linux/percpu.h:5,* >> * from include/linux/rcupdate.h:41,* >> * from kernel/rcupdate.c:38:* >> *include/asm/irq_regs.h: In function ‘set_irq_regs’:* >> *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used >> [-Wunused-but-set-variable]* >> * if (0) { T__ tmp__; tmp__ = (val); } \* >> *^* >> *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* >> * #define write_pda(field,val) pda_to_op("mov",field,val)* >> * ^* >> *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* >> * write_pda(irq_regs, new_regs);* >> * ^* >> * CC kernel/extable.o* >> * CC kernel/params.
Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
Can anyone help me out. On Thu, May 28, 2015 at 12:47 PM, Dhiraj Bhor wrote: > Hi Sven, > > I applied the patch suggested but it did not worked for me. > I wanted to let you know that i am compiling kernel version 2.6.20 and > given link has patch applicable for 2.6.27 which is not working for me. > > When i applied the patch, i got following error: > > * CC kernel/capability.o* > * CC kernel/ptrace.o* > *In file included from kernel/ptrace.c:16:0:* > *include/linux/pagemap.h: In function ‘fault_in_pages_readable’:* > *include/linux/pagemap.h:222:16: warning: variable ‘c’ set but not used > [-Wunused-but-set-variable]* > * volatile char c;* > *^* > * CC kernel/timer.o* > *In file included from include/asm/current.h:4:0,* > * from include/linux/capability.h:46,* > * from include/linux/sched.h:46,* > * from include/asm/irq.h:13,* > * from include/linux/kernel_stat.h:4,* > * from kernel/timer.c:22:* > *include/asm/irq_regs.h: In function ‘set_irq_regs’:* > *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used > [-Wunused-but-set-variable]* > * if (0) { T__ tmp__; tmp__ = (val); } \* > *^* > *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* > * #define write_pda(field,val) pda_to_op("mov",field,val)* > * ^* > *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* > * write_pda(irq_regs, new_regs);* > * ^* > * CC kernel/user.o* > *In file included from include/asm/current.h:4:0,* > * from include/linux/capability.h:46,* > * from include/linux/sched.h:46,* > * from kernel/user.c:12:* > *include/asm/irq_regs.h: In function ‘set_irq_regs’:* > *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used > [-Wunused-but-set-variable]* > * if (0) { T__ tmp__; tmp__ = (val); } \* > *^* > *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* > * #define write_pda(field,val) pda_to_op("mov",field,val)* > * ^* > *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* > * write_pda(irq_regs, new_regs);* > * ^* > * CC kernel/signal.o* > * CC kernel/sys.o* > * CC kernel/kmod.o* > *kernel/kmod.c: In function ‘call_usermodehelper’:* > *kernel/kmod.c:134:28: warning: variable ‘old_session’ set but not used > [-Wunused-but-set-variable]* > * struct key *new_session, *old_session;* > *^* > *kernel/kmod.c:134:14: warning: variable ‘new_session’ set but not used > [-Wunused-but-set-variable]* > * struct key *new_session, *old_session;* > * ^* > * CC kernel/workqueue.o* > *In file included from include/asm/current.h:4:0,* > * from include/linux/capability.h:46,* > * from include/linux/sched.h:46,* > * from include/linux/utsname.h:35,* > * from include/asm/elf.h:12,* > * from include/linux/elf.h:7,* > * from include/linux/module.h:15,* > * from kernel/workqueue.c:19:* > *include/asm/irq_regs.h: In function ‘set_irq_regs’:* > *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used > [-Wunused-but-set-variable]* > * if (0) { T__ tmp__; tmp__ = (val); } \* > *^* > *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* > * #define write_pda(field,val) pda_to_op("mov",field,val)* > * ^* > *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* > * write_pda(irq_regs, new_regs);* > * ^* > * CC kernel/pid.o* > * CC kernel/rcupdate.o* > *In file included from include/asm/current.h:4:0,* > * from include/linux/wait.h:26,* > * from include/linux/mmzone.h:9,* > * from include/linux/gfp.h:4,* > * from include/linux/slab.h:14,* > * from include/linux/percpu.h:5,* > * from include/linux/rcupdate.h:41,* > * from kernel/rcupdate.c:38:* > *include/asm/irq_regs.h: In function ‘set_irq_regs’:* > *include/asm/pda.h:39:16: warning: variable ‘tmp__’ set but not used > [-Wunused-but-set-variable]* > * if (0) { T__ tmp__; tmp__ = (val); } \* > *^* > *include/asm/pda.h:95:30: note: in expansion of macro ‘pda_to_op’* > * #define write_pda(field,val) pda_to_op("mov",field,val)* > * ^* > *include/asm/irq_regs.h:22:2: note: in expansion of macro ‘write_pda’* > * write_pda(irq_regs, new_regs);* > * ^* > * CC kernel/extable.o* > * CC kernel/params.o* > * CC kernel/posix-timers.o* > *In file included from include/asm/current.h:4:0,* > * from include/linux/capability.h:46,* > * from include/linux/sched.h:46,* > *
Re: make oldconfig bzImage with GCC 4.9.2 on debian 8
On Tue, 2015-05-26 at 16:37 +0530, Dhiraj Bhor wrote: > After this i got some error while make bzImage as follows: [...] > *kernel/built-in.o: In function `mutex_lock':* > *(.sched.text+0xea5): undefined reference to `__mutex_lock_slowpath'* > *kernel/built-in.o: In function `mutex_unlock':* > *(.sched.text+0xeb5): undefined reference to `__mutex_unlock_slowpath'* > *Makefile:744: recipe for target 'vmlinux' failed* > *make: *** [vmlinux] Error 1* > I'm guessing you need to do something like: http://www.brunni.de/linux_kernel_2.6.27.62_with_gcc_4.6.3.html -- Cheers, Sven Arvidsson http://www.whiz.se PGP Key ID 6FAB5CD5 signature.asc Description: This is a digitally signed message part