The GCC version is 4.1.2 20070925 (Red Hat 4.1.2-27). BTW, for long-term plan,
I will post a
package to Linux and its patch is only for 2.6.14.�for testing,�simulation and
verification,�In short term, I think the UML should be workable in�the Linux
version
after 2.6.9 and�I cannot find any failure�casein the google search for UML
building. Do
I lost something?�
----- Original Message -----
From: "Jon Rafkind" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <user-mode-linux-user@lists.sourceforge.net>
Sent: Friday, October 24, 2008 10:26 AM
Subject: Re: [uml-user] How to build the UML for the Linux kernel 2.6.14
> What version of gcc are you using? Also, is there a good reason you want
> to use 2.6.14 instead of a newer kernel?
>
> [EMAIL PROTECTED]
wrote:
>> Dear Sir,
>>
>> I failed to build the user-mode Linux with the Linux kerenl 2.6.14. The
>> Linux kernel is
downloaded
>> from www.kernel.org.
The commands used to build are summarized as below:
>>
>> $ make defconfig ARCH=um
>> $ make ARCH=um
>>
>> The error messages are shown as below:
>>
>> $ make ARCH=um
>>�� CHK���� arch/um/include/uml-config.h
>>�� UPD���� arch/um/include/uml-config.h
>> gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
>> -fno-common
>> -ffreestanding -O2 -fno-omit-frame-pointer -fno-optimize-sibling-calls -g
>> -D__arch_um__
>> -DSUBARCH=\"i386\" -Dvmap=kernel_vmap
-Din6addr_loopback=kernel_in6addr_loopback -Iarch/um/include
>>� -I/home/Jhyda/UML/linux-2.6.14.7/arch/um/kernel/skas/include -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE
>> -S -o arch/um/user-offsets.s arch/um/sys-i386/user-offsets.c
>> arch/um/sys-i386/user-offsets.c: 在函式 「foo」 中:
>> arch/um/sys-i386/user-offsets.c:18: Warnning:Implicit function prototype
>> 「offsetof」
>> arch/um/sys-i386/user-offsets.c:18: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:19: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:20: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:21: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:22: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:23: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:24: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:25: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:26: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:27: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:28: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:29: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:30: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:31: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:32: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:33: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:34: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:35: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:36: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:37: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:38: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:39: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:40: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:41: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:42: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:43: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:44: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:45: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:46: Error:expected expression before 「struct」
>> arch/um/sys-i386/user-offsets.c:47: Error:expected expression before 「struct」
>> make: *** [arch/um/user-offsets.s] Error 1
>>
>> BTW, I tried to build the UML with kerenel 2.6.13 and 2.6.15. Both of them
>> have the same
results
>> as above. But, for the kernel 2.6.24, it is successful to build. Could you
>> help me to
identify the
>> problem? Thanks a lot.
>>
>> Best Regards,
>> Riker.
>>
>> --
>> http://home.url.com.tw
>> 房地產專業知識分享, 互動, 與累積的大寶庫
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> User-mode-linux-user mailing list
>> User-mode-linux-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>>��
>
>
--
http://myhome.url.com.tw
進駐智邦社區網, 敦親睦鄰變的更輕鬆有效
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user