Skip to contentSkip to conversation

calamari (ppc e500v2) failure

DISCUSSION Tom Rini 3 participants 12 messages May 7, 2010 – May 11, 2010

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#1 lore raw

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

I can also try to kick off a minimal build on monday

Frans

author
#2 lore raw
Quoted 8 lines · Frans Meulenbroeks

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Quoted 8 lines

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10. I'll try an Angstrom build.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
author
#3 lore raw
Quoted 16 lines · Tom Rini
Quoted 15 lines · Frans Meulenbroeks

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10. I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Ubuntu 9.10 x86_64 host

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#4 lore raw
Quoted 29 lines · Tom Rini
Quoted 16 lines · Tom Rini
Quoted 15 lines · Frans Meulenbroeks

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10. I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Quoted 1 line

Ubuntu 9.10 x86_64 host

Could you test with attached gcc patch please. This should fix the undefined symbol error. You could use minimal distro for SPE targets it should work. Please let me know if it works for you.

Thanks
-Khem

Quoted 10 lines
Signature · 8 lines
-- 
Tom Rini <[email protected]>
Mentor Graphics Corporation

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
recipes/gcc/gcc-configure-common.inc +1 -4
index fe8b486..892d684 100644
@@ -21,10 +21,7 @@ OBJC ?= ",objc"
 # hidden symbols in libgcc.a which linker complains
 # when linking shared libraries further in the build like (gnutls)
 
-OPTSPACE_linux-gnuspe ?= ""
-OPTSPACE_linux-uclibcspe ?= ""
-OPTSPACE ?= "--enable-target-optspace"
-
+OPTSPACE = "${@base_contains('TARGET_ARCH', 'powerpc', '', '--enable-target-optspace',d)}"
 # gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
 FORTRAN ?= ",f77"
 LANGUAGES ?= "c,c++${OBJC}${FORTRAN}${JAVA}"
recipes/gcc/gcc-cross-initial.inc +1 -1
index 97002f9..25d7ba5 100644
@@ -12,11 +12,11 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
 		--disable-multilib \
 		--disable-__cxa_atexit \
 		--enable-languages=c \
-		--enable-target-optspace \
 		--program-prefix=${TARGET_PREFIX} \
 		--with-sysroot=${STAGING_DIR_TARGET} \
 		--with-build-sysroot=${STAGING_DIR_TARGET} \
 		${EXTRA_OECONF_INITIAL} \
+		${OPTSPACE} \
 		${@get_gcc_fpu_setting(bb, d)} \
 		${@get_gcc_mips_plt_setting(bb, d)}"
 
recipes/gcc/gcc-cross-intermediate.inc +1 -1
index 0c06d6f..cbc8638 100644
@@ -10,10 +10,10 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
 		--disable-multilib \
 		--disable-threads \
 		--enable-languages=c \
-		--enable-target-optspace \
 		--program-prefix=${TARGET_PREFIX} \
 		--with-sysroot=${STAGING_DIR_TARGET} \
 		--with-build-sysroot=${STAGING_DIR_TARGET} \
+		${OPTSPACE} \
 		${EXTRA_OECONF_INTERMEDIATE} \
 		${@get_gcc_fpu_setting(bb, d)} \
 		${@get_gcc_mips_plt_setting(bb, d)}"
author
#5 lore raw
Quoted 30 lines · Khem Raj
Quoted 29 lines · Tom Rini
Quoted 16 lines · Tom Rini
Quoted 15 lines · Frans Meulenbroeks

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10. I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Quoted 5 lines
Quoted 1 line

Ubuntu 9.10 x86_64 host

Could you test with attached gcc patch please. This should fix the undefined symbol error. You could use minimal distro for SPE targets it should work. Please let me know if it works for you.

This fixes the e300c3 / ppc603e issue, but not the gnutls issue (which is now seen on those platforms). So the general problem of -Os + ppc not being right with GNU.org toolchains is still there, on 4.4.3 at least.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#6 lore raw
Quoted 33 lines · Tom Rini
Quoted 32 lines · Khem Raj
Quoted 30 lines · Tom Rini
Quoted 16 lines · Tom Rini
Quoted 15 lines · Frans Meulenbroeks

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10. I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Ubuntu 9.10 x86_64 host

Quoted 8 lines
Quoted 3 lines

Could you test with attached gcc patch please. This should fix the undefined symbol error. You could use minimal distro for SPE targets it should work. Please let me know if it works for you.

This fixes the e300c3 / ppc603e issue, but not the gnutls issue (which is now seen on those platforms). So the general problem of -Os + ppc not being right with GNU.org toolchains is still there, on 4.4.3 at least.

out of order epilogue/prologue are added in gcc 4.4 so I expect 4.4+ to show this issue. That said, when I tried for calamari from scratch bitbake gnutls it went through fine on Kubuntu 10.04/x86_64 build machine.

Quoted 9 lines
Signature · 8 lines
-- 
Tom Rini <[email protected]>
Mentor Graphics Corporation

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
#7 lore raw
In reply to Tom Rini

2010/5/9 Tom Rini <[email protected]>:

Quoted 29 lines · Tom Rini
Quoted 16 lines · Frans Meulenbroeks
Quoted 15 lines

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10.  I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Quoted 2 lines

Ubuntu 9.10 x86_64 host

I made a mistake when doing the clean build, and kicked it off again. I don't think I saw your error.
In my local.conf I have:

MACHINE = "calamari"
DISTRO = "angstrom-2008.1"
ANGSTROMLIBC = "eglibc"

