[oe] automake/aclocal or env problem?

Steffen Sledz sledz at dresearch.de
Wed Sep 16 10:17:23 UTC 2009


We're using automake (1.10.2) on our target machine for rapid prototyping.

Calling "autoreconf --install" results in this error:

 /usr/bin/env: perl -w: No such file or directory
 autoreconf: aclocal failed with exit status: 127

An strace shows this:

[pid  1258] execve("/usr/local/bin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/usr/bin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/bin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/usr/local/sbin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/usr/sbin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/sbin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/opt/bin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] execve("/opt/avr/bin/perl -w", ["perl -w", "/usr/bin/aclocal", "--output=aclocal.m4t"], [/* 15 vars */]) = -1 ENOENT (No such file or directory)
[pid  1258] write(2, "/usr/bin/env: ", 14/usr/bin/env: ) = 14
[pid  1258] write(2, "perl -w", 7perl -w)      = 7
[pid  1258] write(2, ": No such file or directory", 27: No such file or directory) = 27
[pid  1258] write(2, "\n", 1

My interpretation is that execve looks e.g. for an executable named "/usr/bin/perl -w" and not for "/usr/bin/perl" with option "-w". A look into /usr/bin/aclocal shows this shebang line:

 #!/usr/bin/env perl -w                                                                                                           
 # -*- perl -*-                                                                                                                   
 # Generated from aclocal.in; do not edit by hand.

I'm not sure if this is wrong or /usr/bin/env is buggy.

Steffen

PS: A few lines later /usr/bin/aclocal contains pathes into the staging area. This should be fixed too.






More information about the Openembedded-devel mailing list