AIX Compilation error for 3.7a1pre source "js/src/jsgc.cpp, line 2850.17: 1540-0274 (S) The name lookup for "FinalizeGCThing" did not find a declaration

RESOLVED FIXED in Firefox 3.7a1

Status

()

Firefox
General
--
major
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Shailen, Assigned: Shailen)

Tracking

unspecified
Firefox 3.7a1
Other
AIX
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
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/jsgc.cpp", line 2850.17: 1540-0274 (S) The name lookup for "FinalizeGCThing" did not find a declaration.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2792.1: 1540-0700 (I) The previous message was produced while processing "FinalizeArenaList<JSString>(JSContext *, unsigned int, JSGCArenaInfo **)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 3224.9: 1540-0700 (I) The previous message was produced while processing "js_GC(JSContext *, JSGCInvocationKind)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-0274 (S) The name lookup for "FinalizeGCThing" did not find a declaration.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2792.1: 1540-0700 (I) The previous message was produced while processing "FinalizeArenaList<JSXML>(JSContext *, unsigned int, JSGCArenaInfo **)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 3218.5: 1540-0700 (I) The previous message was produced while processing "js_GC(JSContext *, JSGCInvocationKind)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-0274 (S) The name lookup for "FinalizeGCThing" did not find a declaration.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2792.1: 1540-0700 (I) The previous message was produced while processing "FinalizeArenaList<JSFunction>(JSContext *, unsigned int, JSGCArenaInfo **)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 3216.5: 1540-0700 (I) The previous message was produced while processing "js_GC(JSContext *, JSGCInvocationKind)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-0274 (S) The name lookup for "FinalizeGCThing" did not find a declaration.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2850.17: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 2792.1: 1540-0700 (I) The previous message was produced while processing "FinalizeArenaList<JSObject>(JSContext *, unsigned int, JSGCArenaInfo **)".
"/home/firefox/mozilla-central/js/src/jsgc.cpp", line 3215.5: 1540-0700 (I) The previous message was produced while processing "js_GC(JSContext *, JSGCInvocationKind)".
"/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]: *** [jsgc.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
(Assignee)

Updated

8 years ago
OS: Other → AIX
(Assignee)

Comment 1

8 years ago
Created attachment 410167 [details] [diff] [review]
Patch V 1

I checked with compiler team for this issue and below is the explanation I
received for the compiler behaviour.

' In the C++ Standard (ISO/IEC 14882), section 14.6.4.2 "Candidate functions"
describes that: for an unqualified function call that depends on a template
parameter, only function declarations with external linkage from the template
definition context should be found. 

 In this scenario the "static" function results in internal linkage and
therefore cannot be found. 

One solution is to make the function non-static by removing "static".

Alternatively we may make the function-call qualified. ' 

The patch submitted has taken alternate approach of making the function-call
qualified.
Attachment #410167 - Flags: review?(mak77)
Comment on attachment 410167 [details] [diff] [review]
Patch V 1

I can't review code in js src.
I'm forwarding to Shaver, feel free to forward again in case i did a bad choice.
Attachment #410167 - Flags: review?(mak77) → review?(shaver)

Updated

8 years ago
Assignee: nobody → shailen.n.jain
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment on attachment 410167 [details] [diff] [review]
Patch V 1

correcting request
Attachment #410167 - Flags: review?(shaver) → review?(sayrer)

Updated

8 years ago
Attachment #410167 - Flags: review?(sayrer) → review+
http://hg.mozilla.org/mozilla-central/rev/4d6da2176009
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
You need to log in before you can comment on or make changes to this bug.