Skip to contentSkip to conversation

jpeg-native: Do not use libtool-cross for native recipe

PATCH In review Khem Raj 2 participants 7 messages Sep 25, 2012 – Sep 27, 2012

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 jpeg-native: Do not use libtool-cross for native recipe

This fixes errors when building native recipes like below Additionally fix some space issues.

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool:
line 981: /work/yocto/poky/build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory

| x86_64-linux-libtool: compile: Failed to create `.libs'
| make[1]: *** [jaricom.lo] Error 1
| make[1]: *** Waiting for unfinished jobs....
|

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool:
line 981: /work/yocto/poky/build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory
| /work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool:
line 981: /work/yocto/poky/build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory
| x86_64-linux-libtool: compile: Failed to create `.libs'
| x86_64-linux-libtool: compile: Failed to create `.libs'

---
 meta/recipes-core/jpeg/jpeg_8d.bb |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-core/jpeg/jpeg_8d.bb +5 -3
index 6781619..1f6366b 100644
@@ -11,7 +11,7 @@ SECTION = "libs"
 DEPENDS = "libtool-cross"
 DEPENDS_virtclass-native = "libtool-native"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
 	   file://debian-libjpeg7_7-1.diff \
@@ -22,8 +22,10 @@ SRC_URI[sha256sum] = "00029b1473f0f0ea72fbca3230e8cb25797fbb27e58ae2e46bb8bf5a80
 
 inherit autotools 
 
-EXTRA_OECONF="--enable-static --enable-shared"
-EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"'
+EXTRA_OECONF = "--enable-static --enable-shared"
+EXTRA_OEMAKE = '"LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"'
+
+EXTRA_OEMAKE_class-native = ""
 
 CFLAGS_append = " -D_REENTRANT"
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines · Khem Raj

This fixes errors when building native recipes like below Additionally fix some space issues.

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool:
line 981: /work/yocto/poky/build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory

| x86_64-linux-libtool: compile: Failed to create `.libs'
| make[1]: *** [jaricom.lo] Error 1
| make[1]: *** Waiting for unfinished jobs....
|
Quoted 9 lines

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool:
line 981: /work/yocto/poky/build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory
| /work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool:
line 981: /work/yocto/poky/build/tmp/sysroots/x86_64-linux//bin/sed: No such file or directory
| x86_64-linux-libtool: compile: Failed to create `.libs'
| x86_64-linux-libtool: compile: Failed to create `.libs'

This wallpapers over cracks. Why is libtool-native/libtool-cross broken? Shouldn't we fix whatever is breaking libtool?

Cheers,

Richard

author
#2 lore raw
Quoted 3 lines · Richard Purdie

This wallpapers over cracks. Why is libtool-native/libtool-cross broken? Shouldn't we fix whatever is breaking libtool?

it is not broken. But we were ending up using cross-libtool for native recipe that does not seem right.

#3 lore raw
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie

This wallpapers over cracks. Why is libtool-native/libtool-cross broken? Shouldn't we fix whatever is breaking libtool?

it is not broken. But we were ending up using cross-libtool for native recipe that does not seem right.

Looking at your original error message, it says:

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool

which is libtool-native. I appreciate that the OEMAKE line to use the cross version is wrong but it looks like it still manages to find the native libtool and that it isn't working.

Cheers,

Richard

author
#4 lore raw
Quoted 10 lines · Richard Purdie
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie

This wallpapers over cracks. Why is libtool-native/libtool-cross broken? Shouldn't we fix whatever is breaking libtool?

it is not broken. But we were ending up using cross-libtool for native recipe that does not seem right.

Quoted 7 lines

Looking at your original error message, it says:

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool

which is libtool-native. I appreciate that the OEMAKE line to use the cross version is wrong but it looks like it still manages to find the native libtool and that it isn't working.

hmmm I tried and it worked fine when libtool-cross was staged. I guess my problem was
that it was trying to find native sed in native sysroot. I cant reproduce it. But I guess
the patch still makes sense. I can send it with commit message changed if you are ok with that

Quoted 6 lines

Cheers,

Richard

#5 lore raw
Quoted 20 lines · Khem Raj
Quoted 10 lines · Richard Purdie
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie

This wallpapers over cracks. Why is libtool-native/libtool-cross broken? Shouldn't we fix whatever is breaking libtool?

it is not broken. But we were ending up using cross-libtool for native recipe that does not seem right.

Quoted 7 lines

Looking at your original error message, it says:

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool

which is libtool-native. I appreciate that the OEMAKE line to use the cross version is wrong but it looks like it still manages to find the native libtool and that it isn't working.

Quoted 6 lines

hmmm I tried and it worked fine when libtool-cross was staged. I guess my problem was
that it was trying to find native sed in native sysroot. I cant reproduce it. But I guess
the patch still makes sense. I can send it with commit message changed if you are ok with that

I'm not really. I'd like to understand what the problem is we're fixing before I take patches. We don't understand what is wrong here.

Cheers,

Richard

author
#6 lore raw
Quoted 28 lines · Richard Purdie
Quoted 20 lines · Khem Raj
Quoted 10 lines · Richard Purdie
Quoted 8 lines · Khem Raj
Quoted 3 lines · Richard Purdie

This wallpapers over cracks. Why is libtool-native/libtool-cross broken? Shouldn't we fix whatever is breaking libtool?

it is not broken. But we were ending up using cross-libtool for native recipe that does not seem right.

Quoted 7 lines

Looking at your original error message, it says:

/work/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-libtool

which is libtool-native. I appreciate that the OEMAKE line to use the cross version is wrong but it looks like it still manages to find the native libtool and that it isn't working.

Quoted 6 lines

hmmm I tried and it worked fine when libtool-cross was staged. I guess my problem was
that it was trying to find native sed in native sysroot. I cant reproduce it. But I guess
the patch still makes sense. I can send it with commit message changed if you are ok with that

Quoted 3 lines

I'm not really. I'd like to understand what the problem is we're fixing before I take patches. We don't understand what is wrong here.

yes it seems something else is going on since for native recipes STAGING_BINDIR_CROSS=${STAGING_BINDIR_NATIVE}
which means it ends up sourcing the native libtool for jpeg-native

When I did bitbake jpeg-native from scratch it worked fine too.

It appeared on a build server so it could have some weird race condition show up. I will keep an eye if it happens again then I would like to understand and hopefully reproduce.

Let me withdraw this patch.

Quoted 4 lines

Cheers,

Richard