Skip to contentSkip to conversation

Problem for building glibc (ipkg-build: command not found)

DISCUSSION Jeremy Dufour 2 participants 5 messages Mar 30, 2007 – Apr 10, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

As I was reading the mails of the mailing-list, I decided to switch to bitbake-1.8. I also decided to remove all my TMPDIR directory to restart from scratch.

I am currently using OE unstable with "OZ-unstable" distro for a "tosa" machine.

When I build a package, I obtained the following error:

NOTE: Resolving missing task queue dependencies
NOTE: multiple providers are available for virtual/arm-linux-libc-for-gcc (glibc, glibc-intermediate);
NOTE: consider defining PREFERRED_PROVIDER_virtual/arm-linux-libc-for-gcc
NOTE: Preparing Runqueue
NOTE: Executing runqueue
NOTE: Running task 144 of 182 (ID: 90, /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb, do_fetch)
NOTE: package ipkg-utils-native-1.6+cvs20050404: started
NOTE: package ipkg-utils-native-1.6+cvs20050404-r8: task do_fetch: started
NOTE: package ipkg-utils-native-1.6+cvs20050404-r8: task do_fetch: completed
NOTE: package ipkg-utils-native-1.6+cvs20050404: completed
NOTE: Running task 145 of 182 (ID: 84, /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb, do_unpack)
NOTE: package ipkg-utils-native-1.6+cvs20050404: started
NOTE: package ipkg-utils-native-1.6+cvs20050404-r8: task do_unpack: started
NOTE: Unpacking /home/djerem/work/zaurus/oe/dl_dir/ipkg-utils_anoncvs.handhelds.org__20050930.tar.gz to /home/djerem/work/zaurus/oe/stuff/tmp/work/i686-linux/ipkg-utils-native-1.6+cvs20050404-r8/
NOTE: package ipkg-utils-native-1.6+cvs20050404-r8: task do_unpack: completed
NOTE: package ipkg-utils-native-1.6+cvs20050404: completed
NOTE: Running task 148 of 182 (ID: 107, /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb, do_package_write)
NOTE: package glibc-2.3.5+cvs20050627: started
NOTE: package glibc-2.3.5+cvs20050627-r13: task do_package_write: started
sh: ipkg-build: command not found
NOTE: Task failed: ipkg-build execution failed
NOTE: package glibc-2.3.5+cvs20050627-r13: task do_package_write: failed
ERROR: TaskFailed event exception, aborting
NOTE: package glibc-2.3.5+cvs20050627: failed
ERROR: Build of /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb do_package_write failed
ERROR: Task 107 (/home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb, do_package_write) failed
ERROR: '/home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb' failed

I decided to switch back to bitbake-1.6, and it works fine.

So I am wondering where the problem can come from? A problem of dependancy wrong handled by bitabke, a problem of package glibc/ipkg-utils?

I can provide more information if needed i(local.conf maybe or run the command in a more verbose way) or open a bug report (in this case, I report it to bitbake or openembedded ?).

In any case, thanks in advance.

Best regards,

djerem

#1 lore raw

Hi,

Quoted 19 lines · Jeremy Dufour

NOTE: Running task 145 of 182 (ID: 84, /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb, do_unpack)
NOTE: package ipkg-utils-native-1.6+cvs20050404: started
NOTE: package ipkg-utils-native-1.6+cvs20050404-r8: task do_unpack: started
NOTE: Unpacking /home/djerem/work/zaurus/oe/dl_dir/ipkg-utils_anoncvs.handhelds.org__20050930.tar.gz to /home/djerem/work/zaurus/oe/stuff/tmp/work/i686-linux/ipkg-utils-native-1.6+cvs20050404-r8/
NOTE: package ipkg-utils-native-1.6+cvs20050404-r8: task do_unpack: completed
NOTE: package ipkg-utils-native-1.6+cvs20050404: completed
NOTE: Running task 148 of 182 (ID: 107, /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb, do_package_write)
NOTE: package glibc-2.3.5+cvs20050627: started
NOTE: package glibc-2.3.5+cvs20050627-r13: task do_package_write: started
sh: ipkg-build: command not found
NOTE: Task failed: ipkg-build execution failed
NOTE: package glibc-2.3.5+cvs20050627-r13: task do_package_write: failed
ERROR: TaskFailed event exception, aborting
NOTE: package glibc-2.3.5+cvs20050627: failed
ERROR: Build of /home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb do_package_write failed
ERROR: Task 107 (/home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb, do_package_write) failed
ERROR: '/home/djerem/work/zaurus/oe/stuff/org.openembedded.dev/packages/glibc/glibc_2.3.5+cvs20050627.bb' failed

Quoted 4 lines

I decided to switch back to bitbake-1.6, and it works fine.

So I am wondering where the problem can come from? A problem of dependancy wrong handled by bitabke, a problem of package glibc/ipkg-utils?

It looks like a dependency issue, there is no way to tell bitbake that ipkg-utils-native must have run do_populate_staging before it can run do_package_write tasks.

The email I just sent to the list has a proposed fix but its not backwards compatible so will need some discussion.

A short term work around is to "bitbake ipkg-utils-native" before running your other bitbake command.

Cheers,

Richard

#2 lore raw
Quoted 4 lines · Richard Purdie

[...]
It looks like a dependency issue, there is no way to tell bitbake that ipkg-utils-native must have run do_populate_staging before it can run do_package_write tasks.

If I understand well, the problem here is that glibc is trying to do a "do_package_write" before ipkg-utils-native is built?

But I did not understand exactly why we can not "just" said that glibc depend on ipk-utils-native?

Quoted 3 lines

[...]
A short term work around is to "bitbake ipkg-utils-native" before running your other bitbake command.

This works fine for me, thanks!

djerem

#3 lore raw
Quoted 8 lines · Jeremy Dufour
Quoted 4 lines · Richard Purdie

[...]
It looks like a dependency issue, there is no way to tell bitbake that ipkg-utils-native must have run do_populate_staging before it can run do_package_write tasks.

If I understand well, the problem here is that glibc is trying to do a "do_package_write" before ipkg-utils-native is built?

Correct.

Quoted 2 lines

But I did not understand exactly why we can not "just" said that glibc depend on ipk-utils-native?

In bitbake 1.8 we've enabled multithreading and we've chosen to do this on a per task basis rather than a per .bb file basis. We therefore need task level dependencies rather than the higher per file .bb dependencies.

Regards,

Richard

#4 lore raw
Quoted 7 lines · Richard Purdie

[...]

Quoted 2 lines

But I did not understand exactly why we can not "just" said that glibc depend on ipk-utils-native?

In bitbake 1.8 we've enabled multithreading and we've chosen to do this on a per task basis rather than a per .bb file basis. We therefore need task level dependencies rather than the higher per file .bb dependencies.

Ok, so it is a kind of "thread synchronisation" :)

Thanks for the explanation :)

djerem