Skip to contentSkip to conversation

Building 2.6.20.1 from source

DISCUSSION Jim Gifford 2 participants 4 messages Feb 24, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

Trying to build the current 2.6.20.1 on my cobalt. I get this error.
I have disabled epoll in the config, but still not compiling. Any suggestions.

arch/mips/lib-64/dump_tlb.c: In function 'msk2str':
arch/mips/lib-64/dump_tlb.c:34: warning: control reaches end of non-void function

 LD      arch/mips/lib-64/built-in.o
 AS      arch/mips/lib-64/memset.o
 AS      arch/mips/lib-64/watch.o
 AR      arch/mips/lib-64/lib.a
 GEN     .version
 CHK     include/linux/compile.h
 UPD     include/linux/compile.h
 CC      init/version.o
 LD      init/built-in.o
 LD      .tmp_vmlinux1

arch/mips/kernel/built-in.o: In function `sys_call_table':
arch/mips/kernel/scall64-64.S:(.text+0x9ef8): undefined reference to `compat_sys_epoll_pwait'
make: *** [.tmp_vmlinux1] Error 1

#1 lore raw
Quoted 13 lines · Jim Gifford

arch/mips/lib-64/dump_tlb.c: In function 'msk2str':
arch/mips/lib-64/dump_tlb.c:34: warning: control reaches end of non-void function

 LD      arch/mips/lib-64/built-in.o
 AS      arch/mips/lib-64/memset.o
 AS      arch/mips/lib-64/watch.o
 AR      arch/mips/lib-64/lib.a
 GEN     .version
 CHK     include/linux/compile.h
 UPD     include/linux/compile.h
 CC      init/version.o
 LD      init/built-in.o
 LD      .tmp_vmlinux1
Quoted 4 lines

arch/mips/kernel/built-in.o: In function `sys_call_table':
arch/mips/kernel/scall64-64.S:(.text+0x9ef8): undefined reference to `compat_sys_epoll_pwait'
make: *** [.tmp_vmlinux1] Error 1

Whops. You can work around this bug by enabling either CONFIG_MIPS32_N32 or CONFIG_MIPS32_O32.

Ralf

#2 lore raw

On Sat, Feb 24, 2007 at 08:58:50PM +0000, Ralf Baechle wrote:

Guess I should have eyeballed the error message for a few extra nanoseconds, my answer wasn't quite right. Enabling the binary compat options would fix the build but leave the native N64 broken. Below the fix.

Ralf

arch/mips/kernel/scall64-64.S +1 -1
index 10e9a18..e569b84 100644
@@ -470,4 +470,4 @@ sys_call_table:
 	PTR	sys_get_robust_list
 	PTR	sys_kexec_load			/* 5270 */
 	PTR	sys_getcpu
-	PTR	compat_sys_epoll_pwait
+	PTR	sys_epoll_pwait
arch/mips/kernel/scall64-o32.S +1 -1
index c5f590c..bcc4248 100644
@@ -518,5 +518,5 @@ sys_call_table:
 	PTR	compat_sys_get_robust_list	/* 4310 */
 	PTR	compat_sys_kexec_load
 	PTR	sys_getcpu
-	PTR	sys_epoll_pwait
+	PTR	compat_sys_epoll_pwait
 	.size	sys_call_table,.-sys_call_table
#3 lore raw
Quoted 27 lines · Ralf Baechle

On Sat, Feb 24, 2007 at 08:58:50PM +0000, Ralf Baechle wrote:

Guess I should have eyeballed the error message for a few extra nanoseconds, my answer wasn't quite right. Enabling the binary compat options would fix the build but leave the native N64 broken. Below the fix.

Ralf

arch/mips/kernel/scall64-64.S +1 -1
index 10e9a18..e569b84 100644
@@ -470,4 +470,4 @@ sys_call_table:
 	PTR	sys_get_robust_list
 	PTR	sys_kexec_load			/* 5270 */
 	PTR	sys_getcpu
-	PTR	compat_sys_epoll_pwait
+	PTR	sys_epoll_pwait
arch/mips/kernel/scall64-o32.S +0 -0
index c5f590c..bcc4248 100644

arch/mips/kernel/scall64-o32.S sys_call_table: · line 522

Quoted 6 lines
arch/mips/kernel/scall64-o32.S +1 -1
@@ -518,5 +518,5 @@ sys_call_table:
 	PTR	compat_sys_get_robust_list	/* 4310 */
 	PTR	compat_sys_kexec_load
 	PTR	sys_getcpu
-	PTR	sys_epoll_pwait
+	PTR	compat_sys_epoll_pwait
 	.size	sys_call_table,.-sys_call_table

Thanx Ralf.!!!