Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: jjacobs on May 11, 2010, 07:24:14 PM

Title: no as
Post by: jjacobs on May 11, 2010, 07:24:14 PM
Someone,

I installed gcc and gdb but when I compile a simple hello world program I get the message:

error trying to exec as: execvp

As far as I can tell this means the assembler is not present.  I do not see as in /usr/local/bin, but I do see gcc there.

Any and all help always greatly appreciated.

The code looks like this:
#include <stdio.h>
int main(void)
{
   printf("Hey how r ya");
   return(0);
}

Title: Re: no as
Post by: maro on May 11, 2010, 08:07:35 PM
AFAIK 'as' is included in the 'binutils.tcz' extension.

It might be a good idea to use the 'compiletc.tcz' meta-extension instead of the individual ones. That gives you a recommended set of tools e.g. to produce your own extensions. The downside might be that more extensions than you absolutely need are installed.
Title: Re: no as
Post by: jjacobs on May 12, 2010, 12:39:36 PM
Yahoo!  After installing binutils I was able to compile and run my first tc program.

Thanks!!
Title: Re: no as
Post by: bmarkus on May 12, 2010, 12:44:09 PM
Before compiling programs it is a good practice to install compiletc.tcz which will install most of the applications required to compile C/C++ source.
Title: Re: no as
Post by: jjacobs on May 12, 2010, 01:47:13 PM
Installed compiletc.tcz as well thanks again bmarkus!!