Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Has anyone installed gcc-2.5.8 on an Alpha OSF1?
@ 1994-06-24 14:04 B.G. Mahesh
  1994-06-25 15:23 ` Mitch Gart
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: B.G. Mahesh @ 1994-06-24 14:04 UTC (permalink / raw)


alpha.evb.com(37)% uname -a
OSF1 alpha.evb.com X2.0 201.1 alpha

I want to install gcc-2.5.8 on my Alpha OSF1. 
I get a zillion warnings when I compile. I got
thru' stage1 but stage2 fails..

stage2/xgcc -Bstage2/ -c  -DIN_GCC   -g -O     -I. -I. -I./config 
                                                ./fix-header.c
In file included from ./hconfig.h:63,
                 from ./fix-header.c:81:
/usr/include/string.h:235: warning: conflicting types for 
                                   built-in function `ffs'
./fix-header.c: In function `strdup':
./fix-header.c:436: argument `str' doesn't match prototype
/usr/include/string.h:239: prototype declaration
make: *** [fix-header.o] Error 1

any suggestions?

-- 
B.G. Mahesh                     | Email: mahesh@evb.com
Software Engineer               |        mahesh@sett.com
EVB Software Engineering, Inc.  | 


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

* Re: Has anyone installed gcc-2.5.8 on an Alpha OSF1?
  1994-06-24 14:04 Has anyone installed gcc-2.5.8 on an Alpha OSF1? B.G. Mahesh
@ 1994-06-25 15:23 ` Mitch Gart
  1994-06-25 23:29 ` Michael Meissner
  1994-06-26 14:38 ` Carl Harris
  2 siblings, 0 replies; 4+ messages in thread
From: Mitch Gart @ 1994-06-25 15:23 UTC (permalink / raw)


B.G. Mahesh (mahesh@source.asset.com) wrote:
: alpha.evb.com(37)% uname -a
: OSF1 alpha.evb.com X2.0 201.1 alpha

: I want to install gcc-2.5.8 on my Alpha OSF1. 
: I get a zillion warnings when I compile. I got
: thru' stage1 but stage2 fails..

: stage2/xgcc -Bstage2/ -c  -DIN_GCC   -g -O     -I. -I. -I./config 
:                                                 ./fix-header.c
: In file included from ./hconfig.h:63,
:                  from ./fix-header.c:81:
: /usr/include/string.h:235: warning: conflicting types for 
:                                    built-in function `ffs'
: ./fix-header.c: In function `strdup':
: ./fix-header.c:436: argument `str' doesn't match prototype
: /usr/include/string.h:239: prototype declaration
: make: *** [fix-header.o] Error 1

: any suggestions?

: -- 
: B.G. Mahesh                     | Email: mahesh@evb.com
: Software Engineer               |        mahesh@sett.com
: EVB Software Engineering, Inc.  | 


We were trying to port some software to Alpha NT (not Alpha OSF1).
Using the DEC C compiler we kept getting strange errors in the
C preprocessor, which seemed to be bugs.  So we decided to try
porting the GNU C preprocessor to Alpha NT, to give us a better
preprocessor on that machine.  No luck.  The DEC C compiler 
wouldn't compile the GNU C preprocessor.  It made "syntax error"
messages on lines where I don't think there were syntax errors.

I wanted to post a question about all this to some news group
to see if other people are having similar problems with the DEC
Alpha C compiler, but I couldn't find an appropriate news group.

If anyone succeeds in getting GNU C to work on the Alpha, or if
anyone even knows of a good newsgroup to discuss Alpha issues,
please let me know.

	Mitch Gart
	mg@inmet.com


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

