Problems compiling tcsh 6.01 on SunOS 4.1

Problems compiling tcsh 6.01 on SunOS 4.1

Post by Rhonda Gain » Wed, 22 Jan 1992 07:01:32




>When compiling tcsh 6.01 on a Sun 4/330 running SunOS 4.1 I get the
>following error message when I run tcsh:

I forgot to add that I'm compiling with /bin/cc
Here's an exerpt from the Makefile

#
SHELL=/bin/sh
VERSION=6.01
BUILD=tcsh
#
SUF=o
CF=-c

INCLUDES=-I. -I..

LFLAGS=$(INCLUDES)

#CFLAGS= $(INCLUDES) -g                 # debug
#CFLAGS= $(INCLUDES) -O                 # production
#CFLAGS= $(INCLUDES)                    # Broken optimizers....

CFLAGS= -g -pg $(INCLUDES) -DPROF
#CFLAGS= -O -pg $(INCLUDES) -DPROF

# gcc 1.37-
#CFLAGS=-O $(INCLUDES) -finline-functions -fstrength-reduce

# gcc 1.37+
#CFLAGS=-O $(INCLUDES) -fcombine-regs -finline-functions -fstrength-reduce
# add -msoft-float for 68881 machines.

#CFLAGS=  $(INCLUDES) +O3 -Aa

# for silicon graphics (and other mips compilers) -- use the
# global optimizer! (-O3).
# On SGI 4.0+ you need to add -D__STDC__ too.
#CFLAGS= -O3 $(INCLUDES)
#CF=-j
#SUF=u
#.SUFFIXES: .u                          ## Ultrix needs that

# mips systems
# CFLAGS= $(INCLUDES) -O -systype bsd43 -Wf,-XNd5000 -Wf,-XNp6000 -Olimit 2000

# Apollo's with cc [apollo builtins don't work with gcc]
# and apollo should not define __STDC__ if it does not have
# the standard header files. RT's (aos4.3) need that too;
# you might want to skip the -O on the rt's... Not very wise.
# AIX/ESA needs -D_IBMESA on command line (this may disappear by GA)
#DFLAGS=-U__STDC__
#DFLAGS=-D_IBMESA
# On aix2.2.1 we need more compiler space.
#DFLAGS=-Nd4000 -Nn3000
DFLAGS=

################################################################
## LDLAGS.  Define something here if you need to
################################################################
#LDFLAGS=                       ## The simplest, suitable for all.
#LDFLAGS= -s                    ## Stripped. Takes less space on disk.
#LDFLAGS= -s -n                 ## Pure executable. Spares paging over
#                               ## the network for machines with local
#                               ## swap but external /usr/local/bin .
LDFLAGS= -s -n -Bstatic ## Without dynamic links. (SunOS)

################################################################
## LIBES.  Pick one, or roll your own.
################################################################
LIBES= -ltermcap                ## BSD style things, hpux
#LIBES= -ltermcap -lcs          ## Mach
#LIBES= -lcurses                ## Sys V3 w/o networking (and Sys V4)
#LIBES= -lcurses -lc /usr/ucblib/libucb.a ## Sys V4 with BSDTIMES

#CC=    gcc -Wall
#CC=    cc
#CC=    occ
CC=     /bin/cc # For suns, w/o gcc and SVR4
#CC=    /usr/lib/sun.compile/cc  # FPS 500 (+FPX) with Sun C compiler
ED=     -ed
AS=     -as
RM=     -rm
#CXREF= /usr/ucb/cxref
CXREF= /bin/cxref
VGRIND= csh /usr/ucb/vgrind
CTAGS=  /usr/ucb/ctags
#XSTR= /usr/ucb/xstr
#SCCS=  /usr/local/sccs
SCCS= /usr/ucb/sccs
PARALLEL=12                             # Make the multi-max run fast.
#P=&                                        # Use Sequent's parallel make
P=
DESTDIR=/usr/local
MANSECT=l
#DESTBIN=${DESTDIR}/bin
DESTBIN=/bin
DESTMAN=/usr/man/man${MANSECT}
FTPAREA=/usr/spool/ftp

--

