🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53171

ld problem installing gcc-2.0 on Sun under OS 4.1.2

#53171
From: Lester Ingber
Date: Sun, 01 Mar 1992 18:00
80 lines
3885 bytes
help-gcc@prep.ai.mit.edu

Even given the problems reporeted below to bug-gcc@prep.ai.mit.edu,
I tried to continue by just "make LANGUAGES=c" again, and the
ld problem seemed to be avoided, at least temporarily:
./enquire -f > tmp-float.h
ld.so: Undefined symbol: ___longjmp
*** Error code 127 (ignored)
mv tmp-float.h float.h

I then tried:
make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
and this failed:
stage1/gcc    -g -O -Bstage1/     -I. -I. -I./config \
          -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc/sparc-sun-sunos4.1.2/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include\" \
          -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
          -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc/sparc-sun-sunos4.1.2/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/sys-include\" \
  -c `echo ./cccp.c | sed 's,^\./,,'`
stage1/gcc    -g -O -Bstage1/     -I. -I. -I./config -c ./cexp.c
stage1/gcc -c    -g -O -Bstage1/     -I. -I. -I./config version.c
stage1/gcc -c    -g -O -Bstage1/     -I. -I. -I./config obstack.c
stage1/gcc    -g -O -Bstage1/   -o cccp cccp.o cexp.o version.o obstack.o `if [ x"stage1/gcc" = x"cc" ] ; then echo ; else true; fi`  
ld: Undefined symbol 
   ___setjmp 
   ___longjmp 
   _stdout 
   ___flshfp 
   ___open 
   _stderr 
   ___ctype_b 
   ___fstat 
*** Error code 1
make: Fatal error: Command failed for target `cccp'

I'd like to try using the gnu ld instead, but I didn't see how
to enforce this in the Makefile.

}I'm compiling gcc-2.0 on my Sun SS2 under OS 4.1.2 and OW3.
}
}I initially compiled gcc-2.0, apparently O.K., but only through
}stage1 because of disk space.  I made more space and tried to compile
}it again from scratch.  The problems below surfaced, and I got a fresh
}copy from the mit archive and tried again, but with repeat non-performance.
}I even rebooted and tried again, but with the same results.
}
}I did:
}	./configure --target=sparc-sun-sunos4.1.2
}	make LANGUAGUES=c
}and near the very end of the compilation I get:
}mv tmplibgcc.a libgcc.a
}cp ./enquire.c . > /dev/null 2>&1
}*** Error code 1 (ignored)
}./gcc    -g -B./    -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
}./gcc    -g -B./  enquire.o -o enquire
}ld: Undefined symbol 
}   ___setjmp 
}   ___longjmp 
}   _stdout 
}   ___flshfp 
}   _stderr 
}*** Error code 1
}make: Fatal error: Command failed for target `enquire'
}
}Is something wrong with the Sun 4.1.2 ld?
}
}Any suggestions would be appreciated.
}
}Thanks.

  * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  *                                                       *
  *                  Prof. Lester Ingber                  *
  *             ______________________________            *
  *                                                       *
  *  Science Transfer Corporation                         *
  *  P.O. Box 857                                         *
  *  McLean, VA 22101                       703-759-2769  *
  *  USA                           ingber@umiacs.umd.edu  *
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Technical Details
Message-ID: <9203011800.AA23019@dweezil.umiacs.UMD.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!umiacs.umd.edu!ingber

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bcca172381922674,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-01 19:40:53 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!think.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!umiacs.umd.edu!ingber
From: ingber@umiacs.umd.edu (Lester Ingber)
Newsgroups: gnu.gcc.help
Subject: ld problem installing gcc-2.0 on Sun under OS 4.1.2
Message-ID: <9203011800.AA23019@dweezil.umiacs.UMD.EDU>
Date: 1 Mar 92 18:00:25 GMT
Article-I.D.: dweezil.9203011800.AA23019
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 80