public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: cannot exec `as'
       [not found] <616BE6A276E3714788D2AC35C40CD18D5B2482@whale.softwire.co.uk>
@ 2002-04-15 13:54 ` Rupert Wood
  2002-04-16  6:50   ` Yvonne Becherini
  0 siblings, 1 reply; 10+ messages in thread
From: Rupert Wood @ 2002-04-15 13:54 UTC (permalink / raw)
  To: 'Yvonne Becherini'; +Cc: gcc-help

Yvonne Becherini wrote:

> I'm running gcc - 2.96 on Redhat 7.2, I have 'as' in 
> /usr/bin/as, but g++ cannot link to that.

Hmm - that's odd.

You could:

  1. check that 'as' is in your path:

         which as

  2. check that you have permission to execute 'as':

         ls -la /usr/bin/as

     Hopefully you'll get at least permissions -r-xr-xr-x.

  3. ask gcc which 'as' it's trying to use:

         g++ -v -dump-prog-name=as

If GCC has a hardcoded path to 'as' which is invalid then it should fall
back to using the first 'as' it can find in the path - so as long as
/usr/bin/as is in the path, there shouldn't be any problems.

It may be trying to find an 'as' in /usr/<host>/bin, where <host> is
i686-redhat-linux-gnu or similar; you could check there for a
non-executable version. Otherwise, I'm running out of ideas.

Rup.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: cannot exec `as'
  2002-04-15 13:54 ` cannot exec `as' Rupert Wood
@ 2002-04-16  6:50   ` Yvonne Becherini
  0 siblings, 0 replies; 10+ messages in thread
From: Yvonne Becherini @ 2002-04-16  6:50 UTC (permalink / raw)
  To: Rupert Wood; +Cc: gcc-help

>   1. check that 'as' is in your path:
> 
>          which as

/usr/bin/as

 
>   2. check that you have permission to execute 'as':
> 
>          ls -la /usr/bin/as
> 

-rwxr-xr-x    1 root     root       227212 Sep 26  2001 /usr/bin/as

>      Hopefully you'll get at least permissions -r-xr-xr-x.
> 
>   3. ask gcc which 'as' it's trying to use:
> 
>          g++ -v -dump-prog-name=as

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
g++: No input files


Any idea?

Thanks,

Yvonne

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: cannot exec `as'
  2002-04-16  7:36   ` Yvonne Becherini
@ 2002-04-16  7:47     ` Ish Rattan
  0 siblings, 0 replies; 10+ messages in thread
From: Ish Rattan @ 2002-04-16  7:47 UTC (permalink / raw)
  To: gcc-help

On Tue, 16 Apr 2002, Yvonne Becherini wrote:

> >     g++ -v -print-prog-name=as
>
> it gives me only this:
>
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> as
>
> Probably the problem is here
Try a reinstall of gcc/g++, something is not right.

-ishwar

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: cannot exec `as'
  2002-04-16  6:54 ` Rupert Wood
@ 2002-04-16  7:36   ` Yvonne Becherini
  2002-04-16  7:47     ` Ish Rattan
  0 siblings, 1 reply; 10+ messages in thread
From: Yvonne Becherini @ 2002-04-16  7:36 UTC (permalink / raw)
  To: Rupert Wood; +Cc: gcc-help

>     g++ -v -print-prog-name=as

it gives me only this:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
as

Probably the problem is here



^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: cannot exec `as'
       [not found] <616BE6A276E3714788D2AC35C40CD18D5B260D@whale.softwire.co.uk>
@ 2002-04-16  6:54 ` Rupert Wood
  2002-04-16  7:36   ` Yvonne Becherini
  0 siblings, 1 reply; 10+ messages in thread
From: Rupert Wood @ 2002-04-16  6:54 UTC (permalink / raw)
  To: 'Yvonne Becherini'; +Cc: gcc-help

Yvonne Becherini wrote:

> >   3. ask gcc which 'as' it's trying to use:
> > 
> >          g++ -v -dump-prog-name=as
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
> g++: No input files

Oops, that should have been:

    g++ -v -print-prog-name=as

Sorry!

If it gives you '/usr/bin/as' then I'm out of ideas, sorry - ditto if it
gives you 'as' since it should pick that up from the path. If it's
anything else, you could investigate permissions for that. Otherwise,
I'm stuck :-/

Rup.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cannot exec `as'
  2002-04-16  2:41 ` pritam kokate
@ 2002-04-16  6:50   ` Yvonne Becherini
  0 siblings, 0 replies; 10+ messages in thread
From: Yvonne Becherini @ 2002-04-16  6:50 UTC (permalink / raw)
  To: pritam kokate; +Cc: gcc-help

> As said You need to have the 'as' in your path.

I have the executable at /usr/bin/as and my path is:

/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin



Thanks,

Yvonne

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cannot exec `as'
  2002-04-15 10:37 Yvonne Becherini
@ 2002-04-16  2:41 ` pritam kokate
  2002-04-16  6:50   ` Yvonne Becherini
  0 siblings, 1 reply; 10+ messages in thread
From: pritam kokate @ 2002-04-16  2:41 UTC (permalink / raw)
  To: Yvonne Becherini, gcc-help


--- Yvonne Becherini <Yvonne.Becherini@bo.infn.it>
wrote:
> Hallo,
> I would like to ask if anyone can help me with the
> following problem:
> 
> when I compile my c++ files, I get the following
> message:
> 
> g++: installation problem, cannot exec `as': No such
> file or directory
> 
> what should I do?

As said You need to have the 'as' in your path.
If you dont have an assembler for your processor you
have to build one by compiling binutils with the
prefix same as your prefix for building gcc.
to put the 'as' in your path you can use

export PATH=specify your bin where you have the
'as':$PATH

Pritam.

> 
> Thanks,
> 
> Yvonne
> 
> 
> -- 
> ..............................................
> .                                            . 
> .             Yvonne Becherini		     .
> .              Ph. D. Student                .
> .          University of Bologna             .
> .         Viale Berti Pichat  6/2            .
> .             I-40127 Bologna                .
> .                  Italy                     .
> .                                            . 
> .          Tel. +39 051 209 5234             .
> .          Fax  +39 051 209 5269             .
> .                                            .
> .       e-mail  becherini@bo.infn.it         .
> .     http://www.bo.infn.it/~becherini       .
> .                                            .
> ..............................................
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: cannot exec `as'
  2002-04-15 10:46 ` Rupert Wood
@ 2002-04-15 11:18   ` Yvonne Becherini
  0 siblings, 0 replies; 10+ messages in thread
From: Yvonne Becherini @ 2002-04-15 11:18 UTC (permalink / raw)
  To: Rupert Wood; +Cc: gcc-help

> > when I compile my c++ files, I get the following message:
> : 
> > g++: installation problem, cannot exec `as': No such file or
> > directory
> 

> Presumably you've installed a binary distribution of GCC on an operating
> system that doesn't have system binutils installed by default.
> 
> Install GNU binutils. You should be able to get it from the same place
> that you got GCC.


I'm running gcc - 2.96 on Redhat 7.2, I have 'as' in /usr/bin/as, but g++
cannot link to that.

Thanks,

Yvonne


^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: cannot exec `as'
       [not found] <616BE6A276E3714788D2AC35C40CD18D5B246F@whale.softwire.co.uk>
@ 2002-04-15 10:46 ` Rupert Wood
  2002-04-15 11:18   ` Yvonne Becherini
  0 siblings, 1 reply; 10+ messages in thread
From: Rupert Wood @ 2002-04-15 10:46 UTC (permalink / raw)
  To: 'Yvonne Becherini'; +Cc: gcc-help

Yvonne Becherini wrote:

> when I compile my c++ files, I get the following message:
: 
> g++: installation problem, cannot exec `as': No such file or
> directory

Presumably you've installed a binary distribution of GCC on an operating
system that doesn't have system binutils installed by default.

Install GNU binutils. You should be able to get it from the same place
that you got GCC.

Good luck,
Rup.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* cannot exec `as'
@ 2002-04-15 10:37 Yvonne Becherini
  2002-04-16  2:41 ` pritam kokate
  0 siblings, 1 reply; 10+ messages in thread
From: Yvonne Becherini @ 2002-04-15 10:37 UTC (permalink / raw)
  To: gcc-help

Hallo,
I would like to ask if anyone can help me with the following problem:

when I compile my c++ files, I get the following message:

g++: installation problem, cannot exec `as': No such file or directory

what should I do?

Thanks,

Yvonne


-- 
..............................................
.                                            . 
.             Yvonne Becherini		     .
.              Ph. D. Student                .
.          University of Bologna             .
.         Viale Berti Pichat  6/2            .
.             I-40127 Bologna                .
.                  Italy                     .
.                                            . 
.          Tel. +39 051 209 5234             .
.          Fax  +39 051 209 5269             .
.                                            .
.       e-mail  becherini@bo.infn.it         .
.     http://www.bo.infn.it/~becherini       .
.                                            .
..............................................

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-04-16 14:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <616BE6A276E3714788D2AC35C40CD18D5B2482@whale.softwire.co.uk>
2002-04-15 13:54 ` cannot exec `as' Rupert Wood
2002-04-16  6:50   ` Yvonne Becherini
     [not found] <616BE6A276E3714788D2AC35C40CD18D5B260D@whale.softwire.co.uk>
2002-04-16  6:54 ` Rupert Wood
2002-04-16  7:36   ` Yvonne Becherini
2002-04-16  7:47     ` Ish Rattan
     [not found] <616BE6A276E3714788D2AC35C40CD18D5B246F@whale.softwire.co.uk>
2002-04-15 10:46 ` Rupert Wood
2002-04-15 11:18   ` Yvonne Becherini
2002-04-15 10:37 Yvonne Becherini
2002-04-16  2:41 ` pritam kokate
2002-04-16  6:50   ` Yvonne Becherini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).