Closed
Bug 1275531
Opened 8 years ago
Closed 8 years ago
Undefined math functions |fabsf|, |acosf|, et al in stlport headers
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1276927
People
(Reporter: tzimmermann, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
788 bytes,
text/plain
|
Details |
m-c is 298654:5511d54a3f17. Building on B2G gives the following errors: In file included from ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cstdlib.h:169:0, from ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/cstdlib:33, from ../../../config/system_wrappers/cstdlib:3, from ../../../dist/include/mozilla/mozalloc.h:21, from ../../../dist/include/nscore.h:20, from ../../../dist/include/nsStringFwd.h:12, from ../../../dist/include/nsAString.h:11, from ../../../dist/include/nsSubstring.h:10, from ../../../dist/include/nsString.h:12, from ../../../dist/include/nsStringGlue.h:18, from ../../../../../hg.mozilla.org/mozilla-central/intl/locale/nsIPlatformCharset.h:9, from ../../../../../hg.mozilla.org/mozilla-central/intl/locale/unix/nsAndroidCharset.cpp:6: ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h: In function 'float abs(float)': ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h:427:1: error: '::fabsf' has not been declared _STLP_DEF_MATH_INLINE(abs, fabs) ^ ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h: In function 'float acos(float)': ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h:432:1: error: '::acosf' has not been declared _STLP_DEF_MATH_INLINE(acos, acos) ^ ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h: In function 'float asin(float)': ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h:433:1: error: '::asinf' has not been declared _STLP_DEF_MATH_INLINE(asin, asin) ^ ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h: In function 'float atan(float)': ../../../../../hg.mozilla.org/mozilla-central/build/stlport/stlport/stl/_cmath.h:434:1: error: '::atanf' has not been declared _STLP_DEF_MATH_INLINE(atan, atan) ^ This is probably fallout from recent changes in the build scripts.
Comment 2•8 years ago
|
||
if so, then we could temporarily use --with-android-cxx-stl=mozstlport ?
Comment 3•8 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #2) > if so, then we could temporarily use --with-android-cxx-stl=mozstlport ? It's not helping but I might have a local change that helps :)
Comment 4•8 years ago
|
||
So far it seems to be building, I am testing this.
Comment 5•8 years ago
|
||
Comment on attachment 8757922 [details]
hack
I got tricked, this is not helping anything.
Attachment #8757922 -
Attachment is obsolete: true
Comment 6•8 years ago
|
||
this one builds a gecko, not tested running it yet.
Comment 7•8 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #6) > Created attachment 8757964 [details] > new hack > > this one builds a gecko, not tested running it yet. Devices boots, completes FTU and can take pics with Camera app.
Comment 10•8 years ago
|
||
I'm trying to use llvm-libc++ as we have on android, but I have no idea if it's a legit fix
Reporter | ||
Comment 11•8 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #10) > I'm trying to use llvm-libc++ as we have on android, but I have no idea if > it's a legit fix FYI, I've been working on fixes to build B2G with Android's build scripts and NDK. I'll probably upload some patches soon.
Reporter | ||
Comment 12•8 years ago
|
||
That also fixes this problem with the math functions.
Reporter | ||
Comment 13•8 years ago
|
||
I'm closing this as duplicated as the problem has been fixed by the other bug's patch set.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•