CONFIG_API, EABI and raise()
Hi.
While working on U-Boot for our board we have found problem related to CONFIG_API option. In general, enabling it causes build failure. Our tests showed that problem exists also on other ARM U-Boot targets (for example davinci_dvevm).
Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
Failing Build log:
arm-ld crt0.o -Ttext 0x1000000 \
-o demo demo.o libglue.a \
-L/home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2 -lgccarm-ld: ERROR: Source
object /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_udivsi3.o)
has EABI version 4, but target demo has EABI version 0
arm-ld: failed to merge target specific data of
file /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_udivsi3.o)
arm-ld: ERROR: Source
object /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_umodsi3.o)
has EABI version 4, but target demo has EABI version 0
arm-ld: failed to merge target specific data of
file /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_umodsi3.o)
arm-ld: ERROR: Source
object /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_dvmd_lnx.o)
has EABI version 4, but target demo has EABI version 0
arm-ld: failed to merge target specific data of
file /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_dvmd_lnx.o) /home/services/eldk/4.2/arm/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_dvmd_lnx.o):
In function `__div0':/opt/eldk/build/arm-2008-11-24/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/gcc-4.2.2/gcc/config/arm/lib1funcs.asm:1000:
undefined reference to `raise'
Signature · 2 lines
Best Regards, Piotr Zi?cik
Quoted 7 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related to
CONFIG_APIoption. In general, enabling it causes build failure. Our tests showed that problem exists also on other ARM U-Boot targets (for exampledavinci_dvevm).Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
sounds more like it's always been a bug, but Jean's cleanup will fix it eventually
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090715/448624d1/attachment.pgp
Quoted 11 lines · On Wednesday 15 July 2009 16:58:40 Mike Frysinger wrote:
Quoted 7 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related to
CONFIG_APIoption. In general, enabling it causes build failure. Our tests showed that problem exists also on other ARM U-Boot targets (for exampledavinci_dvevm).Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
sounds more like it's always been a bug, but Jean's cleanup will fix it eventually
That's my understanding too.
I vote for accepting Jean-Christophe's libgcc patches in the latest version. They definitely fix some ugly problems seen on ARM (build failures, etc) and make life easier.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
Dear Stefan Roese,
Quoted 4 lines · In message <[email protected]> you wrote:
I vote for accepting Jean-Christophe's libgcc patches in the latest version. They definitely fix some ugly problems seen on ARM (build failures, etc) and make life easier.
They have been rejected, and I will not acept them in their current form. See the previous diuscussion about the subject.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality. -- Albert Einstein
Quoted 9 lines · Mike Frysinger
Quoted 8 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related to
CONFIG_APIoption. In general, enabling it causes build failure. Our tests
showed that problem exists also on other ARM U-Boot targets (for exampledavinci_dvevm).
Quoted 6 lines
Quoted 2 lines
Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
sounds more like it's always been a bug, but Jean's cleanup will fix it
eventually
CONFIG_API worked fine for ARM builds some time ago, and this breakage seems like a recent development.
Rafal
Hi Wolfgang,
Quoted 6 lines · On Wednesday 15 July 2009 17:12:57 Wolfgang Denk wrote:
Quoted 3 lines
I vote for accepting Jean-Christophe's libgcc patches in the latest version. They definitely fix some ugly problems seen on ARM (build failures, etc) and make life easier.
They have been rejected, and I will not acept them in their current form. See the previous diuscussion about the subject.
What a pity! :-(
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
Quoted 7 lines · On Wednesday 15 July 2009 11:15:46 Rafal Jaworowski wrote:
Quoted 6 lines · Mike Frysinger
Quoted 5 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related to
CONFIG_APIoption. In general, enabling it causes build failure. Our tests showed that problem exists also on other ARM U-Boot targets (for exampledavinci_dvevm).
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
sounds more like it's always been a bug, but Jean's cleanup will fix it eventually
CONFIG_APIworked fine for ARM builds some time ago, and this breakage seems like a recent development.
or, it still works fine if your toolchain doesnt suck and isnt broken -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090715/1ca79592/attachment.pgp
Quoted 12 lines · Mike Frysinger
Quoted 11 lines · On Wednesday 15 July 2009 11:15:46 Rafal Jaworowski wrote:
Quoted 10 lines · Mike Frysinger
Quoted 8 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related to
CONFIG_APIoption. In general, enabling it causes build failure. Our tests showed that problem exists also on other ARM U-Boot targets
(for exampledavinci_dvevm).Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
sounds more like it's always been a bug, but Jean's cleanup will fix it eventually
CONFIG_APIworked fine for ARM builds some time ago, and this breakage
seems like a recent development.or, it still works fine if your toolchain doesnt suck and isnt broken
The toolchain is ELDK 4.2 and has worked fine for longer time.
Rafal
Hi Rafal,
Quoted 16 lines · On Thursday 16 July 2009 10:37:34 Rafal Jaworowski wrote:
Quoted 15 lines · Mike Frysinger
Quoted 14 lines · On Wednesday 15 July 2009 11:15:46 Rafal Jaworowski wrote:
Quoted 12 lines · Mike Frysinger
Quoted 8 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related to
CONFIG_APIoption. In general, enabling it causes build failure. Our tests showed that problem exists also on other ARM U-Boot targets
(for exampledavinci_dvevm).Do you think that this problem may be caused by your libgcc-related cleanups ? If so, do you have any idea how to fix it ?
sounds more like it's always been a bug, but Jean's cleanup will fix it eventually
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
CONFIG_APIworked fine for ARM builds some time ago, and this breakage
seems like a recent development.or, it still works fine if your toolchain doesnt suck and isnt broken
The toolchain is ELDK 4.2 and has worked fine for longer time.
Just to make it clear: The libgcc removal patches for ARM from Jean-Christophe are not added yet. So if you see a problem with EABI etc, some other patches have to be the reason for this. And very likely Jean-Christophe's patches could fix the problems.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
Hi Stefan,
Quoted 30 lines · Stefan Roese
Quoted 20 lines · On Thursday 16 July 2009 10:37:34 Rafal Jaworowski wrote:
Quoted 19 lines · Mike Frysinger
Quoted 18 lines · On Wednesday 15 July 2009 11:15:46 Rafal Jaworowski wrote:
Quoted 16 lines · Mike Frysinger
Quoted 11 lines · On Tuesday 14 July 2009 09:47:26 Piotr Zi?cik wrote:
While working on U-Boot for our board we have found problem related
toCONFIG_APIoption. In general, enabling it causes build failure.
Our tests showed that problem exists also on other ARM U-Boot targets
(for exampledavinci_dvevm).Do you think that this problem may be caused by your libgcc- related
cleanups ? If so, do you have any idea how to fix it ?sounds more like it's always been a bug, but Jean's cleanup will fix
it eventuallyQuoted 8 lines
Quoted 6 lines
Quoted 3 lines
CONFIG_APIworked fine for ARM builds some time ago, and this breakage
seems like a recent development.or, it still works fine if your toolchain doesnt suck and isnt broken
The toolchain is ELDK 4.2 and has worked fine for longer time.
Quoted 7 lines
Just to make it clear: The libgcc removal patches for ARM from Jean- Christophe
are not added yet. So if you see a problem with EABI etc, some other patches
have to be the reason for this. And very likely Jean-Christophe's patches
could fix the problems.
Thanks for pointing this out, we'll look into it some more (I'm all for removing libgcc dependency, but was under the impression that parts of this rework was already included in main line, and thought there might be some loose ends or so).
Rafal
Dear Stefan Roese,
Quoted 3 lines · In message <[email protected]> you wrote:
Just to make it clear: The libgcc removal patches for ARM from Jean-Christophe are not added yet. ...
Just to make it clear: The libgcc removal patches for ARM will never be added - at least not in their current form.
Quoted 3 lines
... So if you see a problem with EABI etc, some other patches
have to be the reason for this. And very likely Jean-Christophe's patches could fix the problems.
Instead af waiting for some potetnial fix that mauy or may not accepted at an unknown (but later) time, we should focus on identifying the patches that caused the problem, and resolve the problem there.
It makes no sense to introduce breakage not fix it but blame libgcc for it and wait for a completely unrelated, bigger change to happen.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Few people do business well who do nothing else.
-- Philip Earl of ChesterfieldWednesday 15 July 2009 18:09:30 Mike Frysinger napisa?(a):
Quoted 5 lines
Quoted 2 lines
CONFIG_APIworked fine for ARM builds some time ago, and this breakage seems like a recent development.or, it still works fine if your toolchain doesnt suck and isnt broken -mike
I have done some research and mike is right. We are using ELDK 4.2 which provides gnueabi compiler only. While compilng U-Boot, -mabi=apcs-gnu switch forces APCS and as U-Boot uses this ABI.
However API demo application requires libgcc, which is avaible in gnueabi version only and cannot be linked with objects, which use APCS.
Demo application is linked correctly on ELDK 4.1, which does not provide gnueabi tollchain.
Signature · 2 lines
Best Regards, Piotr Zi?cik