All of lore.kernel.org
 help / color / mirror / Atom feed
* automake-1.11 vs. host $perl_threads
@ 2010-11-22 23:46 Andrea Adami
  2010-11-23  0:04 ` Andrea Adami
  0 siblings, 1 reply; 8+ messages in thread
From: Andrea Adami @ 2010-11-22 23:46 UTC (permalink / raw)
  To: openembedded-devel

Hi,

in log.do_configure of automake-native-1.11.1-r3.1 I see

checking for perl... /usr/bin/perl
checking whether /usr/bin/perl supports ithreads... yes

In fact I have in my
 /oe/build/tmp/sysroots/i686-linux/usr/share/automake-1.11/Automake/Config.pm

our $APIVERSION = '1.11';
our $PACKAGE = 'automake';
our $VERSION = '1.11.1';
our $libdir = '/oe/build/tmp/sysroots/i686-linux/usr/share/automake-1.11';
our $perl_threads = 1;

Well, that seems just fine but since some days building on a Gentoo
host, whose perl is compiled without threads support (no 'ithreads'
use flag) I trigger a nasty error:

NOTE: package libx11-1_1.4.0-r9.0: task do_configure: Started
ERROR: Logfile of failure stored in:
/oe/build/tmp/work/armv5te-angstrom-linux-gnueabi/libx11-1_1.4.0-r9.0/temp/log.do_configure.4482
Log data follows:
| This Perl not built to support threads
| Compilation failed in require at
/oe/build/tmp/sysroots/i686-linux/usr/bin/automake line 139.
| BEGIN failed--compilation aborted at
/oe/build/tmp/sysroots/i686-linux/usr/bin/automake line 144.
| This Perl not built to support threads
| Compilation failed in require at
/oe/build/tmp/sysroots/i686-linux/usr/bin/automake line 139.
| BEGIN failed--compilation aborted at
/oe/build/tmp/sysroots/i686-linux/usr/bin/automake line 144.
NOTE: package libx11-1_1.4.0-r9.0: task do_configure: Failed

Note that in the host   /usr/share/automake-1.11/Automake/Config.pm I have

our $perl_threads = 0;

So it seems to me that something is getting mixed between perl-native
and perl on host :/

Any idea?

Regards

Andrea



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-22 23:46 automake-1.11 vs. host $perl_threads Andrea Adami
@ 2010-11-23  0:04 ` Andrea Adami
  2010-11-23  0:17   ` Khem Raj
  2010-11-23  1:05   ` Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: Andrea Adami @ 2010-11-23  0:04 UTC (permalink / raw)
  To: openembedded-devel

I found something in run.do_configure of automake-1.11

do_configure() {
        if false
        then
                export
ac_cv_path_PERL="${ac_cv_path_PERL=/oe/build/tmp/sysroots/i686-linux/usr/bin/perl}"
        fi
        autotools_do_configure

}

It comes from


do_configure_prepend () {
        if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
        then
                export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
        fi
}

test fails...


Andrea



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-23  0:04 ` Andrea Adami
@ 2010-11-23  0:17   ` Khem Raj
  2010-11-23  0:29     ` Andrea Adami
  2010-11-23  1:05   ` Tom Rini
  1 sibling, 1 reply; 8+ messages in thread
From: Khem Raj @ 2010-11-23  0:17 UTC (permalink / raw)
  To: openembedded-devel

> It comes from
>
>
> do_configure_prepend () {
>        if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
>        then
>                export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
>        fi
> }
>
> test fails...
>

OK what happens if you get rid  of do_configure_prepend fully ?



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-23  0:17   ` Khem Raj
@ 2010-11-23  0:29     ` Andrea Adami
  0 siblings, 0 replies; 8+ messages in thread
From: Andrea Adami @ 2010-11-23  0:29 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Nov 23, 2010 at 1:17 AM, Khem Raj <raj.khem@gmail.com> wrote:
>> It comes from
>>
>>
>> do_configure_prepend () {
>>        if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
>>        then
>>                export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
>>        fi
>> }
>>
>
> OK what happens if you get rid  of do_configure_prepend fully ?
>

 yes, fully removing do_configure_prepend allows e.g. libx11

