All of lore.kernel.org
 help / color / mirror / Atom feed
* do_compile of gcc-cross-sdk-4.5 fails with -mfloat-abi=hard
@ 2011-03-29 13:33 Julian Pietron
  2011-03-29 14:22 ` Julian Pietron
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Julian Pietron @ 2011-03-29 13:33 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

 Hallo,

 I encountered a problem on bitbaking meta-toolchain for a Cortex A8 CPU 
 with hardfp enabled. I'm using a modified cm-t35 machine which enables 
 ARM_FP_MODE="hardfp" to enforce using the hardware FPU. Up to 
 compilation of gcc-cross-sdk-4.5 everything is fine, but the build 
 process fails on linking some files to libgcc_s.so.1.tmp, please see 
 attached log.do_compile for more information.
 Currently I'm trying to build with ARM_FP_MODE="softfp" to see whether 
 the problem persists, but I don't think so as it seems to be related to 
 the VFP instructions. My guess is that somewhere in the build process 
 the TARGET_CC_ARCH flags are not applied where they should have been 
 applied.

 Thanks for your help,
 Julian


[-- Attachment #2: log.do_compile.16581.bz2 --]
[-- Type: application/x-bzip2, Size: 32500 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: do_compile of gcc-cross-sdk-4.5 fails with -mfloat-abi=hard
@ 2011-03-29 23:20 Julian Pietron
  0 siblings, 0 replies; 8+ messages in thread
From: Julian Pietron @ 2011-03-29 23:20 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]


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

I've appended a patch for gcc-configure-sdk.inc that fixes the problem
for me and builds a working toolchain. It is based on my assumption
that somewhere TARGET_CC_ARCH had been left out.

Best Regards,
Julian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNkmkjAAoJENidYKvYQHlQwmkQAMNjNg/WrG1rxm/vsMFhguGt
ZVonT4sngk18gZ5DsrZhfVkxwz2WCnRbM9rR/pb9Mfqq9e6YN580QKXjdUUgB/EW
bf1hrn7w7YFlWTgrBEbLBsiVeX2ndSdPbsoyL08HDrhL5+I7UEWaXWpSuO+g5Dqa
iOTr/iWnFsw6C91ZsxCkD9feEpCKyRpaO75Hj/ljUpz325uUv5a5aiW7yx96A0vd
UxdyDMLPTBjA0x8ULSSAiac46ZhXQmULSRecTrNlZ3N45XWdpZBeeDPoY3yHyNve
3b/knLHDvNW7dO7w8D7pkjMBI6Y5Fz5aM8pA25Hl+u9OHV6qyU1wa+qhNuOJuNdG
OXftJ+4MoUOzHJm0y/hTew+QAV+8k9P7YtISZuc1c7ZCNeRzml3kWGHXtzGEsceH
Qt9ZPjD3028m9xABBsJFb1vPRu66lhCxNoE5gBVX4GDKUXfltpmIZbGBzD1S3yxD
Ray+rjKDQpmFe0mn7t9SmTWTpvcGjZp5RsApIucWgEN5qJDSwKTq1QhK3v2hn1o1
VObbjcoDkPpkYzOgIb9LUnGAo6WXQ5Vh1unW2BW3nOfL4b9WTmKzF+P/Mw2g4wJw
cL2hEODdErqy59yU2X0ujE2hYKbOJcaNtoJuZybwrfZQUp2rmP092vWX5D+IEhwK
Hlx7N9Raz/hIqjCpQLeC
=UACM
-----END PGP SIGNATURE-----


[-- Attachment #2: build-gcc-cross-sdk-hardfp.patch --]
[-- Type: text/plain, Size: 695 bytes --]

*** release-2011.03/recipes/gcc/gcc-configure-sdk.inc	2011-03-01 22:03:49.000000000 +0100
--- openembedded/recipes/gcc/gcc-configure-sdk.inc	2011-03-30 00:03:53.238003541 +0200
***************
*** 24,30 ****
  #
  # We need to override this and make sure the compiler can find staging
  #
! export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET}"
  
  do_configure_prepend (){
          # Make sure we use GMP/MPFR statically
--- 24,30 ----
  #
  # We need to override this and make sure the compiler can find staging
  #
! export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} ${TARGET_CC_ARCH}"
  
  do_configure_prepend (){
          # Make sure we use GMP/MPFR statically

[-- Attachment #3: 0xD8407950.asc --]
[-- Type: application/pgp-keys, Size: 9861 bytes --]

[-- Attachment #4: build-gcc-cross-sdk-hardfp.patch.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

[-- Attachment #5: 0xD8407950.asc.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

[-- Attachment #6: 0xD8407950.asc --]
[-- Type: application/pgp-keys, Size: 9859 bytes --]

[-- Attachment #7: build-gcc-cross-sdk-hardfp.patch.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

[-- Attachment #8: 0xD8407950.asc.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

[-- Attachment #9: build-gcc-cross-sdk-hardfp.patch.sig.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

[-- Attachment #10: 0xD8407950.asc.sig.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

[-- Attachment #11: 0xD8407950.asc.sig --]
[-- Type: application/pgp-signature, Size: 543 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-29 23:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 13:33 do_compile of gcc-cross-sdk-4.5 fails with -mfloat-abi=hard Julian Pietron
2011-03-29 14:22 ` Julian Pietron
2011-03-29 21:15 ` Julian Pietron
2011-03-29 21:54 ` Julian Pietron
2011-03-29 22:39   ` Khem Raj
2011-03-29 23:15     ` Julian Pietron
2011-03-29 22:05 ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2011-03-29 23:20 Julian Pietron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.