🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #190

Re: epoch 4.2 build problem - `__builtin_saveregs'?

#190
From: Mr. A.D. McGregor
Date: Sun, 13 Sep 1992 21:15
39 lines
2430 bytes
In article <82589@bcsaic.boeing.com>, chrise@atc.boeing.com (Chris_Esposito) writes:
> I have a problem in building epoch 4.2 on a Sparc2, OS 4.1.2, with
> gcc -O -g -traditional.  Everything (jncluding xpm support) compiles
> fine until the final attempt to link everything into temacs, and then ...
> 
> ld  -e __start -Bstatic -L/usr/openwin/lib -L/usr/local/lib -o temacs crt0.o
 window.o  term.o x11term.o x11fns.o xevent.o screen.o xdefault.o xresource.o
 property.o selection.o xutil.o mouse.o button.o xdispepoch.o dispepoch.o
  emacs.o keyboard.o macros.o>  keymap.o sysdep.o  buffer.o filelock.o insdel.o
 marker.o  minibuf.o fileio.o dired.o filemode.o  cmds.o casefiddle.o indent.o
 search.o regex.o undo.o  alloc.o data.o doc.o editfns.o callint.o  eval.o fns.o
 print.o lread.o  abbrev.o syntax.o unexec.o mock> lisp.o bytecode.o  process.o
 callproc.o environ.o  doprnt.o lastfile.o malloc.o  -lX11 -lXpm   -lg  -lc
> Undefined
> ___builtin_saveregs <-- **DOES anyone know what this is, or where to get it?
> *** Error code 2
> make: Fatal error: Command failed for target `temacs'
> Current working directory /a/grace/local/share.sunos.4.1.2/src/epoch4.2/src
> *** Error code 1
> make: Fatal error: Command failed for target `doall'
> Exit 1
> 
> Thanks,
> Chris

Someone else postard with a similar problem. Mine built OK with gcc 2.2.2
once I fiddled with the switches in ld:

ld -e __start -Bstatic -L/usr/local/X11/lib -o <lots of objects>
-lX11 -lg -L/usr/local/phys/lib/gcc-lib/sun4/2.2.2 -lgcc -lc

given that the gcc libraries are pointed to by that path.
You must have -lgcc BEFORE -lc with this compiler.
By the way, does anybody know why I had to point ld at that directory?
the docs for gcc say that one shouldn't have to.

Hope this helps,
Andrew McGregor
Physics, University of Canterbury, Christchurch, New Zealand.
Technical Details
Message-ID: <1992Sep14.091556.800@csc.canterbury.ac.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!waikato.ac.nz!canterbury.ac.nz!cantua!phys229
References: <82589@bcsaic.boeing.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!waikato.ac.nz!canterbury.ac.nz!cantua!phys229
Newsgroups: gnu.epoch.misc
Subject: Re: epoch 4.2 build problem - `__builtin_saveregs'?
Message-ID: <1992Sep14.091556.800@csc.canterbury.ac.nz>
From: phys229@cantua.canterbury.ac.nz (Mr. A.D. McGregor)
Date: 14 Sep 92 09:15:54 +1200
Sender: phys229@cantua (Mr. A.D. McGregor)
References: <82589@bcsaic.boeing.com>
Distribution: world
Organization: University of Canterbury, Christchurch, New Zealand.
Nntp-Posting-Host: cantua.canterbury.ac.nz
Lines: 40