* Re: Has anyone installed gcc-2.5.8 on an Alpha OSF1?
  1994-06-24 14:04 Has anyone installed gcc-2.5.8 on an Alpha OSF1? B.G. Mahesh
  1994-06-25 15:23 ` Mitch Gart
@ 1994-06-25 23:29 ` Michael Meissner
  1994-06-26 14:38 ` Carl Harris
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Meissner @ 1994-06-25 23:29 UTC (permalink / raw)


In article <2uep5b$1827@source.asset.com> mahesh@source.asset.com (B.G. Mahesh)
writes:

| alpha.evb.com(37)% uname -a
| OSF1 alpha.evb.com X2.0 201.1 alpha
| 
| I want to install gcc-2.5.8 on my Alpha OSF1. 
| I get a zillion warnings when I compile. I got
| thru' stage1 but stage2 fails..
| 
| stage2/xgcc -Bstage2/ -c  -DIN_GCC   -g -O     -I. -I. -I./config 
|                                                 ./fix-header.c
| In file included from ./hconfig.h:63,
|                  from ./fix-header.c:81:
| /usr/include/string.h:235: warning: conflicting types for 
|                                    built-in function `ffs'
| ./fix-header.c: In function `strdup':
| ./fix-header.c:436: argument `str' doesn't match prototype
| /usr/include/string.h:239: prototype declaration
| make: *** [fix-header.o] Error 1

I've seen changes go into the internal FSF source tree for GCC that fix these
problems.  Until the next release of GCC comes out, you could play around with
nuking the ffs and strdup functions from the gcc version of the include files
(in the include subdirectory).
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Old hackers never die, their bugs just increase.


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

* Re: Has anyone installed gcc-2.5.8 on an Alpha OSF1?
  1994-06-24 14:04 Has anyone installed gcc-2.5.8 on an Alpha OSF1? B.G. Mahesh
  1994-06-25 15:23 ` Mitch Gart
  1994-06-25 23:29 ` Michael Meissner
@ 1994-06-26 14:38 ` Carl Harris
  2 siblings, 0 replies; 4+ messages in thread
From: Carl Harris @ 1994-06-26 14:38 UTC (permalink / raw)


B.G. Mahesh (mahesh@source.asset.com) wrote:
: I get a zillion warnings when I compile. 

Not unusual, and not a problem.

: I got thru' stage1 but stage2 fails..
: stage2/xgcc -Bstage2/ -c  -DIN_GCC   -g -O     -I. -I. -I./config 
:                                                 ./fix-header.c
: In file included from ./hconfig.h:63,
:                  from ./fix-header.c:81:
: /usr/include/string.h:235: warning: conflicting types for 
:                                    built-in function `ffs'
: ./fix-header.c: In function `strdup':
: ./fix-header.c:436: argument `str' doesn't match prototype
: /usr/include/string.h:239: prototype declaration
: make: *** [fix-header.o] Error 1

I compiled it this morning.  There were two things I had to do in order to
compile it successfully under OSF/1 v2.0:

1.	Edit the file config/xm-alpha.h (it is distributed without write
	permission, so chmod it first).  Down near the bottom of the file
	is a line that looks like:
 	  extern void *malloc (), *realloc (), *sbrk(), *calloc (), *alloca ();

	Delete the declaration for *sbrk() in that list, and save the file.


2.	Run configure, build the stage1 compiler, and 'make stage1'.


3.	Edit the file fix-header.c.  At the function definition for strdup,
	you'll see:
	   strdup (str)
             char *str;
           {
	     (code in here)
           }

 	Add the 'const' modifier to the type declaration for str, like this
           strdup (str)
           const char *str;
           {
             (code in here)                
           }

4.	Now build the stage 2 compiler (step 12 in the INSTALL document), 
	and the rest will go smoothly.

--
Carl Harris		"If you give an infinite number of monkeys desktop
EXECUTIVE Scapegoat      publishing software, they will eventually produce an
ceharris@vt.edu          issue of _Wired_."  -Marc VanHeyningen
http://csugrad.cs.vt.edu/aboutus/ceharris.html


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

end of thread, other threads:[~1994-06-26 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-24 14:04 Has anyone installed gcc-2.5.8 on an Alpha OSF1? B.G. Mahesh
1994-06-25 15:23 ` Mitch Gart
1994-06-25 23:29 ` Michael Meissner
1994-06-26 14:38 ` Carl Harris

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