intermittent gcc bug with /usr/ccs/bin/as
Edward Peschko
esp5@pge.com
Fri Dec 10 00:49:00 GMT 2004
On Thu, Dec 09, 2004 at 03:39:11PM -0800, Mike Stump wrote:
> On Thursday, December 9, 2004, at 02:47 PM, Edward Peschko wrote:
> >I've got a very frustrating bug with gcc 3.4.3 on solaris 5.8 - I'm
> >hesitant even
> >to put it in the bug database because it is IS so intermittant
>
> I'll assume that you built the compiler correctly... if not,
> rebuild/reinstall...
>
> The compiler and binutils should have the same prefix, and the
> compiler, when built, should use the --with-gnu-as=bla option, or
> however it is spelled.
>
> The compiler usually isn't intermittent, so this would tend to indicate
> a problem in your automounter, your filesystem... try a local
> filesystem...
>
> Run a trace with strace/ktrace/trace and see what the system calls that
> try and open ../as do and what they return. If you put in a shell
> script into the same directory that has cc1 called as, and have it exec
> /bla/bla/as "$@", I thinking it should never escape back to
> /usr/ccs/bin.
ok... I figured out what it was (it was me being too smart for my own good).
A long convoluted story, but even though /usr/ccs and gcc were locally
available, the gnu 'as' was not available for small periods of time,
and it looks like gcc runs back to /usr/ccs/bin/as by default.
Although, one could argue that - if you compile with --with-gnu-as=...
you should get a *fatal error* if that gnu as is not available, not
an attempt to use sun's version...
Ed
More information about the Gcc
mailing list