Closed Bug 788834 Opened 12 years ago Closed 11 years ago

Upstream uses invalid C++ which newer compilers cannot deal with

Categories

(Firefox OS Graveyard :: GonkIntegration, enhancement, P5)

x86_64
Linux
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 854389

People

(Reporter: hub, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached file include unistd.h (obsolete) —
Emulator arm for b2g failed to build on Fedora 17. Because it hasn't been test on a recent libc.

Attaching patch to sdk/emulator sub tree.
Attached patch include unistd.hSplinter Review
Looks like I couldn't manage to create the patch the first time. Here it is this time.
Attachment #658647 - Attachment is obsolete: true
And the error I get is a missing getopt() and associated symbols.
Current sdk revision is two commits behind aosp/ics-plus-aosp and we hard-coded it in the manifest. https://github.com/mozilla-b2g/android-sdk is long deprecated after switching to B2G-Gingerbread to ICS. We'll need works in both manifests/ and sdk/ to land this. Ask mwu for opinions.
Flags: needinfo?(mwu)
Current sdk revision is two commits behind aosp/ics-plus-aosp and we hard-coded it in the manifest. https://github.com/mozilla-b2g/android-sdk is long deprecated after switching to B2G-Gingerbread to ICS. We'll need works in both manifests/ and sdk/ to land this. Ask mwu for opinions.
Host GCCs newer than 4.6.3 are not supported on ICS based B2G.
Flags: needinfo?(mwu)
Since the build instructions on MDN allow proper building on Fedora 17/18 (with the help of a prebuilt GCC 4.4.7) I think we should close this. See:

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites?redirectlocale=en-US&redirectslug=Firefox_OS%2FFirefox_OS_build_prerequisites#64_bit_install_examples.3A
We should close it when the C++ code is C++ conformant. I know it might take a while with upstream, but the problem is real. It is not just "fancy compilers".
(In reply to Hubert Figuiere [:hub] from comment #8)
> We should close it when the C++ code is C++ conformant. I know it might take
> a while with upstream, but the problem is real. It is not just "fancy
> compilers".

That's valid and correct, but the reality of the situation is that we don't control the code that's broken.  Renaming this bug to match what is keeping it open.

I suspect that the resolution here will be that nothing changes until we're based on JB Gonk.
Severity: normal → enhancement
Priority: -- → P5
Summary: Emulator build fail on Fedora 17 → Upstream uses invalid C++ which newer compilers cannot deal with
(In reply to John Ford [:jhford] -- please use 'needinfo?' instead of a CC from comment #9)
> (In reply to Hubert Figuiere [:hub] from comment #8)
> > We should close it when the C++ code is C++ conformant. I know it might take
> > a while with upstream, but the problem is real. It is not just "fancy
> > compilers".
> 
> That's valid and correct, but the reality of the situation is that we don't
> control the code that's broken.  Renaming this bug to match what is keeping
> it open.
> 
> I suspect that the resolution here will be that nothing changes until we're
> based on JB Gonk.

I actually have patches in bug 854389 waiting for a r? that actually solve the problem. yes we can address them.

Marking as dupe.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: