HDTenEightyP/NetNews huggingface dataset:
From: install2@st6000.sct.edu (Ron Skopitz)
Subject: g++ lib... anyone???
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 22 Aug 1992 17:50:33 GMT

To all those helpful people,

	Since my first request of almost a week was never responded to...
I'll try begging one more time.  We understand that this probably isn't a
"real" gcc problem (just operator trouble) but we would appreciate any
assistance you folks may have... PLEASE???


	First, let me say, THANKS! for all the help you've given us so
far! We'd never have made it.  Here's that one question i still have (I
know it's been a while).  The make of g++ lib fails, apparently at the
"ld" stage.  I've tried various methods of indicating pathnames, etc to ld
with the -l and -L options, but to no avail.  The compiler is being built
in an install directory and NOT into /usr or any of the "default" ld
search-paths, but all the gcc lib stuff headers etc. ought to be visible
via my path.  As requested, here is a transcript of the failed make. 
Again, sorry to bother you and thanks for the assistance, we're soooo
close!! 



make CC="gcc" CFLAGS="-g -O" CC="gcc" all
cd stdio; make all ...
cd test; make all ...       
rm -f libg++.a
        rootme=`pwd` ; export rootme ; cd src ; ar qc ../libg++.a *.o
        rootme=`pwd`; export rootme; cd iostream; \
                   ar qc ../libg++.a *.o
        cd ../libiberty; \
                  ar qc ../libg++/libg++.a `cat needed-list` strerror.o strsignal.o
        ranlib libg++.a
        touch .stmp-genclass
        touch .stmp-tests
        touch .stmp-etc
        (rootme=`pwd` ; export rootme ; cd src ; \ 
                       make "CC=gcc" "CFLAGS=-g -O" "XTRAFLAGS=" \
                        "AR=`if [ -f ${rootme}/../../binutils/ar ] ; \
                then echo ${rootme}/../../binutils/ar ; \
                else echo ar ; fi`" "RANLIB=`if [ -f ${rootme}/../../binutils/ranlib ] ; \
                then echo ${rootme}/../../binutils/ranlib ; \
                else echo ranlib ; fi`")
        gcc -o gperf new.o options.o iterator.o main.o gen-perf.o key-list.o list-node.o hash-table.o bool-array.o read-line.o std-err.o version.o  ../../libg++.a
0706-005 ld: Cannot find file: libgcc.a
        Check path name and permissions or
        use local problem reporting procedures.
0706-005 ld: Cannot find file: libgcc.a
        Check path name and permissions or
        use local problem reporting procedures.
make: 1254-004 The error code from the last command is 1.

Make Quitting.
make: 1254-004 The error code from the last command is 2.

Make Quitting.
make: 1254-004 The error code from the last command is 2.

Make Quitting.
make: 1254-004 The error code from the last command is 2.

Make Quitting.


Again... see if you can make any sense outa this.... we don't seem to be
able to... :(  

				Thanks again, 

					Ron Skopitz
					install2@st6000.sct.edu
Newsgroups: gnu.gcc.help
From: eggert@twinsun.com (Paul Eggert)
Subject: Re: Question on optimizing "abs()"
Organization: Twin Sun, Inc
Distribution: gnu.gcc.help
Date: Sat, 15 Aug 1992 00:09:40 GMT

schmid@deneb.cbmvax.cbm.commodore.com (Bob Schmid) writes:

>I would like to write code for gcc 2.2 that will take the absolute
>value of a double in the fastest possible way.

Why not just use the `fabs' function?  On my machine (GCC 2.2.2 -O,
Sparc, SunOS 4.1.2) `fabs' takes just one machine instruction, e.g.
`fabss %f0,%f0'.
From: ctan%Solomon.Technet.sg (Tan Chee Weei)
Newsgroups: gnu.gcc.help
Subject: Fix for cc1plus internal error 6 ?
Date: 19 Aug 92 05:59:06 GMT
Distribution: all
Organization: National University of Singapore
X-Newsreader: Tin 1.1 PL5


Has anyone encountered the following message:

gcc: Internal compiler error: program cc1plus got fatal signal 6

I was compiling some C++ code using gcc 2.2.2 installed on a Sun Sparc
running SunOS 4.1.1. Is there a fix for it? Thanks

CW
Newsgroups: gnu.gcc.help
From: gdk@ssi.UUCP (Gary D. Kline)
Subject: IBM 370/3090 port of GCC
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 17 Aug 1992 22:42:39 GMT

Hello,

I'm looking for information regarding any port of the config files
of GCC to the IBM mainframe architecture.  Running AIX, naturally.

If anyone can point me to a name/address of somebody who had undertaken
this, I'd be much obliged indeed.

	--gary kline
From: jtien@venice.eng.uci.edu (Joe Tien)
Subject: floating point bias
Newsgroups: gnu.gcc.help
Reply-To: jtien@venice.eng.uci.edu (Joe Tien)
Organization: University of California, Irvine
Date: 21 Aug 92 01:39:11 GMT


Hello everyone,

I was looking at the floating point library (floatlib.c) in gcc-2.2.2 and noticed
that the bias (called EXCESS and EXCESSD in gcc's floatlib.c) for single and double precision floating number exponents are 126 and 1022, respectively. The IEEE floating point standard says they should be 127 and 1023. Why is that?

I know this is a stupid question and there must be a very simple answer to it since it can't be a typo (otherwise it would have been caught a long time ago). But I can figure it out and would really appreciate some help on the reason behind
it.

Since this is such a dumb question, you can reply to me at: 
		
		jtien@balboa.eng.uci.edu

Thanks again,

Joe Tien
Newsgroups: gnu.gcc.help
From:  (cpinson%htech.uucp@mathcs.emory.edu)
Subject: gcc cross compiler for 68000 under OS/2
Organization: Clemson University
Date: Wed, 19 Aug 1992 19:20:17 GMT

I would like to use the GNU gcc/g++ compiler for cross-development
of 68000 code under either the OS/2 operating system or MSDOS 5.0.  
If anyone has done this, I would greatly appreciate hearing from you.

Thank you!

------------------------------------------------------------------
Charles Pinson                 Knowledge Access International, Inc.
cpinson%htech.uucp@mathcs.emory.edu
From: maennig@fred.informatik.uni-dortmund.de (Olaf Maennig)
Newsgroups: gnu.gcc.help
Subject: ??gcc with ansi and math lib??
Date: 19 Aug 92 11:05:35 GMT
Organization: CS Department, Dortmund University, Germany
NNTP-Posting-Host: fred

Hi, folks.

I'm fairly new to C compilers on Sun, so please no flames to my question. :-)

I've problems with gcc -ansi. When including math.h from my program vector.c,
the following happens:

> make
/usr/local/gcc-2.2.2/bin/gcc -g -Wall -ansi -c vector.c
In file included from /usr/include/math.h:45, from vector.c:18:
/usr/include/floatingpoint.h:101: field `rd' has incomplete type
In file included from vector.c:18:
/usr/include/math.h:197: parse error before `r_acos_'
/usr/include/math.h:197: warning: data definition has no type or storage class
/usr/include/math.h:198: parse error before `r_acosh_'
/usr/include/math.h:198: warning: data definition has no type or storage class
/usr/include/math.h:199: parse error before `r_acospi_'
/usr/include/math.h:199: warning: data definition has no type or storage class
.
.
.
/usr/include/math.h:259: parse error before `r_y1_'
/usr/include/math.h:259: warning: data definition has no type or storage class
/usr/include/math.h:260: parse error before `r_yn_'
/usr/include/math.h:260: warning: data definition has no type or storage class
*** Error code 1
make: Fatal error: Command failed for target `vector.o'

This happens with both versions 1.40 and 2.2.2 of gcc.
When leaving '-ansi' away, it works as follows:

> make
/usr/local/gcc-2.2.2/bin/gcc -g -Wall -c vector.c
/usr/local/gcc-2.2.2/bin/gcc -g -Wall -c main.c
/usr/local/gcc-2.2.2/bin/gcc -g -Wall -lm -lc -o prg vector.o main.o
ld: Undefined symbol 
   _sqrt 
collect: /usr/bin/ld returned 2 exit status
*** Error code 1
make: Fatal error: Command failed for target `prg'


What is going wrong? I don't achieve to get it working.
Why does '-ansi' behave so that I cannot include math.h anymore?
And why isn't it possible to use 'sqrt', although I have told to link the
math library?

At my site, I cannot ask anyone, because they are all using 'cc'. Maybe I
should have used that one, too :(, but I wanted to have ansi support.
And now it's not working???

Fast help appreciated, because I have to work on my tool...

Thanx.
-- 

 ---------------------------------------------------------------------------
     _                   Department of Computer Science IV
    / \     |\/|         University of Dortmund, Germany
    \_/laf  |  |aennig   e-mail: maennig@siggi.informatik.uni-dortmund.de
 ---------------------------------------------------------------------------
Newsgroups: gnu.gcc.help
From: sim@mdtf14.fnal.gov (Jim Sim)
Subject: Incompatibility in passing structures and unions to SunOS system calls
Organization: Fermilab, Batavia, IL
Distribution: usa
Date: Wed, 12 Aug 1992 18:48:39 GMT

When I call semctl, which receives a union as one of its arguments, from a 
program compiled with the SunOS cc compiler, my program works.  When I compile
the same program with gcc, the program aborts.

Similarly, when I call lwp_yield, which receives a structure as its argument,
from a program compiled with the SunOS cc compiler, my program works.
When I compile the same program with gcc, the program aborts.

If I modify either program to pass the address of the union or structure
and compile with gcc, the program works.  I did this because I was once told
that the SunOS cc compiler passes structures and unions by address.

Is there a gcc compiler option that will pass unions and structures in 
a manner that is compatible with the SunOS cc compiler?

Can anyone explain the differences in how the SunOS cc compiler and the 
gcc compiler pass unions and structures?  

If there is not a compiler option to make union/structure passing 
compatible, what is the best way to write the code so that it will work 
with either compiler when making calls to system services that receive 
unions or structures?


Newsgroups: gnu.gcc.help
From: rms@gnu.ai.mit.edu (Richard Stallman)
Subject: gcc2.2.2 and X11R5
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 20 Aug 1992 12:58:39 GMT

    Well, since I brought something like this up a few days ago - I guess I'll
    summarize what I've found out.  It is my opinion that although the MIT X
    Consortium recommends the use of gcc to build the whole shebang, I don't
    think they mean gcc-2.2.2!!

You seem to regard GCC as if it were a natural phenomenon, whose good
and bad points are a timeless fact, beyond anyone's power to change.

That is not true.  Version 2.2.2 is a beta test release of a program
that was designed by people and is actively maintained by many of the
same people.  We expect a beta release to have problems, and we want
to fix them.

Each time you find a problem in GCC, please send a specific bug report
that explains how to reproduce the problem.  That will enable us to
fix it.
From: Marc_Van-Woerkom@ac3.maus.de (Marc Van-Woerkom)
Newsgroups: gnu.gcc.help
Subject: SGI GL programming with gcc
Date: Fri, 14 Aug 92 01:20:00 GMT
Organization: MausNet
X-Gateway: MausGate/News 1.11

Hello!

Is there anyone of you who did a bit GL programming with GNU C or C++
instead of the native C compiler?

It would be nice if you could give me some hints how to do it..


Thanks & Bye, Marc
Newsgroups: gnu.gcc.help
From: scowen@wfpc3.la.asu.edu (Paul A. Scowen)
Subject: Re: gcc2.2.2 and X11R5
Organization: Dept.of Physics & Astronomy, Arizona State University
Date: Thu, 20 Aug 1992 16:37:06 GMT

Well, since I brought something like this up a few days ago - I guess I'll
summarize what I've found out.  It is my opinion that although the MIT X
Consortium recommends the use of gcc to build the whole shebang, I don't
think they mean gcc-2.2.2!!

I have had numerable problems building the server successfully, and when I
actually did get the thing to build it was so ____ed that all the fonts 
appeared backwards!  This problem was originally reported to me by Vivek 
Singhal at UT/Austin.  Anyway, the solution I'm using right now is to build
the whole environment using gcc, and then building the server using the local
flavor of cc.

As to your problem, Rich, I seem to remember an option in the configuration
of gcc that takes care of broken alloca() calls - have a look see.

The whole reason why I started to try the gcc path was that subsequent client
builds using the cc-compiled R5 environment were crapping out for various 
reasons.  I'm hoping that now this will have fixed things. (Stay tuned).

-- 
-------------------------------------------------------------------------------
Paul A. Scowen				INTERNET: scowen@wfpc3.la.asu.edu
Department of Physics & Astronomy		  uk1@spacsun.rice.edu
Arizona State University		Tel:      (602) 965-0938
Tempe, AZ 85287-1504			FAX:      (602) 965-7954
-------------------------------------------------------------------------------
Newsgroups: gnu.gcc.help
From: law%schirf.cs.utah.edu@cs.utah.edu (Jeff Law)
Subject: Re: gcc2.2.2 and X11R5
Date: 20 Aug 92 12:45:09 MDT
Organization: University of Utah CS Dept

In article <1992Aug20.165136.2723@ennews.eas.asu.edu> scowen@wfpc3.la.asu.edu (Paul A. Scowen) writes:
>As a postscript to the last message, I have now built the server using cc
>instead of gcc and although the server runs ok, there are still broken
>facets to the environment - like the expansion icon in the upper right of
>twm windows being missing, and twm menu commands (shell escapes) failing.
>
>My recommendation to all people out there attempting this is DON'T USE GCC
>vers 2.2.2 TO BUILD X!!!  It does not appear to have what it takes.
I don't know what you're doing different, but I've had *extremely* good success
using gcc2 (assorted versions) on suns.  

Jeff
From: envbvs@epb9.lbl.gov (Brian V. Smith)
Newsgroups: gnu.gcc.help
Subject: gcc2.0 for Vax Ultrix 4.2
Keywords: __ultrix and __vax redefined
Date: 13 Aug 92 20:52:57 GMT
Organization: lbl
NNTP-Posting-Host: 128.3.12.98

I have compiled gcc for Vax Ultrix (4.2) and all the while it was compiling
it was generating warnings:

./gcc    -g -O -Bstage2/ -B./  -J  -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
In file included from /usr/include/stdio.h:89, from enquire.c:370:
/usr/include/ansi_compat.h:50: warning: `__ultrix' redefined
*Initialization*:1: warning: this is the location of the previous definition
/usr/include/ansi_compat.h:54: warning: `__unix' redefined
*Initialization*:1: warning: this is the location of the previous definition
/usr/include/ansi_compat.h:58: warning: `__bsd4_2' redefined
*Initialization*:1: warning: this is the location of the previous definition
/usr/include/ansi_compat.h:62: warning: `__vax' redefined
*Initialization*:1: warning: this is the location of the previous definition

I assumed that this could be ignored, and it indeed seemed to work fine.

Later, when I tried to compile an X11 program I got the same messages (except
without the __unix and __bsd4_2 warnings).

In compiling gcc with the first pass, I noticed that -Dultrix=*** was passwd
into the compiler, so I assume that those definitions are hard-wired into 
the compiler.

How do I get rid of these warnings?  It is pretty messy looking at all that
warning output.


-- 
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.
Newsgroups: gnu.gcc.help
From: swk@seymour.mlb.semi.harris.com (Song W. Koh)
Subject: ld -r -d problem after gcc
Date: 20 Aug 92 17:47:12
Distribution: gnu
Organization: Harris Corp., Semiconductor Sector, Melbourne, FL

Here is the problem... I would like to link files s2.c s3.c s4.c into
one .o file to dynamically load into a running program.  But the
character pointers v1, v2, v3, all point to the same string, "hello".

% gcc -c s2.c
% gcc -c s3.c
% gcc -c s4.c
% ld -r -d s2.o s3.o s4.o -o sl.o
% gcc s1.c sl.o
% a.out
f1/v1: 40b0 22b0 hello
f2/v2: 40b8 22b0 hello
f3/v3: 40c0 22b0 hello

% # but if I compile with Sun cc

% cc -c s2.c
% cc -c s3.c
% cc -c s4.c
% ld -r -d s2.o s3.o s4.o -o sl.o
% cc s1.c sl.o
% a.out
f1/v1: 40a8 40b0 hello
f2/v2: 40d0 40d8 bye
f3/v3: 40f0 40f8 byebye

Could someone point me to the problem area. Or a test to determine if
this is a gcc problem or an ld problem.  

System facts:
	Sparc IPC
	SunOS Release 4.1.2 
	gcc 2.1

file: s1.c ----------------------------------------

main()
{
  f1();
}

file: s2.c ----------------------------------------

f1()
{
  char *v1 = "hello";
  printf("f1/v1: %0x %0x %s\n", &v1, v1, v1);
  f2();
}

file: s3.c ----------------------------------------

f2()
{
  static char *v2 = "bye";
  printf("f2/v2: %0x %0x %s\n", &v2, v2, v2);
  f3();
}

file: s4.c ----------------------------------------

f3()
{
  static char *v3 = "byebye";
  printf("f3/v3: %0x %0x %s\n", &v3, v3, v3);
}

--
------------------------------------------------------------------------
Song Koh			Harris Semiconductor
swk@mlb.semi.harris.com		MS 62-022
Voice: (407)-724-7085		P. O Box 883 (US mail) 
Fax:   (407)-729-4960		Palm Bay Road (UPS)
				Melbourne, FL 32902-0883
------------------------------------------------------------------------
From: scowen@wfpc3.la.asu.edu (Paul A. Scowen)
Newsgroups: gnu.gcc.help
Subject: Re: gcc2.2.2 and X11R5
Date: 21 Aug 92 02:43:00 GMT
Organization: Dept. of Physics & Astronomy, Arizona State University

In article <1992Aug21.003008.10357@lokkur.dexter.mi.us>, scs@lokkur.dexter.mi.us (Steve Simmons) writes:
|> Wait a minute . . .
|> 
|> If the gcc version you build is broken, and the cc version is broken,
|> then there are fundamental errors somewhere which are independant of
|> the compilers.  *Something* is configured wrong: the way you build X,
|> your system, your C library, but *something*.  There are too damned
|> many existence proofs showing it works.
|> -- 
|>  "Voodoun is a very interesting religion for the whole family, even those
|>   members of it who are dead."
|> 		-- "Good Omens", by Neil Gaiman and Terry Pratchett

No, maybe I mis-stated what I did, the eventual version I tried was all built
with gcc except the server which was built with cc, but the combination still
hiccupped.

I have rebuilt completely with plain cc and it's all fine and dandy - there is
still something wrong with gcc-2.2.2.

-- 
-------------------------------------------------------------------------------
Paul A. Scowen				INTERNET: scowen@wfpc3.la.asu.edu
Department of Physics & Astronomy		  uk1@spacsun.rice.edu
Arizona State University		Tel:      (602) 965-0938
Tempe, AZ 85287-1504			FAX:      (602) 965-7954
-------------------------------------------------------------------------------
Newsgroups: gnu.gcc.help
From: samborn@lynchpin.mtkgc.COM (Kevin Samborn)
Subject: Using g++2.1 with standard C library on SunOS 4.1.1 Rev B.
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 19 Aug 1992 17:53:01 GMT

I am trying to use g++2.1 on SunOS 4.1.1 Rev B.  

Whenever I include standard include files, (in this case coming from
/usr/lang/SC1.0/CC/include), I get the errors similar to the following:

In file included from /usr/lang/SC1.0/include/CC/malloc.h:9,
                 from /usr/lang/SC1.0/include/CC/stdlib.h:21,
                 from Main.C:1:
/usr/lang/SC1.0/include/CC/alloca.h:10:
        declaration of `char * __builtin_alloca (int)'
<built-in>:0: conflicts with built-in
        declaration `void * __builtin_alloca (int)'
In file included from /usr/openwin3/include/X11/Xos.h:69,
                 from /usr/openwin3/include/X11/Intrinsic.h:37,
                 from Main.C:2:
/usr/lang/SC1.0/include/CC/strings.h:22:
        declaration of `unsigned int  strlen (const char *)'
<built-in>:0: conflicts with built-in
        declaration `int  strlen (const char *)'


This happens even when I pass the -fno-builtin option to g++.

Is there anyway to turn off type checking for builtin functions?

thanks,
kevin samborn
--
kevin samborn
Sakura Global Capital
samborn@mtkgc.com
Newsgroups: gnu.gcc.help
From: robert@triton.jpl.nasa.gov (Robert Angelino)
Subject: What's the most current version of gcc and where do I get it???
Reply-To: robert@triton.Jpl.Nasa.Gov
Organization: Jet Propulsion Laboratory, Pasadena CA
Date: Fri, 14 Aug 1992 21:31:42 GMT

All,
	The subject says it all.

thanks

-- 
    -     ------       -                              Robert Angelino
   | |   | ----  \    | |                             ms T-1704L
   | |   | |   \ |    | |                             4800 Oak Grove Drive
   | |   | | --  |    | |                             Pasadena, CA 91109
---| |   | | \__/     | |___                          robert@triton.jpl.nasa.gov
\____|et |_|ropulsion |_____\aboratory                (818) 354-9574
Newsgroups: gnu.gcc.help
From: soo@sidc.com
Subject: Tools to build gnu cross compiler...
Organization: Seiko Instrument Dev. Corp.
Distribution: usa
Date: Tue, 18 Aug 1992 22:32:13 GMT

Dear netters,

I am trying to generate a cross compiler from gcc-2.2.2 (host: sun sparc,
target: board using m68k processor).  However, the INSTALL file in the
gcc-2.2.2 package seems to suggest that I would need a cross-assmelber,
cross-linker, 'ar', and 'ranlib' to build the cross compiler.  Does anybody
in the net knows where I can get a gnu version of the above required tools?

I suppose I can get gas-1.38.1 for the cross-assembler (is this true?), but
what about the cross-linker, 'ar', and 'ranlib'?

Any help will be greatly appreciated!

Jo Han Soo/SIDC

Newsgroups: gnu.gcc.help
From: meissner@osf.ORG
Subject: (none)
Organization: Gnus Not Usenet
Distribution: gnu
Date: Thu, 13 Aug 1992 07:37:09 GMT

You don't use COFF encapsulation on MIPS-based systems, like the IRIS,
so don't worry about it.  By the way, if you want full debug support
for the MIPS, you have to use GCC 2.2.2.

| I am attempting to install gcc on an iris 4D/80GT running IRIX 3.3.2.  
| I believe this uses COFF-encapsulation.  I am stuck here...
| 
| >  7. If you are using COFF-encapsulation, you must convert `gnulib'
| >     to a GNU-format library at this point.  See the file
| >     `README-ENCAP' in the directory containing the GNU binary file
| >     utilities, for directions.
| 
| I have no file named README-ENCAP in any directory distributed with gcc-1.40
| Where can I find it?
| 
| Also, what exactly do I need in terms of a library to work with gcc?
| Just the one included?  
| 
| Thank you for any help you can provide.

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Newsgroups: gnu.gcc.help
From: gof@casbah.acns.nwu.edu (Gerald Fountain)
Subject: First time installation (Questions)
Summary: What do I need for *FULL* install (and official sites)
Organization: Northwestern University, Evanston Illinois.
Distribution: na
Date: Thu, 13 Aug 1992 03:09:03 GMT

I am trying to make a first time installation of gcc onto an older Sun 4/260
running sunos 4.0.2.  I want gcc for a full ANSI compiler as the Sun only has
an old K&R.  I ran into a couple of problems on the install I hope someone can
help me with.

 1) Is there an official FTP site for the GNU languages?
 2) Are there also a full set of include files?  For example 'stdlib.h'
 3) What about libraries?  There are some functions not in our native libs.

I guess what I am looking for is an 'install' for a station that does not
already have a compiler.  Am I out of luck?

Any help or pointers would be much appreciated!  Thanks


-- 
Jerry Fountain                       
Northwestern University                        gof@stokes.chem-eng.nwu.edu
Department of Chemical Engineering             (708) 491-3555
2145 Sheridan Road, Evanston, IL  60208