Hi, I have some suprising problems trying to compile software for openwrt.

I am on Debian testing and my perl is 5.26.1.

When I try to compile the openwrt-toolchain it fails at one point because a perl-script gets generated that contains this:

sub substitute_ac_subst_variables { my ($text) = @_; $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ( +$1)/ge; return $text; }
Unfortunately my perl dies here with "Unescaped left brace in regex is illegal here in regex".

I decided to try an older perl and installed 5.20.3 but the problem persisted.

So I tried the even older perls 5.12.5 and 5.10.1 but to my surprise the attempt to install then via perlbrew failed in the tests.

So it seems the openwrt-toolchain cannot deal with the behaviour of newer perls while the installation of old perls fails...

Before I now set up a VM with an older debian-version, I wanted to see if anybody has any other idea on how to proceed.

Many thanks!


In reply to compilation problems by morgon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.