All of lore.kernel.org
 help / color / mirror / Atom feed
* automake/aclocal or env problem?
@ 2009-09-16 10:17 Steffen Sledz
  2009-09-16 16:23 ` Stanislav Brabec
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Sledz @ 2009-09-16 10:17 UTC (permalink / raw)
  To: openembedded-devel

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-17 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-16 10:17 automake/aclocal or env problem? Steffen Sledz
2009-09-16 16:23 ` Stanislav Brabec
2009-09-17 21:59   ` Stanislav Brabec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.