This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc 3.0.1 does not work on Solaris 8/sparc

On Thu, Sep 06, 2001 at 06:26:08PM -0700, Mark Mitchell wrote:
> --On Thursday, September 06, 2001 03:17:13 PM +0200 Hubert Feyrer 
> <> wrote:
> >
> > I have tried building latest gcc (3.0.1, and also -current CVS checkout),
> > with little success. The C compiler compiles, but libstdc++ blows up.
> > The patch attached below works around the (known broken!) problem of "ln
> > -s -f" not working in Solaris by doing an explicit 'rm' first.
> Alexandre, do you know anything about this?  People (including me) have
> definitely built on modern Solaris without issues.  Does this problem
> ring any bells for you?  Is there autoconf magic to deal with this?

This may be a shot in the dark, but Solaris comes with
two versions of ln.  One is in /usr/ucb, and one is in /usr/bin.

For the one in /usr/ucb, the order of the flags becomes important.

/usr/bin/ln -s -f /usr/bin somelink  (works)
/usr/bin/ln -f -s /usr/bin somelink  (works)
/usr/ucb/ln -s -f /usr/bin somelink  (does not work)
/usr/ucb/ln -f -s /usr/bin somelink  (works)

It's pretty brain-dead, but a colleague of mine came across this
last week, because he has /usr/ucb in his path before /usr/bin.
Craig Rodrigues          

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]