Closed
Bug 734050
Opened 12 years ago
Closed 12 years ago
Build stlport as part of our build process
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla14
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file, 4 obsolete files)
10.45 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
Rationale being that it would then be compiled with the same flags as our code, and most importantly, as the stlport templates we end up compiling as part of our code.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mh+mozilla
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #604181 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #604881 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•12 years ago
|
Attachment #604181 -
Attachment is obsolete: true
Attachment #604181 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #604882 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•12 years ago
|
Attachment #604881 -
Attachment is obsolete: true
Attachment #604881 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #604883 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•12 years ago
|
Attachment #604882 -
Attachment is obsolete: true
Attachment #604882 -
Flags: review?(ted.mielczarek)
Comment 5•12 years ago
|
||
Comment on attachment 604883 [details] [diff] [review] Build stlport as part of our build process Review of attachment 604883 [details] [diff] [review]: ----------------------------------------------------------------- ::: allmakefiles.sh @@ +76,5 @@ > if [ ! "$LIBXUL_SDK" ]; then > + if [ "$STLPORT_SOURCES" ]; then > + add_makefiles " > + build/stlport/Makefile > + build/stlport/stl/config/_android.h Using autoconf to generate non-Makefiles always feels like overkill to me, but I don't have an alternate suggestion that doesn't result in you writing a bunch more lines of code. ::: build/stlport/stl/config/_android.h.in @@ +4,5 @@ > + > +#ifndef mozilla_stl_config__android_h > +#define mozilla_stl_config__android_h > + > +#include "@STLPORT_SOURCES@/stlport/stl/config/_android.h" Absolute-path #include seems weird. Can you use #include_next instead, or am I just being too picky? ::: configure.in @@ +1810,5 @@ > fi > STLPORT_CPPFLAGS="-I$android_ndk/sources/cxx-stl/gnu-libstdc++/include -I$android_ndk/sources/cxx-stl/gnu-libstdc++/libs/$ANDROID_CPU_ARCH/include -D_GLIBCXX_PERMIT_BACKWARD_HASH" > STLPORT_LDFLAGS="-L$android_ndk/sources/cxx-stl/gnu-libstdc++/libs/$ANDROID_CPU_ARCH" > STLPORT_LIBS="-lstdc++" > elif test -e "$android_ndk/sources/cxx-stl/stlport/libs/$ANDROID_CPU_ARCH/libstlport_static.a" ; then We should probably make this check for the source, since we're not intending to use the static library here. @@ +1818,2 @@ > STLPORT_LIBS="-lstlport_static" > elif test -e "$android_ndk/tmp/ndk-digit/build/install/sources/cxx-stl/stlport/libs/$ANDROID_CPU_ARCH/libstlport_static.a" ; then Do we want to combine this block with the previous? (This is presumably a check for an older NDK version.)
Attachment #604883 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Ted Mielczarek [:ted] from comment #5) > > +#include "@STLPORT_SOURCES@/stlport/stl/config/_android.h" > > Absolute-path #include seems weird. Can you use #include_next instead, or am > I just being too picky? #include_next leads to very noisy warnings on Android, and there's no easy way to get rid of them. In all likeliness, this would also break with --enable-warnings-as-errors. > > elif test -e "$android_ndk/sources/cxx-stl/stlport/libs/$ANDROID_CPU_ARCH/libstlport_static.a" ; then > > We should probably make this check for the source, since we're not intending > to use the static library here. Fair enough. > > elif test -e "$android_ndk/tmp/ndk-digit/build/install/sources/cxx-stl/stlport/libs/$ANDROID_CPU_ARCH/libstlport_static.a" ; then > > Do we want to combine this block with the previous? (This is presumably a > check for an older NDK version.) Note that the oldest NDK i have, which is r5c, has the other layout already. I don't know if building stlport from there would work with these older NDKs, which is basically why I left that as is (that is, to not risk breaking something untested)
Comment 7•12 years ago
|
||
Okay. Maybe we should just drop that block and require a non-ancient NDK?
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to Ted Mielczarek [:ted] from comment #7) > Okay. Maybe we should just drop that block and require a non-ancient NDK? How about doing that in a separate bug?
Target Milestone: --- → mozilla13
Version: Trunk → Other Branch
Assignee | ||
Updated•12 years ago
|
Target Milestone: mozilla13 → ---
Version: Other Branch → Trunk
Comment 9•12 years ago
|
||
Fine, be that way! :)
Assignee | ||
Comment 10•12 years ago
|
||
With the discussed change for js/src.
Attachment #605414 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•12 years ago
|
Attachment #604883 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #605414 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4934f8f21328
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4934f8f21328
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Comment 13•12 years ago
|
||
I am unable to build mozilla-central locally on my ubuntu 11.10 x86_64 machine. This worked early friday and I narrowed down the configure.in changes to be this as the root cause. Are there steps to take to build with this change?
Assignee | ||
Comment 14•12 years ago
|
||
(In reply to Joel Maher (:jmaher) from comment #13) > I am unable to build mozilla-central locally on my ubuntu 11.10 x86_64 > machine. This worked early friday and I narrowed down the configure.in > changes to be this as the root cause. > > Are there steps to take to build with this change? Is it failing to configure like bug 738753 ?
Comment 15•12 years ago
|
||
actually it fails exactly like: https://bugzilla.mozilla.org/show_bug.cgi?id=720621
Assignee | ||
Comment 16•12 years ago
|
||
Please file a bug, with your build log, and ndk version.
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
•