UML doesn't build in 2.6.23-rc3.
Subsystems (3)
I fixed it for me with the following patch, just in case anybody else had this problem:
arch/um/kernel/smp.c +1 -0
@@ -5,6 +5,7 @@#include "linux/percpu.h" #include "asm/pgalloc.h" +#include "linux/pagemap.h" #include "asm/tlb.h" /* For some reason, mmu_gathers are referenced when CONFIG_SMP is off. */
Signature · 12 lines
"One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Rob Landley
I fixed it for me with the following patch, just in case anybody else had this problem:
What were the errors?
Jeff
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Jeff Dike
Quoted 2 lines · Rob Landley
I fixed it for me with the following patch, just in case anybody else had this problem:
What were the errors?
Jeff
CC arch/um/os-Linux/file.o
In file included from include/asm/arch/tlb.h:18,
from include/asm/tlb.h:4,
from arch/um/kernel/smp.c:8:include/asm-generic/tlb.h: In function ‘tlb_flush_mmu’:include/asm-generic/tlb.h:76: error: implicit declaration of function ‘release_pages’include/asm-generic/tlb.h: In function ‘tlb_remove_page’:include/asm-generic/tlb.h:105: error: implicit declaration of function ‘page_cache_release’
make[1]: *** [arch/um/kernel/smp.o] Error 1
make: *** [arch/um/kernel] Error 2
make: *** Waiting for unfinished jobs....
Rob
Signature · 12 lines
"One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 6 lines · Rob Landley
include/asm-generic/tlb.h: In function ‘tlb_flush_mmu’:include/asm-generic/tlb.h:76: error: implicit declaration of function ‘release_pages’include/asm-generic/tlb.h: In function ‘tlb_remove_page’:include/asm-generic/tlb.h:105: error: implicit declaration of function ‘page_cache_release’
Shouldn't the new include go in asm-generic/tlb.h instead?
include/asm-generic/tlb.h +1 -0
@@ -13,6 +13,7 @@#ifndef _ASM_GENERIC__TLB_H#define _ASM_GENERIC__TLB_H +#include <linux/pagemap.h> #include <linux/swap.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h>
This doesn't cause any obvious problems, but then I wasn't seeing the build failure in the first place.
Jeff
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 9 lines · Jeff Dike
Quoted 6 lines · Rob Landley
include/asm-generic/tlb.h: In function ‘tlb_flush_mmu’:include/asm-generic/tlb.h:76: error: implicit declaration of function ‘release_pages’include/asm-generic/tlb.h: In function ‘tlb_remove_page’:include/asm-generic/tlb.h:105: error: implicit declaration of function ‘page_cache_release’Shouldn't the new include go in
asm-generic/tlb.hinstead?
I didn't say it was the right fix, just that it got it to work for me. :)
Quoted 2 lines
This doesn't cause any obvious problems, but then I wasn't seeing the build failure in the first place.
cat > mini.conf << EOFCONFIG_MODE_SKAS=yCONFIG_BINFMT_ELF=yCONFIG_HOSTFS=yCONFIG_SYSCTL=yCONFIG_STDERR_CONSOLE=yCONFIG_UNIX98_PTYS=yCONFIG_BLK_DEV_LOOP=yCONFIG_LBD=yCONFIG_EXT2_FS=yCONFIG_PROC_FS=y
EOF
make ARCH=um allnoconfig KCONFIG_ALLCONFIG=mini.conf make ARCH=um
Does that reproduce it for you?
Quoted 1 line
Jeff
Rob
Signature · 12 lines
"One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 1 line · Rob Landley
Does that reproduce it for you?
Yup, but it's somewhat non-obvious why. Anyway, it seems clear that asm-generic/tlb.h is missing an include.
Jeff
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Jeff Dike
Quoted 1 line · Rob Landley
Does that reproduce it for you?
Yup, but it's somewhat non-obvious why. Anyway, it seems clear that
asm-generic/tlb.his missing an include.Jeff
I still need the patch I posted to build -rc5. Just FYI.
Rob
Signature · 12 lines
"One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel