🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Kim Michael Fairchild Thu, 07 Sep 1989 21:17
G++ (and gcc) on a Sparc
#394
Author: Kim Michael Fairchild
Date: Thu, 07 Sep 1989 21:17
46 lines
1687 bytes

Hi,

I am trying to get g++ going on a Sparc, but the problem I am having
seems to stem from a problem in gcc.

I traced this problem to the "demand page shared library" executables
contructed by default.  I have no idea on how to fix the problem but
here is a kludge solution.

Normal compile:

> gcc -B../gcc/ -g -DSOS -DESKIT  -o genrecog genrecog.o rtl.o obstack.o   
> ./genrecog md > tmp-insn-recog.c
Segmentation fault
>

Kludge compile:

> gcc -B../gcc/ -N -g -DSOS -DESKIT  -o genrecog2 genrecog.o rtl.o obstack.o   
> ./genrecog2 md > tmp-insn-recog.c
>


Notice that the -N option gets passed to the ld which turned off the
-Bdynamic binding

> file genrec*

genrecog:	sparc demand paged shared library executable not stripped
genrecog2:	sparc executable not stripped


This kludge is certain not desireable since we would have to modify
gcc/g++ and any other application Makefiles to pass the -N option.  Has
anyone found a solution for it yet?

Kim.

p.s. By the way, to get tedit to compile in gnu emacs, you also have
to use the -Bstatic option (on a Sparc).

p.s. Also, the top-level Makefile seems to have major errors, some of
them are even syntax errors. Would it be possible to send me a more up
to date one?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads