Closed
Bug 526446
Opened 15 years ago
Closed 15 years ago
AIX Compilation error for 3.7a1pre source "/home/firefox/mozilla-central/js/src/jsvector.h", line 427.5: 1540-0130 (S) "AP" is not declared
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
Tracking | Status | |
---|---|---|
status1.9.2 | --- | .14-fixed |
status1.9.1 | --- | unaffected |
People
(Reporter: shailen.n.jain, Assigned: ul-mcamafia)
References
Details
(Keywords: verified1.9.2)
Attachments
(1 file)
(deleted),
patch
|
luke
:
review+
christian
:
approval1.9.2.14+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4
While compiling Mozilla Firefox source for 3.7a1pre, getting
the below error.
"/home/firefox/mozilla-central/js/src/jsvector.h", line 427.5: 1540-0130 (S) "AP" is not declared.
"/home/firefox/mozilla-central/js/src/jsvector.h", line 426.1: 1540-0700 (I) The previous message was produced while processing "js::Vector<JSObject *,0,js::SystemAllocPolicy>::Vector(SystemAllocPolicy)".
"/home/firefox/mozilla-central/js/src/jsapi.cpp", line 723.1: 1540-0700 (I) The previous message was produced while processing "JSRuntime::JSRuntime()".
"/home/firefox/mozilla-central/js/src/jsvector.h", line 427.5: 1540-0130 (S) "AP" is not declared.
"/home/firefox/mozilla-central/js/src/jsvector.h", line 426.1: 1540-0700 (I) The previous message was produced while processing "js::Vector<unsigned short,32,js::ContextAllocPolicy>::Vector(ContextAllocPolicy)".
"/home/firefox/mozilla-central/js/src/jsapi.cpp", line 5490.18: 1540-0700 (I) The previous message was produced while processing "JS_Stringify(JSContext *, jsval *, JSObject *, jsval, extern "C" int (*)(const unsigned short *, unsigned int, void *), void *)".
"/home/firefox/mozilla-central/js/src/jscntxt.h", line 1580.44: 1540-1281 (W) "offsetof" cannot be applied to "struct JSContext". It is not a POD (plain old data) type.
gmake[1]: *** [jsapi.o] Error 1
Reproducible: Always
Steps to Reproduce:
1. Build Mozilla Firefox 3.7a1pre build on AIX with Gnome RPMS of 64 bit
version.
2.
3.
Actual Results:
Build fails with the above error.
Expected Results:
No build failure
The patch resolves the compilation error.
Attachment #410199 -
Flags: review?(mak77)
Updated•15 years ago
|
Assignee: nobody → shailen.n.jain
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Updated•15 years ago
|
Attachment #410199 -
Flags: review?(mak77) → review?(shaver)
Comment 2•15 years ago
|
||
Comment on attachment 410199 [details] [diff] [review]
Patch V 1
correcting request
Attachment #410199 -
Flags: review?(shaver) → review?(sayrer)
Can you please review the patch and let me know if anything needs to be changed?
Attachment #410199 -
Flags: review?(sayrer) → review?(brendan)
Comment 6•15 years ago
|
||
Comment on attachment 410199 [details] [diff] [review]
Patch V 1
On it; sorry again for the delays.
Attachment #410199 -
Flags: review?(brendan) → review?(lw)
Comment 7•15 years ago
|
||
For my own education, is there any reason to believe that this isn't an AIX compiler error? If it is a bug, is it solely with the naming of base classes? E.g., if you run the following snippet through the AIX compiler, do you get an error for either or both of the function definitions?
template <class T>
class A : T { A(); void foo(); };
template <class U>
A<U>::A() : U() {}
template <class U>
void A<U>::foo() { U u; }
Thanks!
As for the patch, I'm wondering if, for regularity, we should convert all out-of-body definitions to use the same formal parameter names as the template definition.
Hi Luke Wagner,
I compiled the snippet through AIX compiler, and no errors reported.
Regards,
Shailen
Assignee | ||
Comment 9•15 years ago
|
||
When I compile the snippet I get:
$ /usr/vacpp/bin/xlC -qlanglvl=ansi -o naming.o -c naming.cpp
"naming.cpp", line 2.11: 1540-0198 (W) The omitted keyword "private" is assumed
for base class "T".
"naming.cpp", line 5.13: 1540-0130 (S) "U" is not declared.
$
Comment 10•15 years ago
|
||
(In reply to comment #9)
Uli: Thanks! And does switching the 'U' on lines 4 and 5 to 'T' compile without error?
Assignee | ||
Comment 11•15 years ago
|
||
$ cat naming2.cpp
template <class T>
class A : T { A(); void foo(); };
template <class T>
A<T>::A() : T() {}
template <class U>
void A<U>::foo() { U u; }
$ /usr/vacpp/bin/xlC -qlanglvl=ansi -c naming2.cpp -o naming2.o
"naming2.cpp", line 2.11: 1540-0198 (W) The omitted keyword "private" is assumed for base class "T".
$
I'm using an older compiler version than Shailen because XLC/C++ 9 isn't supported on AIX 5.1.
Here I used the version 6.0.0.7 I always built Mozilla 1.8 Branch with
Comment 12•15 years ago
|
||
Thanks again; that pretty much isolates the error.
Updated•15 years ago
|
Attachment #410199 -
Flags: review?(lw) → review+
Keywords: checkin-needed
Attachment #410199 -
Flags: superreview?(brendan)
Comment 13•15 years ago
|
||
Luke isn't a JS peer, according to http://www.mozilla.org/about/owners.html#javascript, so removing checkin-needed until a JS owner/peer can review the patch.
Component: General → JavaScript Engine
Keywords: checkin-needed
Product: Firefox → Core
QA Contact: general → general
Comment 14•15 years ago
|
||
Reed, Luke's a peer. Someone needs to update despot, 'sall. Can you do it please?
/be
Comment 15•15 years ago
|
||
(In reply to comment #14)
> Reed, Luke's a peer. Someone needs to update despot, 'sall. Can you do it
> please?
I think I'll just give up trying to keep Despot in sync with CVS. *sigh*
Despot account created for Luke, and I've made him a peer of JS.
Keywords: checkin-needed
Updated•15 years ago
|
Attachment #410199 -
Flags: superreview?(brendan)
Comment 16•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Assignee | ||
Comment 17•14 years ago
|
||
Comment on attachment 410199 [details] [diff] [review]
Patch V 1
This bug isn't fixed on mozilla-1.9.2 branch yet.
Attachment #410199 -
Flags: approval1.9.2.8?
Assignee | ||
Updated•14 years ago
|
Hardware: Other → PowerPC
Assignee | ||
Updated•14 years ago
|
Attachment #410199 -
Flags: approval1.9.2.9?
Assignee | ||
Updated•14 years ago
|
Assignee: shailen.n.jain → ul.mcamafia
Assignee | ||
Updated•14 years ago
|
Attachment #410199 -
Flags: approval1.9.2.14?
Assignee | ||
Comment 18•14 years ago
|
||
Renewing approval request for moz-192 branch.
Risc: None.
Fixed on trunk for more than a year now. moz-191 is unaffected.
Assignee | ||
Updated•14 years ago
|
status1.9.1:
--- → unaffected
Comment 19•14 years ago
|
||
Comment on attachment 410199 [details] [diff] [review]
Patch V 1
a=LegNeato for 1.9.2.14. Code freeze for non-blockers is 2011-01-11.
Attachment #410199 -
Flags: approval1.9.2.14? → approval1.9.2.14+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•14 years ago
|
Whiteboard: [attachment 410199 to branch moz-192]
Comment 20•14 years ago
|
||
status1.9.2:
--- → .14-fixed
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Whiteboard: [attachment 410199 to branch moz-192]
Assignee | ||
Updated•14 years ago
|
Keywords: verified1.9.2
You need to log in
before you can comment on or make changes to this bug.
Description
•