🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51214

Help needed with gcc-2.4.3 install (or configure bug?)

#51214
From: Skip Montanaro
Date: Wed, 16 Jun 1993 13:55
57 lines
3237 bytes
I'm running on SPARC-10/SunOS 4.1.3, trying to build and install gcc 2.4.3.
I executed the following configure command:

    configure --target=sparc-sun-sunos4.1 \
	--prefix=/home/ausable/software \
	--exec-prefix=/home/ausable/software

and wound up with the first action in the make as (I'd already built the
stage1 compiler):

    stage1/xgcc -Bstage1/  -DIN_GCC   -g     -I. -I. -I./config \
	-DGCC_INCLUDE_DIR=\"/home/ausable/software/lib/gcc-lib/sparc-sun-sunos4.1/2.4.3/include\" \
	-DGPLUSPLUS_INCLUDE_DIR=\"/home/ausable/software/lib/g++-include\" \
	-DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
	-DCROSS_INCLUDE_DIR=\"/home/ausable/software/lib/gcc-lib/sparc-sun-sunos4.1/2.4.3/sys-include\" \
	-DTOOL_INCLUDE_DIR=\"/home/ausable/software/sparc-sun-sunos4.1/include\" \
	-DTOOLDIR=\"/home/ausable/software/sparc-sun-sunos4.1/\" \
	-c `echo ./cccp.c | sed 's,^\./,,'`

Note that TOOLDIR is defined as /home/ausable/software/sparc-sun-sunos4.1.
In the past (2.3.3 and before), everything sort of wound up in
/home/ausable/software/lib if I simply set the prefix argument to configure
to /home/ausable/software.

If I configure with:

    configure --target=sparc-sun-sunos4.1 \
	--prefix=/home/ausable/software \
	--exec-prefix=/home/ausable/software/lib

TOOLDIR is set properly, but now there are several occurrences of
/home/ausable/software/lib/lib in the other defines:

    stage1/xgcc -Bstage1/  -DIN_GCC   -g     -I. -I. -I./config \
	-DGCC_INCLUDE_DIR=\"/home/ausable/software/lib/lib/gcc-lib/sparc-sun-sunos4.1/2.4.3/include\" \
	-DGPLUSPLUS_INCLUDE_DIR=\"/home/ausable/software/lib/lib/g++-include\" \
	-DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
	-DCROSS_INCLUDE_DIR=\"/home/ausable/software/lib/lib/gcc-lib/sparc-sun-sunos4.1/2.4.3/sys-include\" \
	-DTOOL_INCLUDE_DIR=\"/home/ausable/software/lib/sparc-sun-sunos4.1/include\" \
	-DTOOLDIR=\"/home/ausable/software/lib/sparc-sun-sunos4.1/\" \
	-c `echo ./cccp.c | sed 's,^\./,,'`

It seems to me that there is a buglet somewhere in the configure process,
but on the possibility that I'm doing something wrong, I've sent this to
both help-gcc and bug-gcc. I apologize to those of you who will see this
note twice as a result.

My workaround was to use the first configure command and modify the tooldir
definition in the generated Makefile to be

    tooldir = $(exec_prefix)/lib/$(target)

I'm not sure if that's necessarily the correct "fix", but it served my
purposes.

Skip (montanaro@crd.ge.com)
Technical Details
Message-ID: <9306161343.AA17725@ausable.crd.Ge.Com>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ausable.CRd.ge.COM!montnaro

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,42575f4f5371827c,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-16 07:28:11 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!cs.utexas.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!ausable.CRd.ge.COM!montnaro
From: montnaro@ausable.CRd.ge.COM (Skip Montanaro)
Newsgroups: gnu.gcc.help
Subject: Help needed with gcc-2.4.3 install (or configure bug?)
Date: 16 Jun 1993 09:55:31 -0400
Organization: GNUs Not Usenet
Lines: 57
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9306161343.AA17725@ausable.crd.Ge.Com>
Reply-To: montanaro@ausable.crd.ge.com (Skip Montanaro)