Recently someone asked about compiling the patched linux kernel.  try using the setup details here below, and that should work.

Lisa

---------- Forwarded message ----------
From: Nathan Binkert <[EMAIL PROTECTED]>
Date: Feb 17, 2006 11:23 AM
Subject: Re: [m5sim-users] Compiling patched M5 kernel
To: Edmond Coté <[EMAIL PROTECTED]>
Cc: [email protected]

> Has anyone had any success compiling linux-2.6.8.1 patched with
> linux_m5-2.6.8.1.diff ?
I have, but then again, I generated the stuff. :)

> Using gcc-2.95.3 and glibc-2.2.5 cross-compiled for alpha, I obtained the
> following error message:
I think the linux kernel requires at least gcc-3.0.

> I've since attempted to generate new cross-compilers based on gcc 3.2 and
> above, however I've yet been able to obtain a successful build (using
> crosstool-0.37).
Most recently, I used crosstool-0.38 with these params:
TARGET=alpha-unknown-linux-gnu
PREFIX=/usr/local/cross
BUILD_DIR=$CROSS_DIR/$TARGET-$HOSTNAME
SRC_DIR=$CROSS_DIR/src
BINUTILS_DIR= binutils-2.16.1
GCC_DIR=gcc-4.0.2
GCC_LANGUAGES="c,c++"
GLIBC_DIR=glibc-2.3.5
GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.5
LINUX_DIR=linux-2.6.13
GCC_DIR=gdb-6.3
TARGET_CFLAGS=-O

> Can anyone please provide some further insight?, maybe I'm missing a compiler
> or configuration switch somewhere. I've also attempted a build using
> linux-dist using the default configuration and it failed outright.

Try again with those variables set and let's see where you get.  If that
doesn't work, I can send you the wrapper scripts that I use to setup and
build the cross stuff for me.

   Nathan


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

_______________________________________________
m5sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m5sim-users

Reply via email to