# e500v2 supports the SPE instruction set.
TARGET_OS = "linux-gnuspe"

Perhaps the TARGET_OS line influences how libgcc is build.

Frans

author
#8 lore raw
Quoted 33 lines · Frans Meulenbroeks

2010/5/9 Tom Rini <[email protected]>:

Quoted 29 lines · Tom Rini
Quoted 16 lines · Frans Meulenbroeks
Quoted 15 lines

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10. I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Quoted 2 lines

Ubuntu 9.10 x86_64 host

Quoted 7 lines

I made a mistake when doing the clean build, and kicked it off again. I don't think I saw your error.
In my local.conf I have:

MACHINE = "calamari"
DISTRO = "angstrom-2008.1"
ANGSTROMLIBC = "eglibc"

This should just be LIBC, btw.

Quoted 2 lines
# e500v2 supports the SPE instruction set.
TARGET_OS = "linux-gnuspe"

This should also be picked out automatically, iirc.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#9 lore raw

2010/5/10 Tom Rini <[email protected]>:

Quoted 7 lines · Frans Meulenbroeks
Quoted 4 lines

MACHINE = "calamari"
DISTRO = "angstrom-2008.1"
ANGSTROMLIBC = "eglibc"

This should just be LIBC, btw

Angstrom has ANGSTROMLIBC

From the code (grepping in the conf dir):
conf/distro/include/angstrom.inc:ANGSTROMLIBC ?= "glibc" conf/distro/include/angstrom.inc:LIBC ?= "${ANGSTROMLIBC}"

No idea why we have ANGSTROMLIBC next to LIBC.

Quoted 5 lines
Quoted 3 lines
# e500v2 supports the SPE instruction set.
TARGET_OS = "linux-gnuspe"

This should also be picked out automatically, iirc.

Hm, It was there in the conf that I got when I took over this project. I seem to recall having tried to build without it, and that it failed, but it is a while ago, so not 100% sure about that.

Frans.

author
#10 lore raw
Quoted 9 lines · Frans Meulenbroeks

2010/5/10 Tom Rini <[email protected]>:

Quoted 7 lines · Frans Meulenbroeks
Quoted 4 lines

MACHINE = "calamari"
DISTRO = "angstrom-2008.1"
ANGSTROMLIBC = "eglibc"

This should just be LIBC, btw

Quoted 7 lines

Angstrom has ANGSTROMLIBC

From the code (grepping in the conf dir):
conf/distro/include/angstrom.inc:ANGSTROMLIBC ?= "glibc" conf/distro/include/angstrom.inc:LIBC ?= "${ANGSTROMLIBC}"

No idea why we have ANGSTROMLIBC next to LIBC.

Because Angstrom initiated the hook and then I made it generic and made all of the distros use it. ANGSTROMLIBC is still there for compatibility.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
# e500v2 supports the SPE instruction set.
TARGET_OS = "linux-gnuspe"

This should also be picked out automatically, iirc.

Hm, It was there in the conf that I got when I took over this project. I seem to recall having tried to build without it, and that it failed, but it is a while ago, so not 100% sure about that.

Well, more accurately, sane-toolchain.inc has a function to get TARGET_OS right and I assume angstrom is either using it or has a similar one.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#11 lore raw
In reply to Frans Meulenbroeks
Quoted 37 lines · Frans Meulenbroeks

2010/5/9 Tom Rini <[email protected]>:

Quoted 29 lines · Tom Rini
Quoted 16 lines · Frans Meulenbroeks
Quoted 15 lines

2010/5/7 Tom Rini <[email protected]>:

Quoted 6 lines

Hey all,

With DISTRO=minimal and MACHINE=calamari, I see the following failure in gnutls (using fe4ff6940b06c73d5b88224b99750bf65accf13d in oe.dev):
http://pastebin.com/cjAStcLb and I confirmed this prior to the RP merge, so this is unrelated.

Which eglibc is that?
The issues I had seemed due to some catch22 situation that I cured; I started a clean build yesterday before I left work & can tell the results on monday.
My distro was angstrom, machine calamari, this uses eglibc 2.10. Is minimal also using 2.10 or is it at 2.11

Quoted 3 lines
Quoted 1 line

I can also try to kick off a minimal build on monday

minimal is eglibc 2.10.  I'll try an Angstrom build.

With Angstrom, gcc-cross-initial fails building libgcc, config.log has:
cc1: error: not configured for ABI: 'spe'
configure:2591: $? = 1
configure: failed program was:
... standard empty program ...
configure:2605: error: cannot compute suffix of object files: cannot compile

Quoted 2 lines

Ubuntu 9.10 x86_64 host

I made a mistake when doing the clean build, and kicked it off again. I don't think I saw your error.
In my local.conf I have:

Quoted 8 lines

MACHINE = "calamari"
DISTRO = "angstrom-2008.1"
ANGSTROMLIBC = "eglibc"

# e500v2 supports the SPE instruction set.
TARGET_OS = "linux-gnuspe"

Perhaps the TARGET_OS line influences how libgcc is build.

yes. if you look at the gcc-configure-cross.inc then it disables optspace for SPE targets. thats why it works for gnuspe but when I did that I only saw the problem on gnuspe and wanted to keep the effect minimal. But it seems now we need this ppc wide thats why the new patch.

Although using -Os in kernel might cause the same problem even if we sort out libgcc because kernel does not use libgcc and I dont know if it implements these functions.

If this causes the issue then we have to do same fix for kernel where we compile kernel with -O2 and not with -Os

Thx
-Khem

Quoted 7 lines

Frans

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