Re: GCC failed with configure.pl

22 views
Skip to first unread message

Will Coleda

unread,
Jul 10, 2013, 10:00:29 AM7/10/13
to Ashraya S, parro...@googlegroups.com
Do you have a C compiler installed?


On Wed, Jul 10, 2013 at 6:39 AM, Ashraya S <theemer...@gmail.com> wrote:
Hi All,

I am new to parrot and i am trying to install this in windows 7.
I have installed perl and minGW and have added these to my PATH as well.

But i get the following error :

C:\Users\ashiva\Documents\GitHub\parrot>perl Configure.pl
Parrot Version 5.5.0 Configure 2.0
Copyright (C) 2001-2013, Parrot Foundation.

Hello, I'm Configure. My job is to poke and prod your system to figure out
how to build Parrot. The process is completely automated, unless you passed in
the `--ask' flag on the command line, in which case I'll prompt you for a few
pieces of info.

Since you're running this program, you obviously have Perl 5--I'll be pulling
some defaults from its configuration.

init::manifest -      Check MANIFEST.....................................done.
init::defaults -      Set Configure's default values.....................done.
init::install -       Set up installation paths..........................done.
init::hints -         Load platform and local hints files................done.
inter::progs -        Determine what C compiler and linker to use...Compilation
failed with 'gcc'

C:\Users\ashiva\Documents\GitHub\parrot>

Please help me resolve this problem.

Thanks a lot, in advance.

--
Ashiva

_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev




--
Will "Coke" Coleda

Ashraya

unread,
Jul 17, 2013, 7:00:25 AM7/17/13
to Jonathan Duke Leto, parro...@googlegroups.com
Hello Duke,

I am trying one of the examples in the .pod you have given :

  /* foo.c */

  /* specify the function prototype */
  #ifdef __WIN32
  __declspec(dllexport) void foo(void);
  #else
  void foo(void);
  #endif

  void foo(void) {
    printf("Hello Parrot!\n");
  }

Then, after having compiled the file as a shared library, the PIR code looks like this:


Here, how do I compile the .c file to produce a .pir file ??

Thanks,
Ashiva

Thanks & Regards,
Ashraya S Shiva



On Wed, Jul 17, 2013 at 2:08 AM, Jonathan "Duke" Leto <jona...@leto.net> wrote:
Howdy,

You can embed Parrot inside of a C or C++ application. It can be any
language, actually (it works with FORTRAN), but we have the best docs
for C and C++. I have embedded Parrot inside of PostgreSQL (PL/Parrot
[0]), but that uses the old interface [1]. The new interface [2] is
infinitely better, but has not been heavily used. But it was designed
very well by Whiteknight, so it is high quality.

You can also call out to C/C++ libraries from parrot via "dlopen" and
cousins via the Native Call Interface (NCI) substem of Parrot [3].

Which of those things do you want to do, or possibly both?

Duke

[0] http://pl.parrot.org
[1] https://github.com/parrot/parrot/blob/master/docs/embed.pod
[2] https://github.com/parrot/parrot/blob/master/docs/embed_new.pod
[3] https://github.com/parrot/parrot/blob/master/docs/pdds/draft/pdd16_native_call.pod


On Tue, Jul 16, 2013 at 4:58 AM, Ashraya S <theemer...@gmail.com> wrote:
> Hello All,
>
> I switched to my favorite Ubuntu and parrot got installed like a charm.
>
> However, I would like to know how parrot supports C program compilation.
> Is there any tutorial I can find ? I did not get much support for C in
> google. Got loads for perl and pasm.
>
> Please advise.
>
> Thanks,
> Ashiva
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
>



--
Jonathan "Duke" Leto <jona...@leto.net>
Leto Labs LLC http://letolabs.com
209.691.DUKE http://duke.leto.net
@dukeleto

Ashraya

unread,
Jul 18, 2013, 2:46:46 AM7/18/13
to Jonathan Duke Leto, parro...@googlegroups.com
Can anyone please tell me what I am doing wrong ?
This is a bit urgent and I am not able to figure this out.

Please help.

Thanks,
Ashiva

Thanks & Regards,
Ashraya S Shiva



Ashraya

unread,
Jul 22, 2013, 1:51:06 AM7/22/13
to Jonathan Duke Leto, parro...@googlegroups.com
A gentle reminder.. Please reply. How to convert a C code into PIR code ?

Thanks & Regards,
Ashraya S Shiva



On Wed, Jul 17, 2013 at 4:30 PM, Ashraya <theemer...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages