Skip to contentSkip to conversation

compile failure on uml-2.6.15-bs3-tls (and an easy fix)

uml-devel Erik Paulson 2 participants 2 messages Mar 17, 2006 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore 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/[email protected]/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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 7 lines · Erik Paulson

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/[email protected]/msg
02943.html

Ah, ok... here's why he posted that patch. Thanks for the report, I had integrated it anyway in my tree for next release, but I didn't know it fixed a bug - RH headers are different so I didn't experience this problem.

Fix will be in -bb5 and subsequent release.

Quoted 18 lines

(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:

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

Signature · 23 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel