Skip to contentSkip to conversation

ARM EABI SDK build

DISCUSSION Nils Faerber 5 participants 10 messages Nov 12, 2006 – Nov 20, 2006 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello!
I am terribly sorry but now you got me on your track too ;)

As first task I wanted to build an ARM EABI softfloat toolchain using current OE. So I created a machine config for a PXA270 machine using Angstrom as dist and created my own smaller version of meta-sdk in order not to build X11, GTK, OPIE and GPE (for now).

The first problem I stepped over is that gcc4-build-sdk.inc still has the line

SRC_URI += 'file://602-sdk-libstdc++-includes.patch;patch=1'

or in fact without the 602- prefix. But this patch is already included in the gcc_4.1.1.bb. So I commented that out.

Now the build continued a bit further but fails at gcc-cross-sdk-4.1.1-r0:

| /home/nils/work/oe/colli-sdk/tmp/work/i686-angstrom-linux-gnueabi/gcc-cross-sdk-4.1.1-r0/gcc-4.1.1/libiberty/getpwd.c:
In function ‘getpwd’:
| /home/nils/work/oe/colli-sdk/tmp/work/i686-angstrom-linux-gnueabi/gcc-cross-sdk-4.1.1-r0/gcc-4.1.1/libiberty/getpwd.c:75:
error: storage size of ‘dotstat’ isn’t known
| /home/nils/work/oe/colli-sdk/tmp/work/i686-angstrom-linux-gnueabi/gcc-cross-sdk-4.1.1-r0/gcc-4.1.1/libiberty/getpwd.c:75:
error: storage size of ‘pwdstat’ isn’t known

Which I do not understand at all.

Does anyone have an idea what might causing this?
Or even better, does anyone have a working config for an ARM EABI softfloat toolchain (SDK) target?

Thanks!

Cheers
nils faerber

PS: Apart from that minor problem OE has become a lot better during that last 3/4 of an year when I last looked at it ;)

Signature · 4 lines
kernel concepts GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          Mob: +49-176-21024535
--
#1 lore raw

Hi,

Quoted 7 lines · Nils Faerber

The first problem I stepped over is that gcc4-build-sdk.inc still has the line

SRC_URI += 'file://602-sdk-libstdc++-includes.patch;patch=1'

or in fact without the 602- prefix. But this patch is already included in the gcc_4.1.1.bb. So I commented that out.

this seems to be fixed now, i get a different message:

NOTE: Applying patch '300-libstdc++-pic.patch'
ERROR: Error in executing:
/home/fuchs/Projekte/oe/dev/packages/gcc/gcc-cross-sdk_4.1.1.bb
ERROR: Exception:__builtin__.CmdError Message:Command Error: exit status: 1 Output:
Patch headers differ:
@@ -1,4 +1,2 @@
# DP: Build and install libstdc++_pic.a library.

Sounds like a broken patch to me.
I use bitbake 1.6.2 and the up to date stuff from org.openembedded.dev (9c4dc2162967f7102e29135dc8da502dd80d01ac).

The full error message is attached...

Greetings

Florian

Signature · 6 lines
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-14
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        [email protected]

1D78 2D4D 6C53 1CA4 5588  D07B A8E7 940C 25B7 9A76

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 3 lines · Nils Faerber

I forgot to report: "file_4.16.bb"  and "file-native-4.16.bb" need to be updated since the server does not carry 4.16 anmore - only 4.17 and 4.18.

I suggest updating metadata:

Revision: fa302963f7d41e6cdf3efbde3458b3731e8ec5ae
Ancestor: 3d7e2cab9dc312dae9852afc664f3bbdb5d4c9e9
Author: [email protected]
Date: 2006-11-09T10:37:33
Branch: org.openembedded.dev

Added files:

        packages/file/file-native_4.18.bb packages/file/file_4.18.bb
        packages/file/files/dump packages/file/files/filesystems

ChangeLog:

file, file-native 4.18 : replaced the magic files for filesystems and dump for the ones for 4.16. The stuff that doesnt compile in 4.18 is new so it looks like a lack of QA on part of this release that they dont work.

Signature · 5 lines
JID: hrw-jabber.org
OpenEmbedded developer/consultant

                 Shortcut, n.:
                 	the longest distance between two points.
#4 lore raw

OK, that was indeed fixed.
But I still have the problem that gcc-cross-sdk-4.1.1 fails to compile due to problems with sys/types.h
This is really strange since this originates from glibc.

Koen: Didn't you build an EABI-softfloat toolchain already?

Cheers
nils

Quoted 24 lines · Marcin Juszkiewicz
Quoted 3 lines · Nils Faerber

I forgot to report: "file_4.16.bb" and "file-native-4.16.bb" need to be updated since the server does not carry 4.16 anmore - only 4.17 and 4.18.

I suggest updating metadata:

Revision: fa302963f7d41e6cdf3efbde3458b3731e8ec5ae
Ancestor: 3d7e2cab9dc312dae9852afc664f3bbdb5d4c9e9
Author: [email protected]
Date: 2006-11-09T10:37:33
Branch: org.openembedded.dev

Added files:

        packages/file/file-native_4.18.bb packages/file/file_4.18.bb
        packages/file/files/dump packages/file/files/filesystems

ChangeLog:

file, file-native 4.18 : replaced the magic files for filesystems and dump for the ones for 4.16. The stuff that doesnt compile in 4.18 is new so it looks like a lack of QA on part of this release that they dont work.

Signature · 4 lines
kernel concepts GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          Mob: +49-176-21024535
--
#5 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nils Faerber schreef:

Quoted 6 lines

OK, that was indeed fixed.
But I still have the problem that gcc-cross-sdk-4.1.1 fails to compile due to problems with sys/types.h
This is really strange since this originates from glibc.

Koen: Didn't you build an EABI-softfloat toolchain already?

Riku did:
http://dominion.kabel.utwente.nl/koen/cms/using-openembedded-toolchains-in-scratchbox

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFWNqEMkyGM64RGpERArWvAKCprelLRvf6IYt+s/qtCwc0u6HlkACfZnlQ KKjheV9i8rV/e+D5vG5FnTE=
=+ENC
-----END PGP SIGNATURE-----

#6 lore raw
Quoted 8 lines · Koen Kooi

Nils Faerber schreef:

Quoted 5 lines
Quoted 5 lines

OK, that was indeed fixed.
But I still have the problem that gcc-cross-sdk-4.1.1 fails to compile due to problems with sys/types.h
This is really strange since this originates from glibc.
Koen: Didn't you build an EABI-softfloat toolchain already?

Riku did:
http://dominion.kabel.utwente.nl/koen/cms/using-openembedded-toolchains-in-scratchbox

Hmm... the hpowto does not help much since it does not mention which distribution he used or how his local.conf looked like...

Quoted 2 lines

regards,
Koen

Cheers
nils faerber

Signature · 4 lines
kernel concepts GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          Mob: +49-176-21024535
--
#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nils Faerber schreef:

Quoted 7 lines
Quoted 6 lines · Koen Kooi

Nils Faerber schreef:

Quoted 5 lines
Quoted 5 lines

OK, that was indeed fixed.
But I still have the problem that gcc-cross-sdk-4.1.1 fails to compile due to problems with sys/types.h
This is really strange since this originates from glibc.
Koen: Didn't you build an EABI-softfloat toolchain already?

Quoted 5 lines
Quoted 2 lines

Riku did:
http://dominion.kabel.utwente.nl/koen/cms/using-openembedded-toolchains-in-scratchbox

Hmm... the hpowto does not help much since it does not mention which distribution he used or how his local.conf looked like...

Most likely his local.conf was:

BBFILES = "/somepath/*/*.bb"

DISTRO="angstrom-2007.1"
MACHINE="qemu-arm"

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFWb95MkyGM64RGpERAkzxAKCAAUgKyrEuCPpy/7yznU/RObSvaACdF+yO Vmksz/DMQqrfttOCZDWvzRw=
=+B7s
-----END PGP SIGNATURE-----

#8 lore raw
Quoted 6 lines · Koen Kooi

Most likely his local.conf was:

BBFILES = "/somepath/*/*.bb"

DISTRO="angstrom-2007.1"
MACHINE="qemu-arm"

MACHINE = "qemuarm" ;-)

Richard

#9 lore raw
In reply to Koen Kooi
Quoted 10 lines · Koen Kooi

Nils Faerber schreef:

Quoted 6 lines
Quoted 6 lines

OK, that was indeed fixed.
But I still have the problem that gcc-cross-sdk-4.1.1 fails to compile due to problems with sys/types.h
This is really strange since this originates from glibc.

Koen: Didn't you build an EABI-softfloat toolchain already?

Riku did:
http://dominion.kabel.utwente.nl/koen/cms/using-openembedded-toolchains-in-scratchbox

OK... well we tried both approaches now, the simpler one you mentioned on the list and our own - both failed at the same gcc-sdk compile in libiberty (see my previous log).

I now investigated this a little further..

First of all I think that gcc4-build-sdk.inc has an error. I think that line 3

SRC_URI += 'file://602-sdk-libstdc++-includes.patch;patch=1'

is not needed (anymore) and rather causes do_patch to fail. After fixing that I get to the old point with libiberty, etc...

Then I tried to build gcc-cross target and see: It works!

So I suspect that there is some problem with the gcc-cross-sdk target. But I am too new to OE to be able to fix that, I fear.

So a big please to the maintainer of that target: Could you help me please? I need that compiler ;)

Many thanks!

Oh ... and please have someone review the above gcc4-build-sdk.inc and potentially remove the SRC_URI line...

Quoted 2 lines

regards,
Koen

Cheers
nils faerber

Signature · 4 lines
kernel concepts GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          Mob: +49-176-21024535
--
#10 lore raw

Hi!
I am made one step forward but do not think that it is the right way to do it...
The task-sdk worked to build though meta-sdk still does not. Copying the toolchain out of tmp/cross/ and adding libs from staging seems to work.

But it seems "unclean" to me and involves manual collection of all the bits and pieces.

Still noone knows why meta-sdk fails?

Cheers
nils

Quoted 42 lines · Nils Faerber
Quoted 9 lines · Koen Kooi

Nils Faerber schreef:

Quoted 6 lines
Quoted 6 lines

OK, that was indeed fixed.
But I still have the problem that gcc-cross-sdk-4.1.1 fails to compile due to problems with sys/types.h
This is really strange since this originates from glibc.

Koen: Didn't you build an EABI-softfloat toolchain already?

Riku did:
http://dominion.kabel.utwente.nl/koen/cms/using-openembedded-toolchains-in-scratchbox

OK... well we tried both approaches now, the simpler one you mentioned on the list and our own - both failed at the same gcc-sdk compile in libiberty (see my previous log).

I now investigated this a little further..

First of all I think that gcc4-build-sdk.inc has an error. I think that line 3

SRC_URI += 'file://602-sdk-libstdc++-includes.patch;patch=1'

is not needed (anymore) and rather causes do_patch to fail. After fixing that I get to the old point with libiberty, etc...

Then I tried to build gcc-cross target and see: It works!

So I suspect that there is some problem with the gcc-cross-sdk target. But I am too new to OE to be able to fix that, I fear.

So a big please to the maintainer of that target: Could you help me please? I need that compiler ;)

Many thanks!

Oh ... and please have someone review the above gcc4-build-sdk.inc and potentially remove the SRC_URI line...

Quoted 2 lines

regards,
Koen

Cheers
nils faerber

Signature · 4 lines
kernel concepts GbR      Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          Mob: +49-176-21024535
--