* 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
* Re: automake/aclocal or env problem?
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
0 siblings, 1 reply; 3+ messages in thread
From: Stanislav Brabec @ 2009-09-16 16:23 UTC (permalink / raw)
To: openembedded-devel
Steffen Sledz wrote:
> 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
I see this problem on Zaurus as well.
> 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:
Yes.
> I'm not sure if this is wrong or /usr/bin/env is buggy.
Well. I was thinking so as well. But if you call /usr/bin/env perl -w
from the command line, then it works as expected. In #! line it does not
work. Neither in busybox env nor in coreutils env. It's probably
expected behavior and the problem is introduced by
recipes/autoconf/autoconf-2.63/path_prog_fixes.patch.
We would probably need ac_cv_path_ magic, exactly as it is done in
recipes/libtool. It seems to work properly for both native and target.
--
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: automake/aclocal or env problem?
2009-09-16 16:23 ` Stanislav Brabec
@ 2009-09-17 21:59 ` Stanislav Brabec
0 siblings, 0 replies; 3+ messages in thread
From: Stanislav Brabec @ 2009-09-17 21:59 UTC (permalink / raw)
To: openembedded-devel
Stanislav Brabec wrotr:
>Steffen Sledz wrote:
> > I'm not sure if this is wrong or /usr/bin/env is buggy.
>
> Well. I was thinking so as well. But if you call /usr/bin/env perl -w
> from the command line, then it works as expected. In #! line it does not
> work. Neither in busybox env nor in coreutils env. It's probably
> expected behavior and the problem is introduced by
> recipes/autoconf/autoconf-2.63/path_prog_fixes.patch.
>
> We would probably need ac_cv_path_ magic, exactly as it is done in
> recipes/libtool. It seems to work properly for both native and target.
I hope that this is a fix that does not break anything:
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=33cee0586991e235d0fe3d984f822ef2f310e7c3
The construction
if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
seems to be cleaner than tricks used in libtool. I am just testing the
same approach for libtool recipes.
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
^ 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.