Skip to contentSkip to conversation

help2man-native: task configure fails with `configure: error: perl module Locale::gettext required`

DISCUSSION Paul Menzel 4 participants 9 messages Mar 10, 2011

lore
Share & tools
lore
#0 lore raw

Dear OE folks,

some recent commit indirectly seems to have broken help2man-native and task configure fails.

checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed checking for library containing dlsym... -ldl checking for library containing bindtextdomain... none required
configure: error: perl module Locale::gettext required

Adding liblocale-gettext-perl-native to DEPENDS_virtclass-native does not fix the problem but causes a dependency loop.

I do not understand the dependency for the native package anyway.

DEPENDS = "gettext-native perl-native liblocale-gettext-perl-native" DEPENDS_virtclass-native = "perl-native autoconf-native automake-native" RDEPENDS_${PN} = "gettext perl liblocale-gettext-perl" RDEPENDS_${PN}_virtclass-native = ""

I though that DEPENDS_virtclass-native has DEPENDS as a subset automatically.

Any ideas?

Thanks,

Paul

#1 lore raw
Quoted 22 lines · Paul Menzel

Dear OE folks,

some recent commit indirectly seems to have broken help2man-native and task configure fails.

checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed checking for library containing dlsym... -ldl checking for library containing bindtextdomain... none required
configure: error: perl module Locale::gettext required

Adding liblocale-gettext-perl-native to DEPENDS_virtclass-native does not fix the problem but causes a dependency loop.

I do not understand the dependency for the native package anyway.

DEPENDS = "gettext-native perl-native liblocale-gettext-perl-native" DEPENDS_virtclass-native = "perl-native autoconf-native automake-native" RDEPENDS_${PN} = "gettext perl liblocale-gettext-perl" RDEPENDS_${PN}_virtclass-native = ""

Quoted 4 lines

I though that DEPENDS_virtclass-native has DEPENDS as a subset automatically.

Any ideas?

Is this a uclibc target perhaps?

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#2 lore raw

Tom Rini ha scritto, Il 10/03/2011 16:04:

Quoted 3 lines

Is this a uclibc target perhaps?

Hi Tom,

Not mine, is this

Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "40a8506"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "ronetix-pm9263"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110310"
TARGET_FPU        = "soft"
#3 lore raw

Am Donnerstag, den 10.03.2011, 16:40 +0100 schrieb Marco Cavallini:

Quoted 10 lines

Tom Rini ha scritto, Il 10/03/2011 16:04:

Quoted 1 line

Is this a uclibc target perhaps?

Not mine, is this

Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "40a8506"

Quoted 6 lines
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "ronetix-pm9263"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110310"
TARGET_FPU        = "soft"

No, I get this error using angstrom-2008.1, minimal and minimal-uclibc.

Thanks,

Paul

#4 lore raw
In reply to Marco Cavallini

Am Donnerstag, 10. März 2011, 16:40:36 schrieb Marco Cavallini:

Quoted 14 lines

Tom Rini ha scritto, Il 10/03/2011 16:04:

Quoted 3 lines

Is this a uclibc target perhaps?

Hi Tom,

Not mine, is this

Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "40a8506"

Quoted 7 lines
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "ronetix-pm9263"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110310"
TARGET_FPU        = "soft"

here also glibc-2.9

Found this: reverting patch bccf626b1428d7087d261bf4ad91744b5b5d5418 helped.

'inherit gettext' is not a full replacement for DEPENDS = "gettext-native"

Same problem and solution for packages e2fsprogs, classpath, util-linux-ng

Peter

#5 lore raw
Quoted 23 lines · Peter Gsellmann

Am Donnerstag, 10. März 2011, 16:40:36 schrieb Marco Cavallini:

Quoted 14 lines

Tom Rini ha scritto, Il 10/03/2011 16:04:

Quoted 3 lines

Is this a uclibc target perhaps?

Hi Tom,

Not mine, is this

Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "40a8506"

Quoted 7 lines
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "ronetix-pm9263"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110310"
TARGET_FPU        = "soft"
Quoted 7 lines

here also glibc-2.9

Found this: reverting patch bccf626b1428d7087d261bf4ad91744b5b5d5418 helped.

'inherit gettext' is not a full replacement for DEPENDS = "gettext-native"

Same problem and solution for packages e2fsprogs, classpath, util-linux-ng

OK, I've dug a bit more (sorry for all the breakage) and e2fsprogs / classpath should be fine already, but not util-linux-ng (due to modifying DEPENDS_virtclass-native). I've posted a patch I think will fix this as it's a real problem and gettext.bbclass _should_ be a replacement for DEPENDS = "gettext-native".

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#6 lore raw
In reply to Marco Cavallini
Quoted 14 lines · Marco Cavallini

Tom Rini ha scritto, Il 10/03/2011 16:04:

Quoted 3 lines

Is this a uclibc target perhaps?

Hi Tom,

Not mine, is this

Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "40a8506"

Quoted 6 lines
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "ronetix-pm9263"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110310"
TARGET_FPU        = "soft"

Blarg. I guess this will finally teach me my lesson. Reverted.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#7 lore raw
In reply to Paul Menzel

