* Re: [uml-devel] Problems compiling 2.4 kernel
@ 2004-07-01 16:13 Anthony Brock
0 siblings, 0 replies; 7+ messages in thread
From: Anthony Brock @ 2004-07-01 16:13 UTC (permalink / raw)
To: user-mode-linux-devel
Unfortunately, I have the same problem even if I build a config file from scratch. *sigh* I have to be missing something basic...
Tony
>>> "Anthony Brock" <Anthony_Brock@ous.edu> 07/01/04 09:04AM >>>
In this case, the SuSE 9.0 is a i386 2.4 kernel. However, I will try these same steps with a "blank" config.
Tony
>>> Jeff Dike <jdike@addtoit.com> 07/01/04 09:43AM >>>
Anthony_Brock@ous.edu said:
> gzip -dc /proc/config.gz > .config
wtf are you trying to accomplish here? You can't use the host's (i386 2.6)
.config to build a 2.4 UML kernel.
Jeff
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] Problems compiling 2.4 kernel
@ 2004-07-01 17:40 Anthony Brock
2004-07-01 21:05 ` Jeff Dike
0 siblings, 1 reply; 7+ messages in thread
From: Anthony Brock @ 2004-07-01 17:40 UTC (permalink / raw)
To: user-mode-linux-devel
Okay, I found my problem. My problem was attempting to compile using:
make ARCH=um
rather than:
make linux ARCH=um
The compile is running as I type. Like an idiot, I keep forgetting to look at my prior notes. It appears that I encountered and resolved this issue over three months ago.
This change resolves the symlink issue in addition to several others (I did try manually creating the link earlier, but still had problems).
Tony
>>> BlaisorBlade <blaisorblade_spam@yahoo.it> 07/01/04 10:36AM >>>
Alle 18:43, giovedì 1 luglio 2004, Jeff Dike ha scritto:
> Anthony_Brock@ous.edu said:
The problem is another: uml Makefile don't manage properly the
include/asm/arch symlink, and it is not created:
> asm/arch/posix_types.h: No such file or directory
To workaround this:
cd include
<make sure that asm points to asm-um>
cd asm
ln -s ../asm-i386 arch
There is a lot of other people claiming similar problems. For instance,
somebody else complained that to build UML he must avoid doing "make mrproper
ARCH=um" because some files are not recreated (with 2.4.24-3).
However, Anthony, I would recommend using, for optimal stability, a 2.4.26
vanilla kernel patched with 2.4.24-1um + the attached patch.
Bye
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] Problems compiling 2.4 kernel
2004-07-01 17:40 Anthony Brock
@ 2004-07-01 21:05 ` Jeff Dike
0 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2004-07-01 21:05 UTC (permalink / raw)
To: Anthony Brock; +Cc: user-mode-linux-devel
Anthony_Brock@ous.edu said:
> Okay, I found my problem. My problem was attempting to compile using:
> make ARCH=um
> rather than:
> make linux ARCH=um
OK, that needs fixing. All the other arches do something sane with just 'make',
and UML needs to follow suit.
Jeff
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] Problems compiling 2.4 kernel
@ 2004-07-01 16:04 Anthony Brock
0 siblings, 0 replies; 7+ messages in thread
From: Anthony Brock @ 2004-07-01 16:04 UTC (permalink / raw)
To: jdike; +Cc: user-mode-linux-devel
I'm in the habit of build kernels on machines that are very close to the distribution I run as guest. In the past, I found that this approach (using the default config file that ships with the distribution) can help me choose the right kernel options for the distribution (should I use devfs, which crypto modules should I build, etc).
In this case, the SuSE 9.0 is a i386 2.4 kernel. However, I will try these same steps with a "blank" config.
Tony
>>> Jeff Dike <jdike@addtoit.com> 07/01/04 09:43AM >>>
Anthony_Brock@ous.edu said:
> gzip -dc /proc/config.gz > .config
wtf are you trying to accomplish here? You can't use the host's (i386 2.6)
.config to build a 2.4 UML kernel.
Jeff
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [uml-devel] Problems compiling 2.4 kernel
@ 2004-07-01 15:30 Anthony Brock
2004-07-01 16:43 ` Jeff Dike
0 siblings, 1 reply; 7+ messages in thread
From: Anthony Brock @ 2004-07-01 15:30 UTC (permalink / raw)
To: user-mode-linux-devel
I've been using 2.6 kernels for several months. However, a new project requires me to build a UML 2.4 kernel. Unfortunately, I can't seem to compile the guest kernel. For this task, we've deployed a new machine with:
SuSE 9.0
C/C++ Development installed
My steps are as follows:
lynx http://www.kernel.org/ (download the 2.4.26 kernel)
lynx http://prdownloads.sourceforge.net/user-mode-linux/uml-patch-2.4.26-1.bz2
tar -zxf linux-2.4.26.tar.gz
chown -R root:root linux-2.4.26
cd linux-2.4.26/
patch -p1 <../uml-patch-2.4.26-1 (applies cleanly with no rejects)
vi Makefile (replace all instances of '-02' with '-01')
gzip -dc /proc/config.gz > .config
make oldconfig ARCH=um
make dep ARCH=um (this just flies - it takes less than one second)
make ARCH=um
At this point, I see over 5000 errors lines. It starts with:
gcc -D__KERNEL__ -I/root/uml-2.4/linux-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -g -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE -I/root/uml-2.4/linux-2.4.26/arch/um/include -Derrno=kernel_errno -I/root/uml-2.4/linux-2.4.26/arch/um/kernel/tt/include -I/root/uml-2.4/linux-2.4.26/arch/um/kernel/skas/include -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /root/uml-2.4/linux-2.4.26/include/linux/posix_types.h:46,
from /root/uml-2.4/linux-2.4.26/include/linux/types.h:15,
from /root/uml-2.4/linux-2.4.26/include/linux/capability.h:16,
from /root/uml-2.4/linux-2.4.26/include/linux/binfmts.h:5,
from /root/uml-2.4/linux-2.4.26/include/linux/sched.h:9,
from /root/uml-2.4/linux-2.4.26/include/linux/mm.h:4,
from /root/uml-2.4/linux-2.4.26/include/linux/slab.h:14,
from /root/uml-2.4/linux-2.4.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/root/uml-2.4/linux-2.4.26/include/asm/posix_types.h:4:34: asm/arch/posix_types.h: No such file or directory
In file included from /root/uml-2.4/linux-2.4.26/include/linux/types.h:16,
from /root/uml-2.4/linux-2.4.26/include/linux/capability.h:16,
from /root/uml-2.4/linux-2.4.26/include/linux/binfmts.h:5,
from /root/uml-2.4/linux-2.4.26/include/linux/sched.h:9,
from /root/uml-2.4/linux-2.4.26/include/linux/mm.h:4,
from /root/uml-2.4/linux-2.4.26/include/linux/slab.h:14,
from /root/uml-2.4/linux-2.4.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/root/uml-2.4/linux-2.4.26/include/asm/types.h:4:28: asm/arch/types.h: No such file or directory
In file included from /root/uml-2.4/linux-2.4.26/include/linux/capability.h:16,
from /root/uml-2.4/linux-2.4.26/include/linux/binfmts.h:5,
from /root/uml-2.4/linux-2.4.26/include/linux/sched.h:9,
from /root/uml-2.4/linux-2.4.26/include/linux/mm.h:4,
from /root/uml-2.4/linux-2.4.26/include/linux/slab.h:14,
from /root/uml-2.4/linux-2.4.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/root/uml-2.4/linux-2.4.26/include/linux/types.h:21: error: parse error before "dev_t"
/root/uml-2.4/linux-2.4.26/include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
/root/uml-2.4/linux-2.4.26/include/linux/types.h:21: warning: data definition has no type or storage class
/root/uml-2.4/linux-2.4.26/include/linux/types.h:22: error: parse error before "ino_t"
Help is greatly appreciated!
Tony
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [uml-devel] Problems compiling 2.4 kernel
2004-07-01 15:30 Anthony Brock
@ 2004-07-01 16:43 ` Jeff Dike
2004-07-01 17:36 ` BlaisorBlade
0 siblings, 1 reply; 7+ messages in thread
From: Jeff Dike @ 2004-07-01 16:43 UTC (permalink / raw)
To: Anthony Brock; +Cc: user-mode-linux-devel
Anthony_Brock@ous.edu said:
> gzip -dc /proc/config.gz > .config
wtf are you trying to accomplish here? You can't use the host's (i386 2.6)
.config to build a 2.4 UML kernel.
Jeff
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [uml-devel] Problems compiling 2.4 kernel
2004-07-01 16:43 ` Jeff Dike
@ 2004-07-01 17:36 ` BlaisorBlade
0 siblings, 0 replies; 7+ messages in thread
From: BlaisorBlade @ 2004-07-01 17:36 UTC (permalink / raw)
To: Jeff Dike, Anthony Brock; +Cc: user-mode-linux-devel
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
Alle 18:43, giovedì 1 luglio 2004, Jeff Dike ha scritto:
> Anthony_Brock@ous.edu said:
The problem is another: uml Makefile don't manage properly the
include/asm/arch symlink, and it is not created:
> asm/arch/posix_types.h: No such file or directory
To workaround this:
cd include
<make sure that asm points to asm-um>
cd asm
ln -s ../asm-i386 arch
There is a lot of other people claiming similar problems. For instance,
somebody else complained that to build UML he must avoid doing "make mrproper
ARCH=um" because some files are not recreated (with 2.4.24-3).
However, Anthony, I would recommend using, for optimal stability, a 2.4.26
vanilla kernel patched with 2.4.24-1um + the attached patch.
Bye
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
[-- Attachment #2: uml-2.4.26-cmpxchg.patch --]
[-- Type: text/x-diff, Size: 1049 bytes --]
--- linux-2.4.26/include/asm-um/system-i386.h Wed Apr 21 15:33:45 2004
+++ linux-2.4.26-umlfix/include/asm-um/system-i386.h Wed Apr 21 15:27:14 2004
@@ -5,35 +5,4 @@
#define __HAVE_ARCH_CMPXCHG 1
-static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
- unsigned long new, int size)
-{
- unsigned long prev;
- switch (size) {
- case 1:
- __asm__ __volatile__(LOCK_PREFIX "cmpxchgb %b1,%2"
- : "=a"(prev)
- : "q"(new), "m"(*__xg(ptr)), "0"(old)
- : "memory");
- return prev;
- case 2:
- __asm__ __volatile__(LOCK_PREFIX "cmpxchgw %w1,%2"
- : "=a"(prev)
- : "q"(new), "m"(*__xg(ptr)), "0"(old)
- : "memory");
- return prev;
- case 4:
- __asm__ __volatile__(LOCK_PREFIX "cmpxchgl %1,%2"
- : "=a"(prev)
- : "q"(new), "m"(*__xg(ptr)), "0"(old)
- : "memory");
- return prev;
- }
- return old;
-}
-
-#define cmpxchg(ptr,o,n)\
- ((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
- (unsigned long)(n),sizeof(*(ptr))))
-
#endif
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-07-01 20:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 16:13 [uml-devel] Problems compiling 2.4 kernel Anthony Brock
-- strict thread matches above, loose matches on Subject: below --
2004-07-01 17:40 Anthony Brock
2004-07-01 21:05 ` Jeff Dike
2004-07-01 16:04 Anthony Brock
2004-07-01 15:30 Anthony Brock
2004-07-01 16:43 ` Jeff Dike
2004-07-01 17:36 ` BlaisorBlade
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.