Skip to contentSkip to conversation

Boost compilation error

DISCUSSION Gregoire Gentil 5 participants 7 messages Nov 29, 2009 – Nov 30, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.3.1259492402.612.openembedded-devel@lists.openembedded.org

#2 lore raw
Quoted 4 lines · Gregoire Gentil

Hello,

I get this error when building latest of boost:
http://pastebin.com/m6bb87892

The message says that the ELF machine headers did not match. EM_ARM is 40 and EM_386 is 3
so it seems your build did not use cross compiler for some reason. If you were compiling for arm it should show EM_ARM
try to dump one of the file using readelf -h and check what it says for Machine:

Quoted 1 line

I'm on Ubuntu 9.10 with gcc4.4.

gcc version on host would not be of significance as the package should be compiled using the cross gcc that
was built with openembedded build you did.

Quoted 19 lines

The do compile is here:
http://pastebin.com/m1822da98

I didn't have such problem on Ubuntu 9.04.

Any idea if I'm doing something wrong or if the latest commit on boost has a problem?

Thanks in advance,

Grégoire

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw

Initramfs and kernel

In reply to a message not in the archive

Hello,

I'm building an initramfs image for a beagleboard-like platform. I managed to make it work but I have a kind of circular dependency, meaning:

I build initramfs (which depends kernel), I add to the .config of kernel the path of the initramfs.cpio.gz, then I need to rebuild the kernel to have the initramfs inside the uImage...

I obviously don't do it right. How is initramfs supposed to work in OE?

Grégoire

#5 lore raw

Re: Initramfs and kernel

I hit the send button too fast. I also wanted to add a PS to my email.

I tried to fatload an external initramfs at u-boot but I didn't manage to have the kernel to use it. Not sure if I need to have it inside uImage (hence the circular problem mentioned below) or to have the right command line,

Grégoire

Quoted 15 lines · Gregoire Gentil

Hello,

I'm building an initramfs image for a beagleboard-like platform. I managed to make it work but I have a kind of circular dependency, meaning:

I build initramfs (which depends kernel), I add to the .config of kernel the path of the initramfs.cpio.gz, then I need to rebuild the kernel to have the initramfs inside the uImage...

I obviously don't do it right. How is initramfs supposed to work in OE?

Grégoire

#6 lore raw

Re: Initramfs and kernel

In reply to Gregoire Gentil

Why does your initramfs depend on the kernel? Are you using kernel modules in the initramfs?

I thought the idea of initramfs was to decouple the kernel from the Filesystem image AMAP.

Trying to learn from your adventure (since I plan to use an initramfs on the future)

Charlie

Quoted 24 lines · Gregoire Gentil

Hello,

I'm building an initramfs image for a beagleboard-like platform. I managed to make it work but I have a kind of circular dependency, meaning:

I build initramfs (which depends kernel), I add to the .config of kernel
the path of the initramfs.cpio.gz, then I need to rebuild the kernel to
have the initramfs inside the uImage...

I obviously don't do it right. How is initramfs supposed to work in OE?

Grégoire

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#7 lore raw

Re: Initramfs and kernel

In reply to Gregoire Gentil
Quoted 1 line

I obviously don't do it right. How is initramfs supposed to work in OE?

One way is the one we used for :
kexecboot -> initramfs-kexecboot-image -> linux-kexecboot

See how images of initramfs-enabled kernel is pulled in conf/machine/include/initramfs-kexecboot.inc Basically we ended up with two recipes for kernel.

Regards

Andrea