Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Profiling still broken?
@ 1997-09-30 17:35 Toon Moene
  1997-09-30 18:12 ` Em86 problems Scott Manley
  0 siblings, 1 reply; 9+ messages in thread
From: Toon Moene @ 1997-09-30 17:35 UTC (permalink / raw)


>  So in any case, what's one to do regarding profiling?
>  Is there a patch for gcc 2.7.2.1 to fix it?  Or should
>  I grab some code from g77-0.5.21?  Or should I get
>  2.7.2.3?  Or what?

This is the patch that went into g77-0.5.21 for gcc-2.7.2.3:

- - - - - - - - 8< - - - - - - - - - - - 8< - - - - - - - - - - - -
diff -rcp2N gcc-2.7.2.3/final.c gcc-2.7.2.3.f.1/final.c
*** gcc-2.7.2.3/final.c Sun Nov 26 18:50:00 1995
--- gcc-2.7.2.3.f.1/final.c     Fri Jul 11 00:11:16 1997
*************** profile_function (file)
*** 983,991 ****
    text_section ();

! #ifdef STRUCT_VALUE_INCOMING_REGNUM
    if (sval)
      ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_INCOMING_REGNUM);
  #else
! #ifdef STRUCT_VALUE_REGNUM
    if (sval)
      ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_REGNUM);
--- 983,991 ----
    text_section ();

! #if defined(STRUCT_VALUE_INCOMING_REGNUM) &&  
defined(ASM_OUTPUT_REG_PUSH)
    if (sval)
      ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_INCOMING_REGNUM);
  #else
! #if defined(STRUCT_VALUE_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
    if (sval)
      ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_REGNUM);
*************** profile_function (file)
*** 993,1027 ****
  #endif

! #if 0
! #ifdef STATIC_CHAIN_INCOMING_REGNUM
    if (cxt)
      ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM);
  #else
! #ifdef STATIC_CHAIN_REGNUM

  #else
! #ifdef STATIC_CHAIN_REGNUM
    if (cxt)
      ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM);
  #endif
  #endif
- #endif                                /* 0 */

    FUNCTION_PROFILER (file, profile_label_no);

! #if 0
! #ifdef STATIC_CHAIN_INCOMING_REGNUM
    if (cxt)
      ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM);
  #else
! #ifdef STATIC_CHAIN_REGNUM
    if (cxt)
      ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM);
  #endif
  #endif
- #endif                                /* 0 */

! #ifdef STRUCT_VALUE_INCOMING_REGNUM
    if (sval)
      ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_INCOMING_REGNUM);
  #else
! #ifdef STRUCT_VALUE_REGNUM
    if (sval)
      ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_REGNUM);
--- 993,1023 ----
  #endif

! #if defined(STATIC_CHAIN_INCOMING_REGNUM) &&  
defined(ASM_OUTPUT_REG_PUSH)
    if (cxt)
      ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM);
  #else
! #if defined(STATIC_CHAIN_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
    if (cxt)
      ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM);
  #endif
  #endif

    FUNCTION_PROFILER (file, profile_label_no);

! #if defined(STATIC_CHAIN_INCOMING_REGNUM) &&  
defined(ASM_OUTPUT_REG_PUSH)
    if (cxt)
      ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM);
  #else
! #if defined(STATIC_CHAIN_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
    if (cxt)
      ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM);
  #endif
  #endif

! #if defined(STRUCT_VALUE_INCOMING_REGNUM) &&  
defined(ASM_OUTPUT_REG_PUSH)
    if (sval)
      ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_INCOMING_REGNUM);
  #else
! #if defined(STRUCT_VALUE_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
    if (sval)

! #if defined(STRUCT_VALUE_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
    if (sval)
      ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_REGNUM);
- - - - - - - - 8< - - - - - - - - - - - 8< - - - - - - - - - - - -

This also seems to be what still is in egcs-970922, so it looks  
like this is safe.  However, use at your own risk, void where  
prohibited, etc.

HTH,
Toon.

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
* em86 problems
@ 1998-01-08 15:31 Dirk Schulte
  0 siblings, 0 replies; 9+ messages in thread
From: Dirk Schulte @ 1998-01-08 15:31 UTC (permalink / raw)


hi folks,

i am working on a pc164lx platform, which i have updated from redhat 4.2 to
redhat 5.0 and from kernel 2.0.30 to 2.0.32. up to this point, everything works
fine. now i have tried to install em86 but encountered some problems doing that.
i got the em86 v0.2 from gatekeeper and started making the modifications as
indicated in the description 'downloading and installing em86'.

patching and rebuilding the kernel has been no problem, but installing the
packages needed for em86 doesn't work. when doing
   rpm -ivh em86-0.2-3.alpha.rpm
i get the error message
   failed dependencies:
          libm.so.6 is needed by em86-0.2-3
          libdl.so.2 is needed by em86-0.2-3
          libc.so.6 is needed by em86-0.2-3
what is going wrong here? i have noticed that in /lib i have libraries which are
called for example libm.so.6.1. so i made a link libm.so.6 to libm.so.6.1 but
the error message remains. then i tried out a libm.so.6 which is included in the
redhat distribution (under misc/src/trees/skeleton/lib), but also the effect is
the same. i read in a posting that for em86 libraries from the intel-linux are
needed, so i took the three 'missing' libraries from intel-linux, but also with
no effect. the package manager keeps on saying that he needs those three
libraries, even if they exist (or is the placing for the libraries in /lib wrong
- but i also tried out /usr/lib, with the same effect).

then i tried installing with
   rpm -ivh --ignorearch --nodeps em86-0.2-3.alpha.rpm
to supress the checking of dependencies, which worked - but the third package,
em86-baselibs-0.2-1.alpha.rpm failed during install with the error message, that
ldconfig86 is missing - which is part of em86-x86-0.2-1.i386.rpm, that has been
installed as second package, without error messages, but also, as it seems,
without success. but i think the errors already come from the problems that the
first package has with the libraries (and that were supressed by --nodeps).

so, can anybody help me out here, at the moment i have no more ideas regarding
this problem...
thanks in advance,
ciao,

Dirk !!

--------------------------------------------------------------------------
Dirk Schulte                                           dirk.schulte@dlr.de

Deutsches Zentrum fuer Luft- und Raumfahrt    /    German Aerospace Center
Institut fuer Stroemungsmechanik, Abt. Windkanaele Koeln          SM-SK KP
Linder Hoehe
D-51147 Koeln
Tel.: +49+2203/601-2628
Fax : +49+2203/601-2344
--------------------------------------------------------------------------

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <199712132108.WAA02187@localhost.localdomain>]
* em86 problems
@ 1997-12-13 21:08 Anders Nilsson
  0 siblings, 0 replies; 9+ messages in thread
From: Anders Nilsson @ 1997-12-13 21:08 UTC (permalink / raw)


Hi,

I'm having problems with the em86 emulator on my alpha,
when I try it I get the message 

  Your kernel does not support 31-bit addressing!
  Please apply the EM86 kernel patch and try again.

However I'm running kernel 2.0.32 with the 'alpha-patches-2.0.32-0.1' 
from gatekeeper.dec.com:/pub/DEC/Linux-Alpha/Kernels applied. It was
my understanding that these patches included the em86 changes.
I get the same result with 2.0.30 with 'alpha-patches-2.0.30-0.4'.

Anyone knows what I'm doing wrong ?

I have a Microway Screamer LX 433 motherboard.

Anders

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <9709301812.AA25382@star.arm.ac.uk>]
* em86 Problems
@ 1997-05-17 17:34 Al Shjarback
  0 siblings, 0 replies; 9+ messages in thread
From: Al Shjarback @ 1997-05-17 17:34 UTC (permalink / raw)


Recently I decided to have a go at running em86 while recompiling a kernel
I got hung up with the following....

gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall -Wstrict-prototypes -g -O2 -pipe -mno-fp-regs  -c -o init/main.o init/main.c
gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall -Wstrict-prototypes -g -O2 -pipe -mno-fp-regs -DUTS_MACHINE='"alpha"' -c -o init/version.o init/version.c
set -e; for i in kernel drivers mm fs net ipc lib arch/alpha/kernel arch/alpha/mm arch/alpha/lib arch/alpha/math-emu; do make -C $i; done
make[1]: Entering directory `/usr/src/linux-2.0.30/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.0.30/kernel'
exec.c: In function `binfmt_setup':
exec.c:79: warning: implicit declaration of function `init_em86_binfmt'
<snip>
gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall -Wstrict-prototypes -g -O2 -pipe -mno-fp-regs  -c -o binfmt_elf.o binfmt_elf.c
gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall -Wstrict-prototypes -g -O2 -pipe -mno-fp-regs  -c -o binfmt_aout.o binfmt_aout.c
make[2]: *** No rule to make target `binfmt_em86.o', needed by `fs.o'.  Stop.
make[2]: Leaving directory `/usr/src/linux-2.0.30/fs'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.30/fs'
make: *** [linuxsubdirs] Error 2

The configuration is:

		kernel 2.0.30 
		traparg-patch-2.0
		em86-patch	
		axp-diffs-2.0.30
		UDB 166
		installed the em86-libs.tar.gz

	Any Ideas...??

Thanks..Al Shjarback

als@intac.com

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

end of thread, other threads:[~1998-01-08 15:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-30 17:35 Profiling still broken? Toon Moene
1997-09-30 18:12 ` Em86 problems Scott Manley
  -- strict thread matches above, loose matches on Subject: below --
1998-01-08 15:31 em86 problems Dirk Schulte
     [not found] <199712132108.WAA02187@localhost.localdomain>
1997-12-13 21:24 ` Joakim Roubert
1997-12-14 21:27 ` Mika Kortelainen
1997-12-15 21:29   ` Anders Nilsson
1997-12-13 21:08 Anders Nilsson
     [not found] <9709301812.AA25382@star.arm.ac.uk>
1997-09-30 18:29 ` Em86 problems Travis W. Johnson
1997-05-17 17:34 em86 Problems Al Shjarback

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