in reply to Re^3: Perl for ARMv7le
in thread Perl for ARMv7le

I tried without the -j4 option, I get the same error

./generate_uudmap uudmap.h bitcount.h mg_data.h ./generate_uudmap: 1: ./generate_uudmap: Syntax error: word unexpected (expecting ")") make: *** uudmap.h Error 2

also tried "arm" instead of " armle"for -Dtargetarch, but i end up getting same error

Replies are listed 'Best First'.
Re^5: Perl for ARMv7le
by Corion (Patriarch) on Dec 19, 2016 at 20:34 UTC

    So it seems to me that your shell is incompatible with the shell that generate_uudmap expects.

    This is something you will have to investigate yourself. Maybe it is just some shell variable that is not expanded as it should.

    Have you tried running the command manually or by explicitly using /bin/sh to run it?

      Yes, i get the following error: bash: ./generate_uudmap: cannot execute binary file: Exec format error

      this means it was compiled for other architecture , in this case arm and i was trying to execute it on my local which is x86_64 ?? Its almost seems like the the whole source code needs to reside on the target system, which is my armv7le system in this case.Probably i need to figure out on how to move the native compiler to my target and perform the ./configure and make.

        I found building natively much easier than cross-compiling.

        If in your case, the gen_uudmap file wants a binary native to your host, maybe you can compile that manually and put it in the correct place?

        Certainly, your cross-compilation instructions show how to handle this case?