Article View: gnu.gcc.help
Article #51895Took a wrong turn at glibc-1.05.1
From: Jonathan Engdahl
Date: Fri, 19 Mar 1993 01:44
Date: Fri, 19 Mar 1993 01:44
109 lines
4499 bytes
4499 bytes
Let me point out first that I haven't read all the manuals, I haven't
read this newgroup but once, and I post news very seldom. I prefer to
skim the INSTALL and guess first, then read manuals while the build
runs, or preferably never if the guessing works. I have found this
approach to work well with most GNU software, except...
Hosts: SUN 4/490 servers with ELC's, Sparc-2, 10, etc.
OS: sunos4.1.1
I am trying to install gcc, etc. on our SUN network so everyone can use
it instead of just me, and also so that any maintainer can install an
upgrade to a new version without disturbing anyone else that wants to
keep using the old one.
I am not a sysadm, just an user. I have been given write privileges in
our /utilities/gnu release directory, but I cannot "su root".
First catch, I want the directory structure to look like this:
/utilities---gnu--+--- gcc-2.3.3
|
+--- gcc-2.4 (someday)
|
+--- make-whatever and so forth
I want the stuff under /utilities/gnu to pretty much mirror what I see
on prep.ai.mit.edu /pub/gnu.
I can't use /usr/local/bin, etc. because that allows me to use only one
version at a time. With many potential users, I can't change revs at
random. It would also violate the security policy.
The first thing I tried was to install stuff in the source directory,
e.g. - I built /utilities/gnu/gcc-2.3.3 with
--prefix=/utilities/gnu/gcc-2.3.3, with the following results:
the release:
/utilities/gnu/gcc-2.3.3/*.c, etc.
/utilities/gnu/gcc-2.3.3/config
the results:
/utilities/gnu/gcc-2.3.3/bin
/utilities/gnu/gcc-2.3.3/lib
/utilities/gnu/gcc-2.3.3/include --- and so on
I then created links from my private ~/bin to the released binaries,
and used the new compiler: "gcc -o hello hello.c". This much works.
When I tried to compile some C++ (which uses only C library calls) I
get lots of error mesages which appear to be ANSI violations. I
figured, Aha, I'm using SUN's sick include files, let's go install
glibc...
Next, I find that in order to proceed, I need to install prerequisites
make, binutils, and gas. No problems installing them using the same
strategy.
Next steps:
#fetch glibc, then
tar xvf glibc-1.05.1
cd glibc-1.05.1
configure sun4
make
First problem, it won't build in /utilities/gnu/glibc-1.05.1 - it can't
find /utilities/gnu/glibc-1.05.1/sun4,
After a lot of horsing around I find that I can get it to go further if I do
the following:
#fetch glibc, then
tar xvf glibc-1.05.1
cd glibc-1.05.1
mkdir src
mv * src
mkdir sun4
cd sun4
../src/configure --prefix=/utilities/gnu/glibc-1.05.1 \
--exec_prefix=/utilities/gnu/glibc-1.05.1 \
--with-gnu-as --with-gnu-ld sun4
make
Next problem: can't mkdir /utilities/gnu/glibc-1.05.1/sun4/sys/
^ huh?
I do the mkdir by hand (or did I edit the Makefile?) and type make again.
From here, almost any way I turn I run into a brick wall:
unknown pseudo-op `.app'
zic core dumps
include files can't be found
mk-stdiolim has no execute privilege
and so on
I'm confused. I have tried it a lot of different ways for about a week.
(No, not full-time, I've got lots of other things to do :-) I haven't
kept track of all the bugs. It shouldn't be this hard, so I figure I
have either taken a wrong turn somewhere, or I am trying to do
something that hasn't been tried before.
Help!
--
Jonathan Engdahl, Sr. Project Engineer | engdahl@aa.ab.com 313-998-2450
Allen-Bradley Co. | A Rockwell International Company
555 Briarwood Circle, | Industrial Communication Network
Ann Arbor, Michigan, 48108, USA | system design, software, ASICs
Technical Details
Message-ID:
<1993Mar19.014403.15918@icd.ab.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!usenet.ins.cwru.edu!icd.ab.com!dione!engdahlShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d46b235106a2134a,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-18 17:50:07 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!howland.reston.ans.net!usenet.ins.cwru.edu!icd.ab.com!dione!engdahl From: engdahl@dione (Jonathan Engdahl) Subject: Took a wrong turn at glibc-1.05.1 Message-ID: <1993Mar19.014403.15918@icd.ab.com> Sender: usenet@icd.ab.com (Usenet News Administrator) Nntp-Posting-Host: dione.aa.ab.com Organization: Allen-Bradley Company, Inc. Distribution: usa Date: Fri, 19 Mar 1993 01:44:03 GMT Lines: 109