Grokbase
x

Konovalov, Vadim Vladimirovich (Vadim)** CTR ** (vkono...@alcatel-lucent.com)

Profile | Posts (3)

User Information

Display Name:Konovalov, Vadim Vladimirovich (Vadim)** CTR **
Partial Email Address:vkono...@alcatel-lucent.com
Posts:
3 total
3 in Perl 5 Porters

5 Most Recent

1) Konovalov, Vadim Vladimirovich (Vadim)** CTR ** RE: Problem in Cross-compile
| +1 vote
I am really sorry about having this stalled. I'll return to the problem soon, sorry. Vadim.
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> >> > I have been trying to cross compile Perl for an
> ARM-Linux for few days
> >> > without result:
> >> > I have an ssh working connection between my Intel-Linux
> host and my
> >> > Arm-Linux device. I'm calling Configure as the following:
> >>
> >> > I'm sure I'm doing something wrong or I'm missing some
> steps. Help!!
> >
> > Having recently tried this, I've found that the only way to get
> > something remotely credible is to build natively on your
> ARM system or
> > in a QEMU emulator that looks like your ARM system.
> >
> > I'd love to see patches to improve the state of Perl's
> > cross-buildability, but it's going to take some real work.
>
> Vadim Konovalov started to work on this, but we have no news and his
> work has stalled. It's available in the branch "vadim/cross" of the
> perl git repository (http://perl5.git.perl.org/perl.git).

I am really sorry about having this stalled.
I'll return to the problem soon, sorry.

Vadim.
2) Konovalov, Vadim Vladimirovich (Vadim)** CTR ** RE: merging make_ext and make_ext_cross
| +1 vote
that's fine! yes, that's right. 2 points however: - make_ext_cross needs additional attention...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> Steffen Mueller actually has all of ext/util/make_ext
> re-written in Perl,
> but (I believe) doesn't have ext/util_make_ext_cross
> integrated with it,
> nor has anyone dealt with the make clean; make distclean
> problem described.
> (make distclean; on its own works fine)
>
> Also, Yves thought it easier to convert ext/util/make_ext to
> Perl first, then
> figure out how to merge it with the Win32 code, rather than
> trying to compare
> a shell script with Perl code.
>
>
> So best to work out how to avoid duplicating work.

that's fine!

>
> As far as he and I can see, make_ext_cross is identical to
> make_ext, except
> that it invokes Makefile.PL with -MCross. So I assume that
> the right way
> forward is to add an option to the new make_ext.pl to use
> -MCross, and then
> change the 4 lines in Cross/Makefile-cross-SH that currently invoke
> make_ext_cross, to instead invoke make_ext.pl with the 'use
> -MCross' option
> enabled.

yes, that's right.

2 points however:

- make_ext_cross needs additional attention  anyway - so feel free to 
ignore it for now, I'll bring it up-to-date when continuing with cross-compilation,
hopefully very soon

- File ./Cross/Makefile-cross-SH is deleted (http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2008-12/msg00721.html)

... and the last link makes me think that I need to bring my mind up-to-date...

rsync is Soooooooo yesterday :)

>
> So is it best if we patch blead to change ext/util/make_ext to
> ext/util/make_ext.pl, and then let you patch that (and test
> it) to incorporate
> the -MCross option, and eliminate ext/util/make_ext_cross ?
>
> (then sort out disclean, and work out how to merge the Win32 code)

absolutely!

Best regards,
Vadim=
3) Konovalov, Vadim Vladimirovich (Vadim)** CTR ** RE: merging make_ext and make_ext_cross
| +1 vote
Yes, win32/buildext.pl uses win32/FindExt.pm, and those could be used instead of ext/util/make_ext...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> From: demerphq [email protected: dem...@gmail.com]
> To repeat what i just said in chat (for posterities sake, although
> dunno why this posterity guy needs everything repeated):
>
> win32/buildext.pl
>
> appears to be the win32 equivalent of make_ext. At least it has
> patches that i made to make it possible to build only the 're'
> extension (which doesnt really work in the linux version).

Yes, win32/buildext.pl uses win32/FindExt.pm, and those could be
used instead of ext/util/make_ext on all platforms (after some reorganizations)
- I very much hope so!

Best regards,
Vadim.
4) Konovalov, Vadim Vladimirovich (Vadim)** CTR ** RE: merging make_ext and make_ext_cross
| +1 vote
I like the idea! I will send such a patch within a day, if no-one minds. Best regards, Vadim.=...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> From: Nicholas Clark [email protected: n...@flirble.org] On Behalf Of

....

> So the trick is to save the Makefile as Makefile.old and use that for
> distclean.
>
>
>
> This, of course, all works fine if make_ext is a shell
> script, as it doesn't
> rely on anything we built to run make distclean. But if we
> simply change
> make_ext to rely on miniperl, we have a problem if we run make clean;
> make distclean, as it has already gone.
>
>
> Not certain what to do, but it strikes me that as make_ext
> runs it could
> write out the shell* instructions to run distclean into a
> shell "script" at
> top level, and we could change realclean (and distclean) to
> use that, rather
> than recurse into ext/ via make_ext.

I like the idea!

I will send such a patch within a day, if no-one minds.
(of course, Nicholas, if you're all in this and willing to implement - I will not dare to interfere :) )

Best regards,
Vadim.=
5) Konovalov, Vadim Vladimirovich (Vadim)** CTR ** RE: merging make_ext and make_ext_cross
| +1 vote
that was my intention, but I haven't, because I was intended to continue with this after...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
(sorry for delay - was long off-line; I'm tuned from now on :) )

> Did you mention that you had a patch somewhere to merge
> ext/util/make_ext
> and ext/util/make_ext_cross ?

that was my intention, but I haven't, because I was intended to continue
with this after Makefile.SH will be a bit more cross-compilation aware ...

> We're intending to convert ext/util/make_ext from shell to
> Perl, and it
> seems a good way to merge the functionality of the two into one.

That is my dream :)

But see also my other reply in this thread.

Best regards,
Vadim.

spacer
Profile | Posts (3)
Home > People > Konovalov, Vadim Vladimirovich (Vadim)** CTR **