|
From: Peter T. <htm...@gm...> - 2008-04-28 15:54:15
|
What is the following errors: make defconfig ARCH=um /sda4/download/linux_linus/linux-2.6/arch/um/Makefile:100: *** missing separator. Stop. I was not able to find anything relevant from Internet, please advise? Other infor: /sda4/download/linux_linus/linux-2.6>uname -r 2.6.25-rc9 /sda4/download/linux_linus/linux-2.6>cat include/config/kernel.release 2.6.25-rc9 -- Regards, Peter Teoh |
|
From: Jeff D. <jd...@ad...> - 2008-04-28 18:55:22
|
On Mon, Apr 28, 2008 at 11:53:48PM +0800, Peter Teoh wrote:
> What is the following errors:
>
> make defconfig ARCH=um
> /sda4/download/linux_linus/linux-2.6/arch/um/Makefile:100: *** missing
> separator. Stop.
What version of UML?
Jeff
--
Work email - jdike at linux dot intel dot com
|
|
From: Peter T. <htm...@gm...> - 2008-04-29 12:02:54
|
On Tue, Apr 29, 2008 at 2:55 AM, Jeff Dike <jd...@ad...> wrote: > On Mon, Apr 28, 2008 at 11:53:48PM +0800, Peter Teoh wrote: > > What is the following errors: > > > > make defconfig ARCH=um > > /sda4/download/linux_linus/linux-2.6/arch/um/Makefile:100: *** missing > > separator. Stop. > > What version of UML? > Erh....I don't understand, is there something specifically called "UML" with a version to it? What I did was this: a. Followed the steps here: http://user-mode-linux.sourceforge.net/source.html, except that the linux kernel is from linus's git tree (from the .git/config file): [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master b. and then I just did a make defconfig ARCH=um. c. the version of the kernel is this: /mnt/hd0/download/linux-2.6-latest>cat include/config/kernel.release 2.6.25 Is this the correct procedure? I suspect something is wrong, as i did a few times in all other different git tree all similar results. > Jeff > > -- > Work email - jdike at linux dot intel dot com > -- Regards, Peter Teoh |
|
From: Peter T. <htm...@gm...> - 2008-05-02 17:49:42
|
Not sure why, but your current instructions works!!!
On 5/2/08, Jeff Dike <jd...@ad...> wrote:
> On Fri, May 02, 2008 at 12:18:34AM +0800, Peter Teoh wrote:
> > In case if anyone is wondering what this line 107 means in the arch/um/Makefile:
> >
> > 104 ifneq ($(KBUILD_SRC),)
> > 105 $(shell mkdir -p $(ARCH_DIR) && ln -fsn
> > $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch)
> > 106 else
> > 107 $(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch)
> > 108 endif
> >
> > Different version of Linux kernel tried, will always end up at the
> > same line above, btw, although the line number can be different.
>
>
> Color me clueless as to what's going on. However, since the offending
> line is conditional on !KBUILD_SRC, you can try
> mkdir obj ; make ARCH=um O=obj
> and see if the behavior changes. Maybe it'll produce a different and
> more informative error.
>
> I suspect you'll get exactly the same error because make is failing to
> parse the Makefile and hasn't got around to actually interpretting
> it. If so, then just delete that line and see what happens.
>
>
> Jeff
>
> --
> Work email - jdike at linux dot intel dot com
>
This is what I have done, not sure if anything wrong:
a. mkdir obj;make oldconfig ARCH=um O=obj
This created one file in obj, but after that created infinite number
of make -C processes running in the background.....I stopped that.
ps -ef and the following repeated MANY MANY TIMES:
root 32742 32658 0 01:13 pts/2 00:00:00 make -C
/mnt/hd0/download/linux-2.6-latest KBUILD_SRC= oldconfig
root 32745 32742 0 01:13 pts/2 00:00:00 make -C
/mnt/hd0/download/linux-2.6-latest/obj
/mnt/hd0/download/linux-2.6-latest/obj KBUILD_SRC=/mnt/hd0/dow
So, not okay.
b. mkdir obj; make ARCH=um O=obj
As per instructed.....it works except it complained no config file (in
obj directory), and suggested to do a mrproper for the current parent
directory. So I copied the .config to obj directory, make mrproper
in parent directory, and then cd to obj and make oldconfig there, and
then "make":
cp .config obj
make mrproper
cd obj
make oldconfig ARCH=um
make ARCH=um
Now it gives error:
HOSTCC scripts/kallsyms
CC init/main.o
In file included from
/mnt/hd0/download/linux-2.6-latest/arch/um/include/um_uaccess.h:10,
from include2/asm/uaccess.h:41,
from include2/asm/thread_info.h:13,
from
/mnt/hd0/download/linux-2.6-latest/include/linux/thread_info.h:47,
from
/mnt/hd0/download/linux-2.6-latest/include/linux/preempt.h:9,
from
/mnt/hd0/download/linux-2.6-latest/include/linux/spinlock.h:49,
from
/mnt/hd0/download/linux-2.6-latest/include/linux/seqlock.h:29,
from /mnt/hd0/download/linux-2.6-latest/include/linux/time.h:8,
from
/mnt/hd0/download/linux-2.6-latest/include/linux/stat.h:60,
from
/mnt/hd0/download/linux-2.6-latest/include/linux/module.h:10,
from /mnt/hd0/download/linux-2.6-latest/init/main.c:13:
include2/asm/fixmap.h:38: error: 'NR_CPUS' undeclared here (not in a function)
In file included from /mnt/hd0/download/linux-2.6-latest/include/linux/rmap.h:9,
from /mnt/hd0/download/linux-2.6-latest/init/main.c:49:
/mnt/hd0/download/linux-2.6-latest/include/linux/mm.h: In function
'is_vmalloc_addr':
/mnt/hd0/download/linux-2.6-latest/include/linux/mm.h:266: error:
'PKMAP_BASE' undeclared (first use in this function)
/mnt/hd0/download/linux-2.6-latest/include/linux/mm.h:266: error:
(Each undeclared identifier is reported only once
/mnt/hd0/download/linux-2.6-latest/include/linux/mm.h:266: error: for
each function it appears in.)
/mnt/hd0/download/linux-2.6-latest/include/linux/mm.h:270: warning:
control reaches end of non-void function
make[3]: *** [init/main.o] Error 1
make[2]: *** [init] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
Just to ask this:
Noticed that I cd to obj, and everything from that subdirectory is
appended with ARCH=um, correct?
Taking away the ARCH=um, it naturally compiled to the end without
error, but it is not right, as there is no UM coming out from the
built - correct?
--
Regards,
Peter Teoh
|
|
From: Jeff D. <jd...@ad...> - 2008-05-02 19:52:41
|
On Sat, May 03, 2008 at 01:49:40AM +0800, Peter Teoh wrote: > This is what I have done, not sure if anything wrong: > > a. mkdir obj;make oldconfig ARCH=um O=obj > > This created one file in obj, but after that created infinite number > of make -C processes running in the background.....I stopped that. > > ps -ef and the following repeated MANY MANY TIMES: > > root 32742 32658 0 01:13 pts/2 00:00:00 make -C > /mnt/hd0/download/linux-2.6-latest KBUILD_SRC= oldconfig > root 32745 32742 0 01:13 pts/2 00:00:00 make -C > /mnt/hd0/download/linux-2.6-latest/obj > /mnt/hd0/download/linux-2.6-latest/obj KBUILD_SRC=/mnt/hd0/dow The only thing that makes any sense to me is that you have a severely broken make. > So, not okay. > > b. mkdir obj; make ARCH=um O=obj > > As per instructed.....it works except it complained no config file (in > obj directory), and suggested to do a mrproper for the current parent > directory. So I copied the .config to obj directory, make mrproper > in parent directory, and then cd to obj and make oldconfig there, and > then "make": > > cp .config obj > make mrproper > cd obj Why did you do this? You're never supposed to cd to the object directory and run make in it. Also, you should have ARCH=um on all make commands, including mrproper. Jeff -- Work email - jdike at linux dot intel dot com |
|
From: Peter T. <htm...@gm...> - 2008-05-03 06:18:56
|
On Sat, May 3, 2008 at 3:52 AM, Jeff Dike <jd...@ad...> wrote: > On Sat, May 03, 2008 at 01:49:40AM +0800, Peter Teoh wrote: > > This is what I have done, not sure if anything wrong: > > > > a. mkdir obj;make oldconfig ARCH=um O=obj > > > > This created one file in obj, but after that created infinite number > > of make -C processes running in the background.....I stopped that. > > > > ps -ef and the following repeated MANY MANY TIMES: > > > > root 32742 32658 0 01:13 pts/2 00:00:00 make -C > > /mnt/hd0/download/linux-2.6-latest KBUILD_SRC= oldconfig > > root 32745 32742 0 01:13 pts/2 00:00:00 make -C > > /mnt/hd0/download/linux-2.6-latest/obj > > /mnt/hd0/download/linux-2.6-latest/obj KBUILD_SRC=/mnt/hd0/dow > > The only thing that makes any sense to me is that you have a severely > broken make. > > > > So, not okay. > > > > b. mkdir obj; make ARCH=um O=obj > > > > As per instructed.....it works except it complained no config file (in > > obj directory), and suggested to do a mrproper for the current parent > > directory. So I copied the .config to obj directory, make mrproper > > in parent directory, and then cd to obj and make oldconfig there, and > > then "make": > > > > cp .config obj > > make mrproper > > cd obj > > Why did you do this? You're never supposed to cd to the object > directory and run make in it. > > Also, you should have ARCH=um on all make commands, including > mrproper. > After trying countless combinations....I found that it is not my machine specific problem, as I was finally (whew...!) able to compile (following your instructions....thank you very much :-)) and that version is 2.6.23-rc5 stable. After the successful steps, I used the same steps for the linus git tree, and it failed. So ok, in the same machine, i have at least one success. Let me continue further now....thanks!!! -- Regards, Peter Teoh |
|
From: Jeff D. <jd...@ad...> - 2008-04-29 15:38:15
|
On Tue, Apr 29, 2008 at 08:02:06PM +0800, Peter Teoh wrote: > Erh....I don't understand, is there something specifically called > "UML" with a version to it? What I meant was the kernel version. > /mnt/hd0/download/linux-2.6-latest>cat include/config/kernel.release > 2.6.25 > > Is this the correct procedure? I suspect something is wrong, as i > did a few times in all other different git tree all similar results. Looks right to me. I'm suspecting that Makefile is mangled somehow. Does git-diff show it as being changed? The md5sum I have here is md5sum arch/um/Makefile 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile Jeff -- Work email - jdike at linux dot intel dot com |
|
From: Peter T. <htm...@gm...> - 2008-04-29 16:15:39
|
On 4/29/08, Jeff Dike <jd...@ad...> wrote: > On Tue, Apr 29, 2008 at 08:02:06PM +0800, Peter Teoh wrote: > > Erh....I don't understand, is there something specifically called > > "UML" with a version to it? > > > What I meant was the kernel version. > > > > /mnt/hd0/download/linux-2.6-latest>cat include/config/kernel.release > > 2.6.25 > > > > Is this the correct procedure? I suspect something is wrong, as i > > did a few times in all other different git tree all similar results. > > > Looks right to me. > > I'm suspecting that Makefile is mangled somehow. Does git-diff show > it as being changed? The md5sum I have here is > > md5sum arch/um/Makefile > 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile > > I think I saw from the webpage that 2.6.18 and higher up are not supported, right? http://www.user-mode-linux.org/~blaisorblade/listpatches.html (first few lines) -- Regards, Peter Teoh |
|
From: Jeff D. <jd...@ad...> - 2008-04-29 17:29:35
|
On Wed, Apr 30, 2008 at 12:15:26AM +0800, Peter Teoh wrote:
> > Looks right to me.
> >
> > I'm suspecting that Makefile is mangled somehow. Does git-diff show
> > it as being changed? The md5sum I have here is
> >
> > md5sum arch/um/Makefile
> > 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile
> >
> >
>
> I think I saw from the webpage that 2.6.18 and higher up are not
> supported, right?
UML? Of course it's supported. And if you thought 2.6.25 wasn't, why
are you trying to build it?
Jeff
--
Work email - jdike at linux dot intel dot com
|
|
From: Peter T. <htm...@gm...> - 2008-04-30 15:05:03
|
Erh...I think I found the error. I did "make oldconfig arch=um", it works. And now I did "make arch=um" it started compiling. Is this correct? Documentation every says "make xxxconfig ARCH=um" where the ARCH is capitals, which gave me error. Thanks. On Wed, Apr 30, 2008 at 1:29 AM, Jeff Dike <jd...@ad...> wrote: > On Wed, Apr 30, 2008 at 12:15:26AM +0800, Peter Teoh wrote: > > > Looks right to me. > > > > > > I'm suspecting that Makefile is mangled somehow. Does git-diff show > > > it as being changed? The md5sum I have here is > > > > > > md5sum arch/um/Makefile > > > 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile > > > > > > > > > > I think I saw from the webpage that 2.6.18 and higher up are not > > supported, right? > > UML? Of course it's supported. And if you thought 2.6.25 wasn't, why > are you trying to build it? > > > > Jeff > > -- > Work email - jdike at linux dot intel dot com > -- Regards, Peter Teoh |
|
From: Antoine M. <an...@na...> - 2008-04-30 15:10:03
|
Peter Teoh wrote: > Erh...I think I found the error. I did "make oldconfig arch=um", it > works. And now I did "make arch=um" it started compiling. Is this > correct? Documentation every says "make xxxconfig ARCH=um" where the > ARCH is capitals, which gave me error. Thanks. > ARCH has to be in uppercase. AFAIK, arch= has no effect. It now builds because you are building a normal (x86 or amd64) kernel and not a UML kernel. Which also means that you tree is now buggered, make mrproper may help... but might not be enough. > On Wed, Apr 30, 2008 at 1:29 AM, Jeff Dike <jd...@ad...> wrote: > >> On Wed, Apr 30, 2008 at 12:15:26AM +0800, Peter Teoh wrote: >> > > Looks right to me. >> > > >> > > I'm suspecting that Makefile is mangled somehow. Does git-diff show >> > > it as being changed? The md5sum I have here is >> > > >> > > md5sum arch/um/Makefile >> > > 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile >> > > >> > > >> > >> > I think I saw from the webpage that 2.6.18 and higher up are not >> > supported, right? >> >> UML? Of course it's supported. And if you thought 2.6.25 wasn't, why >> are you trying to build it? >> >> >> >> Jeff >> >> -- >> Work email - jdike at linux dot intel dot com >> >> > > > > |
|
From: Peter T. <htm...@gm...> - 2008-04-30 16:24:26
|
On Tue, Apr 29, 2008 at 11:37 PM, Jeff Dike <jd...@ad...> wrote: > On Tue, Apr 29, 2008 at 08:02:06PM +0800, Peter Teoh wrote: > > Erh....I don't understand, is there something specifically called > > "UML" with a version to it? > > What I meant was the kernel version> > > /mnt/hd0/download/linux-2.6-latest>cat include/config/kernel.release > > 2.6.25 > > > > Is this the correct procedure? I suspect something is wrong, as i > > did a few times in all other different git tree all similar results. > > Looks right to me. > > I'm suspecting that Makefile is mangled somehow. Does git-diff show > it as being changed? The md5sum I have here is > > md5sum arch/um/Makefile > 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile > Mine is same: md5sum arch/um/Makefile 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile Now I am really out of resources on what to do, as google does not show anything like this before. THanks. -- Regards, Peter Teoh |
|
From: Jeff D. <jd...@ad...> - 2008-04-30 18:48:04
|
On Thu, May 01, 2008 at 12:24:21AM +0800, Peter Teoh wrote:
> Mine is same:
>
> md5sum arch/um/Makefile
> 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile
What make are you using?
Jeff
--
Work email - jdike at linux dot intel dot com
|
|
From: Peter T. <htm...@gm...> - 2008-04-30 23:35:34
|
On Thu, May 1, 2008 at 2:47 AM, Jeff Dike <jd...@ad...> wrote: > On Thu, May 01, 2008 at 12:24:21AM +0800, Peter Teoh wrote: > > Mine is same: > > > > md5sum arch/um/Makefile > > 9088cdab1c0b725568e8f269636dc6df arch/um/Makefile > > What make are you using? > Thank you Jeff, /mnt/hd0/download/linux-2.6-latest>make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i686-redhat-linux-gnu /mnt/hd0/download/linux-2.6-latest>which make /usr/bin/make Any ideas? As far as i can remember I don't think I have install any "make". And btw, I have three machine - FC5, FC6, FC7 and all have the same symptom. Steps taken are make mrproper, then make oldconfig ARCH=um (or defconfig tried). All three machines are running 2.6.25 (different rc version). Please help ???? Thanks. -- Regards, Peter Teoh |
|
From: Jeff D. <jd...@ad...> - 2008-05-01 15:16:10
|
On Thu, May 01, 2008 at 07:35:32AM +0800, Peter Teoh wrote:
> /mnt/hd0/download/linux-2.6-latest>make -v
> GNU Make 3.81
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i686-redhat-linux-gnu
> /mnt/hd0/download/linux-2.6-latest>which make
> /usr/bin/make
>
> Any ideas?
No. Something must be odd on your end. Can you script a session
where you download the source and make this happen, then post it? I'd
like to see a completely from-scratch session.
Jeff
--
Work email - jdike at linux dot intel dot com
|
|
From: Peter T. <htm...@gm...> - 2008-05-01 16:13:51
|
On Thu, May 1, 2008 at 11:15 PM, Jeff Dike <jd...@ad...> wrote:
> On Thu, May 01, 2008 at 07:35:32AM +0800, Peter Teoh wrote:
> > /mnt/hd0/download/linux-2.6-latest>make -v
> > GNU Make 3.81
> > Copyright (C) 2006 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.
> > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> > PARTICULAR PURPOSE.
> >
> > This program built for i686-redhat-linux-gnu
> > /mnt/hd0/download/linux-2.6-latest>which make
> > /usr/bin/make
> >
> > Any ideas?
>
> No. Something must be odd on your end. Can you script a session
> where you download the source and make this happen, then post it? I'd
> like to see a completely from-scratch session.
>
Ok, I tried on many different tree - linus tree, sched-devel, vfs tree
etc, and the linus tree repeated on 3 different machines - all having
the same problem as above.
Then I tried a specific stable version - 2.6.24.2.tar.bz2 as downloaded:
Filesize:
-rw-r--r-- 1 root root 46735221 Feb 15 23:27 ../linux-2.6.24.2.tar.bz2
md5sum ../linux-2.6.24.2*bz2
dd573a2fae55624ed92fa49c17583964 ../linux-2.6.24.2.tar.bz2
And after entering "strace make ARCH=um" I got the following:
/mnt/hd0/download/tmtm/linux-2.6.24.2>strace make ARCH=um
execve("/usr/bin/make", ["make", "ARCH=um"], [/* 43 vars */]) = 0
brk(0) = 0x8070000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=85363, ...}) = 0
mmap2(NULL, 85363, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe6000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000?W\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1589908, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe5000
mmap2(0x55e000, 1308068, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x55e000
mmap2(0x698000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13a) = 0x698000
mmap2(0x69b000, 9636, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x69b000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe4000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7fe46c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x698000, 8192, PROT_READ) = 0
mprotect(0x55a000, 4096, PROT_READ) = 0
munmap(0xb7fe6000, 85363) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
brk(0) = 0x8070000
brk(0x8091000) = 0x8091000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=56458800, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7de4000
close(3) = 0
rt_sigaction(SIGHUP, {0x804aaa0, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x804aaa0, [QUIT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804aaa0, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804aaa0, [TERM], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGXCPU, {0x804aaa0, [XCPU], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGXFSZ, {0x804aaa0, [XFSZ], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
getcwd("/mnt/hd0/download/tmtm/linux-2.6.24.2", 4096) = 38
stat64("/usr/include", {st_mode=S_IFDIR|S_ISGID|0755, st_size=20480, ...}) = 0
stat64("/usr/gnu/include", 0xbfcf7b4c) = -1 ENOENT (No such file or directory)
stat64("/usr/local/include", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/include", {st_mode=S_IFDIR|S_ISGID|0755, st_size=20480, ...}) = 0
rt_sigaction(SIGCHLD, {0x8053810, [CHLD], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x8055980, [USR1], SA_RESTART}, {SIG_DFL}, 8) = 0
stat64(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 32 entries */, 4096) = 960
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("Makefile", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0664, st_size=53162, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ffa000
read(3, "VERSION = 2\nPATCHLEVEL = 6\nSUBLE"..., 4096) = 4096
read(3, "o above invocation of make\nskip-"..., 4096) = 4096
pipe([4, 5]) = 0
vfork() = 17197
close(5) = 0
read(4, "i386\n", 200) = 5
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
read(4, "", 195) = 0
close(4) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17197
pipe([4, 5]) = 0
vfork() = 17200
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
close(5) = 0
read(4, "/bin/sh\n", 200) = 8
read(4, "", 192) = 0
close(4) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17200
read(3, "ll be printed. \n# If it is set t"..., 4096) = 4096
open("/mnt/hd0/download/tmtm/linux-2.6.24.2/scripts/Kbuild.include",
O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0664, st_size=9103, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff9000
read(4, "####\n# kbuild: Generic definitio"..., 4096) = 4096
read(4, "obj\n\n# Prefix -I with $(srctree)"..., 4096) = 4096
read(4, " $(if $(arg-check), "..., 4096) = 911
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7ff9000, 4096) = 0
read(3, "ng make, including\n# mixing *con"..., 4096) = 4096
open("include/config/auto.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/include/include/config/auto.conf", O_RDONLY|O_LARGEFILE) =
-1 ENOENT (No such file or directory)
open("/usr/local/include/include/config/auto.conf",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/include/include/config/auto.conf", O_RDONLY|O_LARGEFILE) =
-1 ENOENT (No such file or directory)
open("include/config/auto.conf.cmd", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/include/include/config/auto.conf.cmd",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/include/include/config/auto.conf.cmd",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/include/include/config/auto.conf.cmd",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
read(3, "CFLAGS\t+= -O2\nendif\n\ninclude $(s"..., 4096) = 4096
open("/mnt/hd0/download/tmtm/linux-2.6.24.2/arch/um/Makefile",
O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0664, st_size=7271, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff9000
read(4, "#\n# This file is included by the"..., 4096) = 4096
pipe([5, 6]) = 0
vfork() = 17201
close(6) = 0
read(5, "Linux\n", 200) = 6
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
read(5, "", 194) = 0
close(5) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17201
open("/mnt/hd0/download/tmtm/linux-2.6.24.2/arch/um/Makefile-skas",
O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0664, st_size=290, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff8000
read(5, "# \n# Copyright (C) 2002 Jeff Dik"..., 4096) = 290
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7ff8000, 4096) = 0
open("/mnt/hd0/download/tmtm/linux-2.6.24.2/arch/um/Makefile-i386",
O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0664, st_size=1022, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff8000
read(5, "core-y += arch/um/sys-i386/ arch"..., 4096) = 1022
open("/mnt/hd0/download/tmtm/linux-2.6.24.2/arch/x86/Makefile_32.cpu",
O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFREG|0664, st_size=2164, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff7000
read(6, "# CPU tuning section - shared wi"..., 4096) = 2164
pipe([7, 8]) = 0
vfork() = 17202
close(8) = 0
read(7, "y\n", 200) = 2
read(7, "", 198) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
close(7) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17202
pipe([7, 8]) = 0
vfork() = 17206
close(8) = 0
read(7, "-falign-functions=0\n", 200) = 20
read(7, "", 180) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
close(7) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17206
read(6, "", 4096) = 0
close(6) = 0
munmap(0xb7ff7000, 4096) = 0
pipe([6, 7]) = 0
vfork() = 17210
close(7) = 0
read(6, "-mpreferred-stack-boundary=2\n", 200) = 29
read(6, "", 171) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
close(6) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17210
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7ff8000, 4096) = 0
open("/mnt/hd0/download/tmtm/linux-2.6.24.2/arch/um/Makefile-os-Linux",
O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0664, st_size=205, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff8000
read(5, "# \n# Copyright (C) 2000 Jeff Dik"..., 4096) = 205
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7ff8000, 4096) = 0
pipe([5, 6]) = 0
vfork() = 17214
close(6) = 0
read(5, "-fno-unit-at-a-time\n", 200) = 20
read(5, "", 180) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
close(5) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17214
pipe([5, 6]) = 0
vfork() = 17218
close(6) = 0
read(5, "/mnt/hd0/download/tmtm/linux-2.6"..., 200) = 46
read(5, "", 154) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
close(5) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 17218
open("/usr/share/locale/locale.alias", O_RDONLY) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7ff8000
read(5, "# Locale name alias data base.\n#"..., 4096) = 2528
read(5, "", 4096) = 0
close(5) = 0
munmap(0xb7ff8000, 4096) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/make.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
write(2, "/mnt/hd0/download/tmtm/linux-2.6"...,
64/mnt/hd0/download/tmtm/linux-2.6.24.2/arch/um/Makefile:107: *** ) =
64
write(2, "missing separator", 17missing separator) = 17
write(2, ". Stop.\n", 9. Stop.
) = 9
chdir("/mnt/hd0/download/tmtm/linux-2.6.24.2") = 0
close(1) = 0
exit_group(2) = ?
Thank you Jeff for your help :-).
--
Regards,
Peter Teoh
|
|
From: Peter T. <htm...@gm...> - 2008-05-01 16:26:13
|
In case if anyone is wondering what this line 107 means in the arch/um/Makefile:
104 ifneq ($(KBUILD_SRC),)
105 $(shell mkdir -p $(ARCH_DIR) && ln -fsn
$(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch)
106 else
107 $(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch)
108 endif
Different version of Linux kernel tried, will always end up at the
same line above, btw, although the line number can be different.
|
|
From: Jeff D. <jd...@ad...> - 2008-05-02 15:51:10
|
On Fri, May 02, 2008 at 12:18:34AM +0800, Peter Teoh wrote:
> In case if anyone is wondering what this line 107 means in the arch/um/Makefile:
>
> 104 ifneq ($(KBUILD_SRC),)
> 105 $(shell mkdir -p $(ARCH_DIR) && ln -fsn
> $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch)
> 106 else
> 107 $(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch)
> 108 endif
>
> Different version of Linux kernel tried, will always end up at the
> same line above, btw, although the line number can be different.
Color me clueless as to what's going on. However, since the offending
line is conditional on !KBUILD_SRC, you can try
mkdir obj ; make ARCH=um O=obj
and see if the behavior changes. Maybe it'll produce a different and
more informative error.
I suspect you'll get exactly the same error because make is failing to
parse the Makefile and hasn't got around to actually interpretting
it. If so, then just delete that line and see what happens.
Jeff
--
Work email - jdike at linux dot intel dot com
|