FiberCom, Inc.             UUCP: ...!uunet!fibercom!rrg  
P.O. Box 11966             PHONE: 703-342-6700 or 800-423-1183 x291
Roanoke, VA  24022-1966    FAX:   703-342-5961

 
 
 

Problems compiling tcsh 6.01 on SunOS 4.1

Post by Rhonda Gain » Wed, 22 Jan 1992 04:46:37


When compiling tcsh 6.01 on a Sun 4/330 running SunOS 4.1 I get the
following error message when I run tcsh:

free(8c7c8) above top of memory.memtop = 94c00 membot = 8cc00.
free(8c508) above top of memory.memtop = 94c00 membot = 8cc00.
free(8c528) above top of memory.memtop = 94c00 membot = 8cc00.
free(8c548) above top of memory.memtop = 94c00 membot = 8cc00.
free(8c568) above top of memory.memtop = 94c00 membot = 8cc00.
free(8c588) above top of memory.memtop = 94c00 membot = 8cc00.
free(8c5a8) above top of memory.memtop = 94c00 membot = 8cc00.
       .
       .
       .
melrose:rrg:101:/fibercom/rrg/src/tcsh-6.01:[2:39pm]>
melrose:rrg:101:/fibercom/rrg/src/tcsh-6.01:[2:39pm]>

Any ideas??  The compilation goes fine without error, however the
size of tcsh is 400k and higher.  I've compiled tcsh 6.01 on a 3/160
running 3.5 with not problems also and it compiles to a size of 270k.

 -thanks
  rhonda

--

FiberCom, Inc.             UUCP: ...!uunet!fibercom!rrg  
P.O. Box 11966             PHONE: 703-342-6700 or 800-423-1183 x291
Roanoke, VA  24022-1966    FAX:   703-342-5961

 
 
 

1. GCC 2.11b problems - also tcsh 6.01 problem

I have been running the MCC interim version of linux with no apparent
problems (although I hadn't been doing a lot with it). Yesterday I
installed the 2.11blib, 2.11bmisc, binutils and 0.96include archives
from banjo and followed the installation instructions. Everything went
without a hitch. I ran the "inst2.x" and then the "fixfiles" scripts. I
booted linux with the 0.96 Bootimage.

Everything was looking good until I tried to compile the linux 0.96.
(Yes, I had deleted the includes and installed 0.96include.tar into
/usr, and removed the "-nostincludes" from all the Makefiles).
I get that old:

GENERAL PROTECTION: 0000
EIP ...
EFLAGS: ...
...
gcc: Internal Compiler Error: program cc1 got fatal signal 11

... which I seem to recall people used to get when they used incompatible
versions of cpp/cc1/as/ .. etc ... But I have reinstalled all of these !!!

I also noted that repeating the make resulted in a similar error from a
different point in the compile! Sometimes cpp crashed, sometimes cc1, ...
If I change to the directory where the error occured and try to make the
offending module by hand, everything works ... ?!

I presume signal 11 is SIGSEGV, so I seem to have a memory problem. I have
4MB of RAM and 8MB of swap.

Am I doing something stupid ? Can anyone help before I uninstall everything ?

P.S. I also tried running tcsh 6.01 last night. Looks good, but every now
     and again the terminal settings get munged and the ':' key gets mapped
     to suspend! (Very tricky in vi: thank god for ZZ). "stty sane" fixes
     everything until the next time ... ??!!
rab
------------------------------------------------------------------------

School of Physics                 | Phone : +61 3 344 5081
University of Melbourne           | Fax   : +61 3 347 4783
Parkville Victoria AUSTRALIA 3052 | Telex : AA35185

2. somebody should do this

3. tcsh 6.01 problem

4. Masquerading with 2.0.0

5. Tcsh 6.01 for Linux

6. Overview features of 2.1.x kernels

7. tcsh 6.01 under DG/UX 4.3

8. argv[0] in shellscript?

9. Can't get tcsh 6.01 to run

10. Compiling Dore 6.01

11. Compiling Ghostscript 6.01 on Solaris 7

12. SunOS 4.1 / 4.1.1 / 4.1.1U_1 /usr/etc/rpc.yppasswdd doesn't work.

13. compiling SunOs 4.1.x f77 for S2.4