Bingo!

Andrea



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-23  0:04 ` Andrea Adami
  2010-11-23  0:17   ` Khem Raj
@ 2010-11-23  1:05   ` Tom Rini
  2010-11-24 10:59     ` Andrea Adami
  1 sibling, 1 reply; 8+ messages in thread
From: Tom Rini @ 2010-11-23  1:05 UTC (permalink / raw)
  To: openembedded-devel

On 11/22/2010 05:04 PM, Andrea Adami wrote:
> I found something in run.do_configure of automake-1.11
>
> do_configure() {
>          if false
>          then
>                  export
> ac_cv_path_PERL="${ac_cv_path_PERL=/oe/build/tmp/sysroots/i686-linux/usr/bin/perl}"
>          fi
>          autotools_do_configure
>
> }
>
> It comes from
>
>
> do_configure_prepend () {
>          if ${@['true', 'false'][bb.data.inherits_class('native', d)]}
>          then
>                  export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
>          fi
> }
>
> test fails...

Intentionally, yes.  There is no dependency on perl-native for 
autoconf/automake and instead on the fake "throwing our hands up" 
perl-runtime-native.

-- 
Tom Rini
Mentor Graphics Corporation



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-23  1:05   ` Tom Rini
@ 2010-11-24 10:59     ` Andrea Adami
  2010-11-24 23:43       ` Andrea Adami
  0 siblings, 1 reply; 8+ messages in thread
From: Andrea Adami @ 2010-11-24 10:59 UTC (permalink / raw)
  To: openembedded-devel

It looks like Poky's handles the issue differently:

http://git.pokylinux.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/autoconf/autoconf_2.65.bb
vs.
http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/autoconf/autoconf_2.65.bb


and similarly

http://git.pokylinux.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/automake/automake_1.11.1.bb
vs.
http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/automake/automake.inc

Any opinion from autofoo experts?
TIA

Andrea



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-24 10:59     ` Andrea Adami
@ 2010-11-24 23:43       ` Andrea Adami
  2010-12-07 12:36         ` Andrea Adami
  0 siblings, 1 reply; 8+ messages in thread
From: Andrea Adami @ 2010-11-24 23:43 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Nov 24, 2010 at 11:59 AM, Andrea Adami <andrea.adami@gmail.com> wrote:
> It looks like Poky's handles the issue differently:
>
After a better inspection, nothing new there.


I suspect the perl issue was originated by me, starting a build in
Ubuntu env (with perl  threads) and having resumed a broken build
after rebooting in Gentoo (no perl threads). That would explain our
$perl_threads = 1; for automake-native.

A fresh build of one hour ago gave our $perl_threads = 0;

Sorry for the noise

Andrea



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

* Re: automake-1.11 vs. host $perl_threads
  2010-11-24 23:43       ` Andrea Adami
@ 2010-12-07 12:36         ` Andrea Adami
  0 siblings, 0 replies; 8+ messages in thread
From: Andrea Adami @ 2010-12-07 12:36 UTC (permalink / raw)
  To: openembedded-devel

Still, is a bit unclear to me why the package was testing host
perl...and recently I read

[oe] [PATCH 1/2] automake_1.11.1.bb: Don't try to execute perl.
( http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-December/027516.html
)

so indeed there is something strange...

Will test the patch and reply

Andrea



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

end of thread, other threads:[~2010-12-07 12:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 23:46 automake-1.11 vs. host $perl_threads Andrea Adami
2010-11-23  0:04 ` Andrea Adami
2010-11-23  0:17   ` Khem Raj
2010-11-23  0:29     ` Andrea Adami
2010-11-23  1:05   ` Tom Rini
2010-11-24 10:59     ` Andrea Adami
2010-11-24 23:43       ` Andrea Adami
2010-12-07 12:36         ` Andrea Adami

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.