public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.4] build error with latest BK
@ 2004-06-15 16:48 Nuno Monteiro
  2004-06-16  2:38 ` Nick Piggin
  0 siblings, 1 reply; 9+ messages in thread
From: Nuno Monteiro @ 2004-06-15 16:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: nickpiggin, marcelo.tosatti


Hi all,


Just pulled latest bk of 2.4 and it appears to be broken. The recent  
rwsem race fixes seem to be the culprit (see  
http://linux.bkbits.net:8080/linux-2.4/cset@40cee86dCLGhZc1lEOWZV6K7FysQlw?nav=index.html| 
ChangeSet@-1d). Reversing it fixes the problem.


gcc -D__KERNEL__ -I/usr/local/src/linux-2.4/include -Wall -Wstrict- 
prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit- 
frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon   - 
nostdinc -iwithprefix include -DKBUILD_BASENAME=rwsem  -DEXPORT_SYMTAB -c  
rwsem.c
rwsem.c: In function `__rwsem_do_wake':
rwsem.c:67: warning: implicit declaration of function `put_task_struct'
rwsem.c: In function `rwsem_down_failed_common':
rwsem.c:131: error: `mem_map' undeclared (first use in this function)
rwsem.c:131: error: (Each undeclared identifier is reported only once
rwsem.c:131: error: for each function it appears in.)
make[2]: *** [rwsem.o] Error 1
make[2]: Leaving directory `/usr/local/src/linux-2.4/lib'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/local/src/linux-2.4/lib'
make: *** [_dir_lib] Error 2


x86 target, gcc 3.3.2 (or 2.95.4 prerelease). Ping me if you need .config  
or anything else.


[nuno@calvin] /usr/local/src/linux-2.4$ patch -Rp1 < fix-rwsem-race
patching file lib/rwsem-spinlock.c
patching file lib/rwsem.c
[nuno@calvin] /usr/local/src/linux-2.4$ cd lib
[nuno@calvin] ..src/linux-2.4/lib$ gcc -D__KERNEL__ -I/usr/local/src/ 
linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno- 
strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack- 
boundary=2 -march=athlon   -nostdinc -iwithprefix include - 
DKBUILD_BASENAME=rwsem  -DEXPORT_SYMTAB -c rwsem.c
[nuno@calvin] ..src/linux-2.4/lib$ echo $?
0



Regards,


		Nuno

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-06-16 20:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-15 16:48 [2.4] build error with latest BK Nuno Monteiro
2004-06-16  2:38 ` Nick Piggin
2004-06-16  8:20   ` David Howells
2004-06-16  8:43     ` Nick Piggin
2004-06-16  9:01       ` Mikael Pettersson
2004-06-16  9:04         ` Nick Piggin
2004-06-16 13:40           ` Nuno Monteiro
2004-06-16 13:57             ` Marcelo Tosatti
2004-06-16 15:07           ` [2.4] build error with latest BK [fixed patch] Nuno Monteiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox