Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401835 - dev-lang/v8: build failure on ~arm, it doesn't detect hardfp
Summary: dev-lang/v8: build failure on ~arm, it doesn't detect hardfp
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-01 18:12 UTC by Fabio Erculiani (RETIRED)
Modified: 2012-08-23 21:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
force enable hardfp patch (v8-arm-enable-hardfp.patch,472 bytes, patch)
2012-02-01 18:42 UTC, Fabio Erculiani (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 18:12:42 UTC
on armv7 hardfloat CHOST, dev-lang/v8 fails to build.
Or better, the QA hook at the end complains about -DUSE_EABI_HARDFLOAT=0 while -mfloat-abi=hard was set.

It looks like v8_use_arm_eabi_hardfloat% in "build/common.gypi" should be set to true when hardfp is in use.

Otoh, I don't know what's the best way to achieve this without hard-patching the file.


Reproducible: Always
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 18:42:29 UTC
Created attachment 300703 [details, diff]
force enable hardfp patch

inherit flag-o-matic

if is-flagq -mfloat-abi=hard; then
		epatch "${FILESDIR}"/v8-arm-enable-hardfp.patch
fi

might be enough
Comment 2 Mike Gilbert gentoo-dev 2012-02-01 19:02:46 UTC
I think we could accomplish the same by adding this to the ebuild:

export GYPFLAGS="v8_use_arm_eabi_hardfloat=true"
Comment 3 SpanKY gentoo-dev 2012-02-01 19:12:27 UTC
that is-flagq check won't work as it ignores default toolchain settings.  really the code should be looking to see if __SOFTFP__ is defined.  v8_use_arm_eabi_hardfloat should be used whenever that isn't defined via `${CC} ${CFLAGS} ...`.
Comment 4 Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 19:22:16 UTC
I think the problem is that we have to pass through GYP.
I'm not really a GYP nor v8 buildsystem expert.
So I'm leaving the correct fix to you (sob).
Comment 5 Mike Gilbert gentoo-dev 2012-02-01 19:27:37 UTC
I'm not really sure why the code uses a made-up macro called "USE_EABI_HARDFLOAT" instead of looking for whatever macro the compiler defines when hardfloat is enabled.

Mike's (vapier) suggestion seems like the way to go.
Comment 6 Fabio Erculiani (RETIRED) gentoo-dev 2012-02-01 19:41:58 UTC
Maybe they want to have another level of indirection of some kind?
It looks quite odd anyway.
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-02-01 20:05:26 UTC
(In reply to comment #3)
> that is-flagq check won't work as it ignores default toolchain settings. 
> really the code should be looking to see if __SOFTFP__ is defined. 
> v8_use_arm_eabi_hardfloat should be used whenever that isn't defined via `${CC}
> ${CFLAGS} ...`.

That makes sense to me. Fabio, could you please notify V8 developers about this? It really works best when person experiencing the issue reports it, and I can take it from that point and work towards an upstream fix (or downstream one, reviewed by upstream).

Here's the mailing list: http://groups.google.com/group/v8-users
And the bug tracker: http://code.google.com/p/v8/issues/list
Comment 8 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-03-14 11:13:47 UTC
@arm please get this fixed or drop your keywords.
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-03-24 10:34:16 UTC
~arm keyword dropped
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-04-10 09:06:51 UTC
(In reply to comment #10)
> Upstream bugs:
> http://code.google.com/p/v8/issues/detail?id=539
> http://code.google.com/p/chromium/issues/detail?id=31274

Thank you, this applies to bug #401827 though and I've made changes there.

If you're interested in getting _this_ bug fixed, please report it upstream and post the link here.
Comment 12 SpanKY gentoo-dev 2012-08-23 21:32:50 UTC
follow ups are being made to Bug 429298 (in the See Also field)