From: Erik Paulson <epaulson@cs.wisc.edu>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] compile failure on uml-2.6.15-bs3-tls (and an easy fix)
Date: Fri, 17 Mar 2006 12:57:23 -0600 [thread overview]
Message-ID: <20060317185723.GA8310@cobalt.cs.wisc.edu> (raw)
Hello,
On a CentOS 4.2 machine, I had the same failure that Bill Stearns had
back in January in this message:
http://www.mail-archive.com/user-mode-linux-devel@lists.sourceforge.net/msg02943.html
(the failure:
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'
)
The small addition of #include <linux/unistd.h> fixed it for me.
Here's how I built my kernel:
tar xvfz /p/mirror/pub/mirrors/linux/kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.6.tar.gz
wget http://www.user-mode-linux.org/~blaisorblade/patches/guest/uml-2.6.15-bs3-tls/uml-2.6.15-bs3-tls.patch.bz2
wget http://uml.nagafix.co.uk/kernels/kernel32-2.6.15.6-bs3-tls.config
bunzip2 uml-2.6.15-bs3-tls.patch.bz2
cd linux-2.6.15.6/
patch -p1 < ../uml-2.6.15-bs3-tls.patch
make mrproper ARCH=um
cp ../kernel32-2.6.15.6-bs3-tls.config .config
make ARCH=um oldconfig
make linux ARCH=um
vi arch/um/os-Linux/tls.c
make linux ARCH=um
teal(37)% gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
teal(40)% rpm -qa | grep glibc
glibc-utils-2.3.4-2.13
glibc-common-2.3.4-2.13
glibc-headers-2.3.4-2.13
glibc-2.3.4-2.13
glibc-devel-2.3.4-2.13
glibc-kernheaders-2.4-9.1.98.EL
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2006-03-17 18:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 18:57 Erik Paulson [this message]
2006-03-17 19:39 ` [uml-devel] compile failure on uml-2.6.15-bs3-tls (and an easy fix) Blaisorblade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060317185723.GA8310@cobalt.cs.wisc.edu \
--to=epaulson@cs.wisc.edu \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox