mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: latest-ac9 compile error (gcc3)
@ 2001-05-14 21:07 Petr Vandrovec
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vandrovec @ 2001-05-14 21:07 UTC (permalink / raw)
  To: mirabilos; +Cc: linux-kernel

On 14 May 01 at 20:38, mirabilos wrote:

> I have removed the "inline" in rwsem.h as suggested, and now
> can't compile -ac9 with the following error (seems to be a
> problem in the part that loads the compressed image):

> misc.o(.text.lock+0xa): undefined reference to `rwsem_wake'

You cannot remove inline from there. For some unknown reason even
if you'll mark it as 'static', gcc3 will still emit this code into object
file. You have to change constraint from "+d" to "+r" (with
changing %edx => %0 and adding push %edx around call to rwsemwake), or
just rewrite it in the way __up_write operates (movl %2,%%edx, add
"edx" into clobbered and %2 as value assigned to tmp, patch sent last week).
 
> Compiler: gcc3-snapshot 14.5.2001

Pre-26th snapshots have some fatal bug in optimizing 
if (x) a = 123; else a = 456; :-( Look back through linux-kernel archive.
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz


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

* latest-ac9 compile error (gcc3)
@ 2001-05-14 18:38 mirabilos
  0 siblings, 0 replies; 2+ messages in thread
From: mirabilos @ 2001-05-14 18:38 UTC (permalink / raw)
  To: linux-kernel

Hi,
I have removed the "inline" in rwsem.h as suggested, and now
can't compile -ac9 with the following error (seems to be a
problem in the part that loads the compressed image):

gcc -D__ASSEMBLY__ -D__KERNEL__ -I/glc/build/linux-2.4.4-ac9/include -traditional -c head.S
gcc -D__KERNEL__ -I/glc/build/linux-2.4.4-ac9/include -O2 -DSTDC_HEADERS -c misc.c
ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
misc.o(.text.lock+0xa): undefined reference to `rwsem_wake'
make[2]: *** [bvmlinux] Error 1
make[2]: Leaving directory `/glc/build/linux-2.4.4-ac9/arch/i386/boot/compressed'
make[1]: *** [compressed/bvmlinux] Error 2
make[1]: Leaving directory `/glc/build/linux-2.4.4-ac9/arch/i386/boot'
make: *** [bzImage] Error 2
ecce:/usr/src/linux #

Can anyone think why this is?
More info (config etc.) on request.
Compiler: gcc3-snapshot 14.5.2001

-mirabilos
-- 
by telnet

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

end of thread, other threads:[~2001-05-14 19:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-14 21:07 latest-ac9 compile error (gcc3) Petr Vandrovec
  -- strict thread matches above, loose matches on Subject: below --
2001-05-14 18:38 mirabilos

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

all inboxes | Powered by JetHome®