Closed Bug 996225 Opened 12 years ago Closed 10 years ago

gcc 4.9 build error: ScopeObject.h:907:39: error: specialization of 'bool JSObject::is() const [with T = js::StaticBlockObject]' after instantiation

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dholbert, Unassigned)

Details

Attachments

(1 file)

STR: 1. Install a GCC 4.9 snapshot.* 2. Try to compile mozilla-central. ACTUAL RESULTS: Several instances of this build error: { js/src/vm/ScopeObject.h:907:39: error: specialization of 'bool JSObject::is() const [with T = js::StaticBlockObject]' after instantiation } EXPECTED RESULTS: No build error. Source reference: http://mxr.mozilla.org/mozilla-central/source/js/src/vm/ScopeObject.h?rev=539b1a125f71&mark=912-917#912 NOTE: If I delete this function definition (the highlighted region in the MXR link above), then I can build js/src successfully (no other errors there). *One way to get gcc 4.9: Install Ubuntu 14.04 (currently in final beta), and 'sudo apt-get install gcc-snapshot', and add this to your .mozconfig: export CC=/usr/lib/gcc-snapshot/bin/gcc export CXX=/usr/lib/gcc-snapshot/bin/g++
Just for the sake of illustration (and to aid anyone else trying to build w/ GCC 4.9), here's a hackaround that drops this function, which lets me get past this build error.
I'm assuming this problem is long gone now? (At least, I've been compiling with gcc 4.9.1.)
Flags: needinfo?(dholbert)
I've been using clang recently, but I'm pretty sure I've successfully compiled with GCC 4.9 at some point since this bug was filed. So, I think this is WFM (particularly given that you can build w/ gcc 4.9.1)
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(dholbert)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: