linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* What causes this error on LinuxPPC?
@ 2000-07-14  4:24 ian geiser
  2000-07-14  6:39 ` Kaoru Fukui
  2000-07-14 11:30 ` Franz Sirl
  0 siblings, 2 replies; 3+ messages in thread
From: ian geiser @ 2000-07-14  4:24 UTC (permalink / raw)
  To: linuxppc-dev@lists.linuxppc.org


Greetings

    I am trying to compile a program using gcc version 2.95.3 19991030 (prerelease/franzo/20000622)

    for some reason i get this error.  I do not get this error on my stock Linux Mandrake 7.1

    box though.  Any ideas?

gencode.o: In function `prcode':
gencode.o(.text+0x8bf0): undefined reference to `__va_arg_type_violation'
gencode.o(.text+0x8bf0): relocation truncated to fit: R_PPC_REL24 __va_arg_type_violation
collect2: ld returned 1 exit status

    -ian reinhart geiser

--
.---------------------------------------------------.
| Ian Reinhart Geiser - Computer Engineering Student|
| HOME:                           |
| WORK:                       |
| WEB:  http://www.msoe.edu/~geiseri                |
`---------------------------------------------------'


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: What causes this error on LinuxPPC?
  2000-07-14  4:24 What causes this error on LinuxPPC? ian geiser
@ 2000-07-14  6:39 ` Kaoru Fukui
  2000-07-14 11:30 ` Franz Sirl
  1 sibling, 0 replies; 3+ messages in thread
From: Kaoru Fukui @ 2000-07-14  6:39 UTC (permalink / raw)
  To: ian geiser; +Cc: linuxppc-dev


From: ian geiser <geiseri@msoe.edu>
To: "linuxppc-dev@lists.linuxppc.org" <linuxppc-dev@lists.linuxppc.org>
Subject: What causes this error on LinuxPPC?
Date: Thu, 13 Jul 2000 23:24:19 -0500

>
> Greetings
>
>     I am trying to compile a program using gcc version 2.95.3 19991030 (prerelease/
franzo/20000622)
>
>     for some reason i get this error.  I do not get this error on my stock Linux
Mandrake 7.1
>
>     box though.  Any ideas?

See  at

/usr/gcc-lib/ppc-redhatt-linux/2.95.3/include/va-ppc.h


Kaoru


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: What causes this error on LinuxPPC?
  2000-07-14  4:24 What causes this error on LinuxPPC? ian geiser
  2000-07-14  6:39 ` Kaoru Fukui
@ 2000-07-14 11:30 ` Franz Sirl
  1 sibling, 0 replies; 3+ messages in thread
From: Franz Sirl @ 2000-07-14 11:30 UTC (permalink / raw)
  To: ian geiser; +Cc: linuxppc-dev@lists.linuxppc.org


At 06:24 14.07.00, ian geiser wrote:

>Greetings
>
>     I am trying to compile a program using gcc version 2.95.3 19991030
> (prerelease/franzo/20000622)
>
>     for some reason i get this error.  I do not get this error on my
> stock Linux Mandrake 7.1
>
>     box though.  Any ideas?
>
>gencode.o: In function `prcode':
>gencode.o(.text+0x8bf0): undefined reference to `__va_arg_type_violation'
>gencode.o(.text+0x8bf0): relocation truncated to fit: R_PPC_REL24
>__va_arg_type_violation
>collect2: ld returned 1 exit status

The source in gencode.c is buggy, change this illegal C line:

        char c = va_arg(ap,char);

to the correct one

        char c = (char) va_arg(ap,int);

and you should be fine.

Franz.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-07-14 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-14  4:24 What causes this error on LinuxPPC? ian geiser
2000-07-14  6:39 ` Kaoru Fukui
2000-07-14 11:30 ` Franz Sirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).