From: William S. <wst...@po...> - 2006-01-08 22:04:07
|
Good afternoon, all, While trying to compile 2.6.15 + Jeff's 20060107 patches, I got this compile error: [wstearns@sparrow linux-2.6.15-um20060107]$ make ARCH=um linux CHK include/linux/version.h gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -D__arch_um__ -DSUBARCH=\"i386\" -Iarch/um/include -I/usr/src/uml-linux/linux-2.6.15-um20060107/arch/um/include/tt -I/usr/src/uml-linux/linux-2.6.15-um20060107/arch/um/include/skas -Dvmap=kernel_vmap -Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -fno-unit-at-a-time -U__i386__ -Ui386 -march=i686 -mpreferred-stack-boundary=2 -D_LARGEFILE64_SOURCE -Wdeclaration-after-statement -Wno-pointer-sign -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -S -o arch/um/kernel-offsets.s arch/um/sys-i386/kernel-offsets.c CHK arch/um/include/kern_constants.h CHK include/linux/compile.h CHK usr/initramfs_list CC arch/um/os-Linux/tls.o arch/um/os-Linux/tls.c:48: error: syntax error before 'get_thread_area' arch/um/os-Linux/tls.c:48: warning: type defaults to 'int' in declaration of '_syscall1' arch/um/os-Linux/tls.c:48: warning: function declaration isn't a prototype arch/um/os-Linux/tls.c:48: warning: data definition has no type or storage class arch/um/os-Linux/tls.c:49: error: syntax error before 'set_thread_area' arch/um/os-Linux/tls.c:49: warning: type defaults to 'int' in declaration of '_syscall1' arch/um/os-Linux/tls.c:49: warning: function declaration isn't a prototype arch/um/os-Linux/tls.c:49: warning: data definition has no type or storage class arch/um/os-Linux/tls.c:51: warning: 'struct user_desc' declared inside parameter list arch/um/os-Linux/tls.c:51: warning: its scope is only this definition or declaration, which is probably not what you want arch/um/os-Linux/tls.c: In function 'do_set_thread_area_tt': arch/um/os-Linux/tls.c:55: warning: implicit declaration of function 'set_thread_area' arch/um/os-Linux/tls.c: At top level: arch/um/os-Linux/tls.c:62: warning: 'struct user_desc' declared inside parameter list arch/um/os-Linux/tls.c: In function 'do_get_thread_area_tt': arch/um/os-Linux/tls.c:66: warning: implicit declaration of function 'get_thread_area' make[1]: *** [arch/um/os-Linux/tls.o] Error 1 make: *** [arch/um/os-Linux] Error 2 By removing the 4 tls related patches (uml-tls-support-sc-tables, uml-add-tls-support, uml-add-tls-support-debug, and uml-add-tls-support-flush-empty) from series and reapplying, the compile continues past this point. uml-clean-arch_switch also needs to be reverted to finish compilation. If it makes a difference, I'm using: gcc version 4.0.2 20051125 (Red Hat 4.0.2-8). Finished kernel, config, and System.map are at http://www.stearns.org/uml/ (linux-2.6.15-um20060107-notls-2.bz2 and friends). Cheers, - Bill --------------------------------------------------------------------------- "My fellow Americans. I've signed legislation that will outlaw Russia forever. We begin bombing in five minutes." - President Reagan, before a scheduled radio broadcast, unaware that the microphone was already on... (Courtesy of Brian S. Dellinger <Brian.Dellinger@Dartmouth.EDU>) -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, freedups, p0f, rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org -------------------------------------------------------------------------- |