Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #9760 > unrolled thread

whose c compiler has command just "c" ?

Started by"Orson Cart" <ex-privat@parts.org>
First post2011-08-31 15:34 +0100
Last post2011-09-06 01:16 -0400
Articles 10 — 9 participants

Back to article view | Back to comp.lang.c


Contents

  whose c compiler has command just "c" ? "Orson Cart" <ex-privat@parts.org> - 2011-08-31 15:34 +0100
    Re: whose c compiler has command just "c" ? tom st denis <tom@iahu.ca> - 2011-08-31 07:30 -0700
    Re: whose c compiler has command just "c" ? Keith Thompson <kst-u@mib.org> - 2011-08-31 09:18 -0700
    Re: whose c compiler has command just "c" ? Harald van Dijk <truedfx@gmail.com> - 2011-08-31 09:59 -0700
      Re: whose c compiler has command just "c" ? "Orson Cart" <ex-privat@parts.org> - 2011-09-02 13:53 +0100
        Re: whose c compiler has command just "c" ? Noob <root@127.0.0.1> - 2011-09-02 14:23 +0200
      Re: whose c compiler has command just "c" ? gwowen <gwowen@gmail.com> - 2011-09-02 06:01 -0700
    Re: whose c compiler has command just "c" ? Rui Maciel <rui.maciel@gmail.com> - 2011-08-31 18:02 +0100
    Re: whose c compiler has command just "c" ? "Joachim Schmitz" <nospam.jojo@schmitz-digital.de> - 2011-09-01 18:58 +0200
      Re: whose c compiler has command just "c" ? David Thompson <dave.thompson2@verizon.net> - 2011-09-06 01:16 -0400

#9760 — whose c compiler has command just "c" ?

From"Orson Cart" <ex-privat@parts.org>
Date2011-08-31 15:34 +0100
Subjectwhose c compiler has command just "c" ?
Message-ID<4e5e3877$1@x-privat.org>
I was attempting to make an open-source package released by
a large corporation.
The install script fails saying there is no "c" in my path.
When I look at the context of the "c" command in the script,
it appears to be a command to compile c programs.
I know that in linux, Intel compiler is icc, and Portland is pgcc,
and GCC has gcc commands. There are probably dozens of c compilers
out there ...  which one uses just a single letter c as the command?

[toc] | [next] | [standalone]


#9761

Fromtom st denis <tom@iahu.ca>
Date2011-08-31 07:30 -0700
Message-ID<2e6e3a9e-4d95-4e96-8bee-ba77d9ba9e42@m38g2000vbn.googlegroups.com>
In reply to#9760
On Aug 31, 10:34 am, "Orson Cart" <ex-pri...@parts.org> wrote:
> I was attempting to make an open-source package released by
> a large corporation.
> The install script fails saying there is no "c" in my path.
> When I look at the context of the "c" command in the script,
> it appears to be a command to compile c programs.
> I know that in linux, Intel compiler is icc, and Portland is pgcc,
> and GCC has gcc commands. There are probably dozens of c compilers
> out there ...  which one uses just a single letter c as the command?

Are you sure it wasn't cc?  that's the typical [standard?] C compiler
name on UNIX derived platforms.

Tom

[toc] | [prev] | [next] | [standalone]


#9765

FromKeith Thompson <kst-u@mib.org>
Date2011-08-31 09:18 -0700
Message-ID<lnippdtv0n.fsf@nuthaus.mib.org>
In reply to#9760
"Orson Cart" <ex-privat@parts.org> writes:
> I was attempting to make an open-source package released by
> a large corporation.
> The install script fails saying there is no "c" in my path.
> When I look at the context of the "c" command in the script,
> it appears to be a command to compile c programs.
> I know that in linux, Intel compiler is icc, and Portland is pgcc,
> and GCC has gcc commands. There are probably dozens of c compilers
> out there ...  which one uses just a single letter c as the command?

None that I know of.  As tom says, "cc" is very common (it tends to be a
symlink to "gcc" on Linux systems).

If you didn't misread "cc" as "c, what open-source package is it?

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

[toc] | [prev] | [next] | [standalone]


#9768

FromHarald van Dijk <truedfx@gmail.com>
Date2011-08-31 09:59 -0700
Message-ID<c77e9d8a-4a26-4206-b2e6-c8237cdadd20@gz5g2000vbb.googlegroups.com>
In reply to#9760
On Aug 31, 4:34 pm, "Orson Cart" <ex-pri...@parts.org> wrote:
> I was attempting to make an open-source package released by
> a large corporation.
> The install script fails saying there is no "c" in my path.
> When I look at the context of the "c" command in the script,
> it appears to be a command to compile c programs.

Others have suggested that "c" might be "cc", but there is another
possibility.

If a Makefile contains a rule such as

.c.o:
        $(COMPILE) -c $<

and COMPILE is not defined, then the command to be executed is just
"c", the - taken as an option to ignore any errors. And "c" probably
will not be found. In this scenario, the "c" is correct, and you
should not change it to "cc". You would instead make sure COMPILE gets
defined.

[toc] | [prev] | [next] | [standalone]


#9880

