🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51125

building GCC on Sun4

#51125
From: Matthew Plante
Date: Fri, 02 Jul 1993 18:47
52 lines
2870 bytes
I need assistance with building GCC.

I have been unable to successfully build GCC on a Sun4.  
I am not sure if it is due to a unique system configuration,
incorrect build commands (due to errors on my part), or a 
makefile bug.

I used the following configure command:

   configure --target=sparc-sun-sunos4.1 --with-gnu-ld 
   --prefix=/home/pipit/home1/cmplrs/gnu_c/gcc-2.4.5 
   --local-prefix=/usr

The "make LANGUAGES=c" command then yielded the following
output and an associated error:

   /home/pipit/home1/cmplrs/gnu_c/gcc-2.4.5/xgcc 
   -B/home/pipit/home1/cmplrs/gnu_c/gcc-2.4.5/ 
   ./xforward.o -o xforward

   ld: Can't open gcc
   xgcc: file path prefix `/home/pipit/home1/cmplrs/gnu_c/gcc-2.4.5/' never used
   *** Error code 1 (ignored)

The "make LANGUAGES=c" command then yielded the following
output and an associated error:

   rm -f stage1/libgcc.a
   cp libgcc.a stage1
   cp: libgcc.a: No such file or directory
   *** Error code 1 (ignored)
   if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then ranlib stage1/libgcc.a; else true; fi
   ranlib: cannot open stage1/libgcc.a

Finally, the command make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O" generated the 
following output and associated error:
   stage1/xgcc -Bstage1/  -DIN_GCC   -g -O   -o cccp cccp.o cexp.o version.o obstack.o ` 
   case "stage1/xgcc -Bstage1/" in "cc")    echo  ;; esac `  
   ld: Can't open gcc
   xgcc: file path prefix `stage1/' never used
   *** Error code 1
   make: Fatal error: Command failed for target `cccp'

Apparently, the building process has been unable to create or locate libgcc.a.
If anyone can provide me with a clue as to why this will not build 
correctly, I will be extremely grateful.
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
|  Sent by:                              |                                  |
|     Matt Plante                        | Telephone: (612) 921-7161        |
|     Computing Devices International    | Fax:       (612) 921-6869        |
|     matt.l.plante@cdev.com             |                                  |
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
Technical Details
Message-ID: <C9Jw7z.6L3@caracara.cdev.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!news-feed-2.peachnet.edu!umn.edu!msc.edu!raistlin!caracara!harrierx.cdev.com!mlp

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,18e404fe2f1607c,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-02 12:52:47 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!news-feed-2.peachnet.edu!umn.edu!msc.edu!raistlin!caracara!harrierx.cdev.com!mlp
From: mlp@harrierx.cdev.com (Matthew Plante)
Subject: building GCC on Sun4
Message-ID: <C9Jw7z.6L3@caracara.cdev.com>
Sender: usenet@caracara.cdev.com
Nntp-Posting-Host: harrierx.cdev.com
Organization: Computing Devices International
Date: Fri, 2 Jul 1993 18:47:59 GMT
Lines: 53