Paul Menzel ha scritto, Il 10/03/2011 15:40:

Quoted 28 lines

Dear OE folks,

some recent commit indirectly seems to have broken help2man-native and task configure fails.

checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed checking for library containing dlsym... -ldl checking for library containing bindtextdomain... none required
configure: error: perl module Locale::gettext required

Adding liblocale-gettext-perl-native to DEPENDS_virtclass-native does not fix the problem but causes a dependency loop.

I do not understand the dependency for the native package anyway.

DEPENDS = "gettext-native perl-native liblocale-gettext-perl-native" DEPENDS_virtclass-native = "perl-native autoconf-native automake-native" RDEPENDS_${PN} = "gettext perl liblocale-gettext-perl" RDEPENDS_${PN}_virtclass-native = ""

I though that DEPENDS_virtclass-native has DEPENDS as a subset automatically.

Any ideas?

Quoted 6 lines

Thanks,

Paul

------------------------------------------------------------------------

Same problem here.

$ bitbake meta-toolchain

Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "40a8506"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "ronetix-pm9263"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2010.7-test-20110310"
TARGET_FPU        = "soft"

WARNING: oestats: exception <class 'urllib2.HTTPError'>, value HTTP
Error 404: Not Found
WARNING: oestats: error starting build, disabling stats
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
...
NOTE: Running task 273 of 1027 (ID: 541, /home/koan/devel/openembedded/recipes/gcc/gcc-cross-sdk_4.3.3.bb,
do_setscene)
ERROR: TaskFailed event exception, aborting
ERROR: Build of virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb do_configure failed
NOTE: package gcc-cross-sdk-4.3.3-r23.4: task do_setscene: Started
NOTE: package gcc-cross-sdk-4.3.3-r23.4: task do_setscene: Succeeded
ERROR: Task 320 (virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb, do_configure) failed with 256
ERROR: Function do_configure failed
NOTE: Task failed: ('function do_configure failed', '/home/koan/devel/build/angstrom/tmp/work/x86_64-linux/help2man-native-1.38.2-r2/temp/log.do_configure.9893')
ERROR: Logfile of failure stored in:
/home/koan/devel/build/angstrom/tmp/work/x86_64-linux/help2man-native-1.38.2-r2/temp/log.do_configure.9893 Log data follows:
| configure: WARNING: unrecognized options: --enable-largefile,
--enable-ipv6

| checking for perl... perl
| checking for module Locale::gettext... no
| checking for msgfmt... /usr/bin/msgfmt
| checking for x86_64-linux-gcc... gcc
| checking whether the C compiler works... yes
| checking for C compiler default output file name... a.out
| checking for suffix of executables...
| checking whether we are cross compiling... no
| checking for suffix of object files... o
| checking whether we are using the GNU C compiler... yes
| checking whether gcc accepts -g... yes
| checking for gcc option to accept ISO C89... none needed
| checking for library containing dlsym... -ldl
| checking for library containing bindtextdomain... none required
| configure: error: perl module Locale::gettext required
| ERROR: Function do_configure failed

NOTE: package help2man-native-1.38.2-r2: task do_configure: Failed
ERROR: TaskFailed event exception, aborting
NOTE: Running task 274 of 1027 (ID: 539, /home/koan/devel/openembedded/recipes/gcc/gcc-cross-sdk_4.3.3.bb, do_fetch)
ERROR: Build of virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb do_configure failed
ERROR: Task 320 (virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb, do_configure) failed with 256
NOTE: package gcc-cross-sdk-4.3.3-r23.4: task do_fetch: Started Waiting for 1 active tasks to finish:
1: gcc-cross-sdk-4.3.3-r23.4 do_fetch (pid 10169)
ERROR:
'virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb' failed
NOTE: package gcc-cross-sdk-4.3.3-r23.4: task do_fetch: Succeeded ERROR:
'virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb' failed
ERROR:
'virtual:native:/home/koan/devel/openembedded/recipes/help2man/help2man_1.38.2.bb' failed

--
Marco

#8 lore raw
In reply to Paul Menzel

Am Donnerstag, 10. März 2011, 15:40:51 schrieb Paul Menzel:

Quoted 22 lines

Dear OE folks,

some recent commit indirectly seems to have broken help2man-native and task configure fails.

checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed checking for library containing dlsym... -ldl checking for library containing bindtextdomain... none required
configure: error: perl module Locale::gettext required

Adding liblocale-gettext-perl-native to DEPENDS_virtclass-native does not fix the problem but causes a dependency loop.

I do not understand the dependency for the native package anyway.

DEPENDS = "gettext-native perl-native liblocale-gettext-perl-native" DEPENDS_virtclass-native = "perl-native autoconf-native automake-native" RDEPENDS_${PN} = "gettext perl liblocale-gettext-perl" RDEPENDS_${PN}_virtclass-native = ""

Quoted 5 lines

I though that DEPENDS_virtclass-native has DEPENDS as a subset automatically.

Any ideas?

After removing perl-native from ASSUME_PROVIDED and adding help2man-native it worked for me. But this is only work-around, no solution.

Peter