From"Orson Cart" <ex-privat@parts.org>
Date2011-09-02 13:53 +0100
Message-ID<4e60c3c4$1@x-privat.org>
In reply to#9768
=?UTF-8?Q?Harald_van_D=C4=B3k?= <truedfx@gmail.com> wrote:
>
>Others have suggested that "c" might be "cc", but there is another
>possibility.
>
>If a Makefile contains a rule such as
>
>..c.o:
>        $(COMPILE) -c $<
>
>and COMPILE is not defined, then the command to be executed is just
>"c", the - taken as an option to ignore any errors. And "c" probably
>will not be found. In this scenario, the "c" is correct, and you
>should not change it to "cc". You would instead make sure COMPILE
>gets
>defined.
           
Ah yes, it was something like that: in the Makefile there was some
such "$COMMAND -c filename" stuff, and the $COMMAND
was undefined, so it looked like c instead. It is derived from
some rather large setup scripts that take into account the hardware
and software, but fell through the cracks in my case.

[toc] | [prev] | [next] | [standalone]


#9882

FromNoob <root@127.0.0.1>
Date2011-09-02 14:23 +0200
Message-ID<j3qhss$m92$1@dont-email.me>
In reply to#9880
Orson Cart wrote:

> Harald wrote:
> 
>> Others have suggested that "c" might be "cc", but there is another
>> possibility.
>>
>> If a Makefile contains a rule such as
>>
>> ..c.o:
>>        $(COMPILE) -c $<
>>
>> and COMPILE is not defined, then the command to be executed is just
>> "c", the - taken as an option to ignore any errors. And "c" probably
>> will not be found. In this scenario, the "c" is correct, and you
>> should not change it to "cc". You would instead make sure COMPILE
>> gets
>> defined.
>            
> Ah yes, it was something like that: in the Makefile there was some
> such "$COMMAND -c filename" stuff, and the $COMMAND
> was undefined, so it looked like c instead. It is derived from
> some rather large setup scripts that take into account the hardware
> and software, but fell through the cracks in my case.

Great catch, Harald!

[toc] | [prev] | [next] | [standalone]


#9883

Fromgwowen <gwowen@gmail.com>
Date2011-09-02 06:01 -0700
Message-ID<f9f23a95-cda7-425a-be79-55f0db242207@u26g2000yqu.googlegroups.com>
In reply to#9768
On Aug 31, 5:59 pm, Harald van Dijk <true...@gmail.com> wrote:

> If a Makefile contains a rule such as
>
> .c.o:
>         $(COMPILE) -c $<
>
> and COMPILE is not defined, then the command to be executed is just
> "c", the - taken as an option to ignore any errors. And "c" probably
> will not be found. In this scenario, the "c" is correct, and you
> should not change it to "cc". You would instead make sure COMPILE gets
> defined.

*wild applause*

[toc] | [prev] | [next] | [standalone]


#9770

FromRui Maciel <rui.maciel@gmail.com>
Date2011-08-31 18:02 +0100
Message-ID<4e5e692e$0$13958$a729d347@news.telepac.pt>
In reply to#9760
Orson Cart wrote:

> I was attempting to make an open-source package released by
> a large corporation.
> The install script fails saying there is no "c" in my path.
> When I look at the context of the "c" command in the script,
> it appears to be a command to compile c programs.
> I know that in linux, Intel compiler is icc, and Portland is pgcc,
> and GCC has gcc commands. There are probably dozens of c compilers
> out there ...  which one uses just a single letter c as the command?

Try to figure out where this c command is located.  If it refers to a 
binary/script then you might be able to find by running the following 
command:

whereis c

If you find anything then you can perform additional tests, such as using 
the file command and check which software package it may belong to (in 
debian-derived distros you can use the apt-file command for that)

if, instead, it's an alias then you can check the entire alias list by 
running:

alias

I believe this is a good enough to give you an idea of what you are dealing 
with.


Hope this helps,
Rui Maciel

[toc] | [prev] | [next] | [standalone]


#9827

From"Joachim Schmitz" <nospam.jojo@schmitz-digital.de>
Date2011-09-01 18:58 +0200
Message-ID<j3odjc$fdp$1@online.de>
In reply to#9760
Orson Cart wrote:
> I was attempting to make an open-source package released by
> a large corporation.
> The install script fails saying there is no "c" in my path.
> When I look at the context of the "c" command in the script,
> it appears to be a command to compile c programs.
> I know that in linux, Intel compiler is icc, and Portland is pgcc,
> and GCC has gcc commands. There are probably dozens of c compilers
> out there ...  which one uses just a single letter c as the command?

The non-native code C compiler in HP NonStop's Guardian personality.

Bye, Jojo

[toc] | [prev] | [next] | [standalone]


#9960

FromDavid Thompson <dave.thompson2@verizon.net>
Date2011-09-06 01:16 -0400
Message-ID<91bb67le7hveptsmdo2le8mjdctt915lss@4ax.com>
In reply to#9827
On Thu, 1 Sep 2011 18:58:13 +0200, "Joachim Schmitz"
<nospam.jojo@schmitz-digital.de> wrote:

> Orson Cart wrote:
> > I was attempting to make an open-source package released by
> > a large corporation.
> > The install script [tries to run 'c', which turned out to be mistake....]
> > which [compiler] uses just a single letter c as the command?
> 
> The non-native code C compiler in HP NonStop's Guardian personality.
> 
<OT>
which was easy to mistype, especially annoying when I meant 'fc' -- 
which in Guardian is not 'fortran compiler' but rather 'fix command',
i.e. edit previous command line and try/do again, like uparrow in bash
(and maybe ksh? I don't remember for sure) or CMD.

But Guardian/TACL scripts, install and otherwise, are radically
different from those on any other system in the known universe.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c


csiph-web