🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #5949

Installing bug?

#5949
From: Mikael Hedin
Date: Fri, 10 Jan 1997 00:00
23 lines
1453 bytes
I install gcc on my private account, and while making the stage 2
compiler, I get the following:

micce@endymion:~/bin/gcc-2.7.2.1/cp>make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2"
stage1/xgcc -Bstage1/ -c  -DIN_GCC   -g -O2     -I. -I.. -I. -I./.. -I./../config errfn.c
errfn.c: In function `cp_sprintf':
errfn.c:198: conflicting types for `sprintf'
include/stdio.h:182: previous declaration of `sprintf'
make: *** [errfn.o] Error 1

micce@endymion:~/bin/gcc-2.7.2.1/cp>grep sprintf include/stdio.h                extern int      sprintf __((char *, const char *, ...));
extern int  vsprintf __((char *, const char *, __gnuc_va_list));
extern int  vsprintf __((char *, const char *, __gnuc_va_list));
extern int  vsprintf __((char *, const char *, __gnuc_va_list));
#pragma intrinsic(printf, fprintf,sprintf)

micce@endymion:~/bin/gcc-2.7.2.1/cp>grep sprintf errfn.c
cp_sprintf (format, arglist)
  extern errorfn sprintf;
  cp_thing (sprintf, 0, format, arglist);

Regards Mikael Hedin
Technical Details
Message-ID: <9701101840.AA10956@vanosf.physto.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,7c8c6b9d3009ef0,start
X-Google-Attributes: gid113d02,public
From: micce@vanosf.physto.se (Mikael Hedin)
Subject: Installing bug?
Date: 1997/01/10
Message-ID: <9701101840.AA10956@vanosf.physto.se>
X-Deja-AN: 208982501
sender: bug-gcc-request@prep.ai.mit.edu
x-gateway: relay4.UU.NET from bug-gcc to gnu.gcc.bug; Fri, 10 Jan 1997 13:39:53 EST
newsgroups: gnu.gcc.bug