Closed Bug 718161 Opened 13 years ago Closed 11 years ago

Dehydra fails to build against the javascript engine in FF10esr

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: glandium, Unassigned)

Details

Attachments

(1 file)

dehydra_ast.c: In function 'dehydra_makeVar':
dehydra_ast.c:51:21: error: invalid operands to binary == (have 'jsval' and 'jsval')
dehydra_ast.c: In function 'dehydra_initVar':
dehydra_ast.c:127:11: error: invalid operands to binary == (have 'jsval' and 'jsval')
This is just the tip of the iceberg; there's several more in several files. Basically, we need to

s/\([a-z_]*\) == JSVAL_VOID/JSVAL_IS_VOID(\1)/g
s/\([a-z_]*\) != JSVAL_VOID/!JSVAL_IS_VOID(\1)/g
s/\([a-z_]*\) == JSVAL_TRUE/JSVAL_TO_BOOLEAN(\1) == JS_TRUE/g

[and maybe a few others; I'm using trunk spidermonkey right now which... has even more failures]
Considering bug 735599, 10esr should be a baseline we need to keep building against.
Summary: Dehydra fails to build against the javascript engine in FF9 → Dehydra fails to build against the javascript engine in FF10esr
Attached patch Patch v1Splinter Review
With the patch I get the following:

python unit_test_harness.py dehydra "/usr/bin/g++-4.6"
..................xx...................................................
Test Failure: 
    Test command: /usr/bin/gcc-4.6 -c -fplugin=../gcc_dehydra.so -o /dev/null -fplugin-arg-gcc_dehydra-script=test_strict.js onefunc.cc
    Failure msg: Expected 'OK' output; Errors:
 ../libs/xhydra.js:52: JS STRICTJS Exception: ReferenceError: reference to undefined property this._loc
../libs/xhydra.js:52:	#0: print("OK")
./test_strict.js:12:	#1: process_function([object DehydraDecl],[object Array])

Test Failure: 
    Test command: /usr/bin/g++-4.6 -c -fplugin=../gcc_dehydra.so -o /dev/null -fplugin-arg-gcc_dehydra-script=test_strict.js onefunc.cc
    Failure msg: Expected 'OK' output; Errors:
 ../libs/xhydra.js:52: JS STRICTJS Exception: ReferenceError: reference to undefined property this._loc
../libs/xhydra.js:52:	#0: print("OK")
./test_strict.js:12:	#1: process_function([object DehydraDecl],[object Array])


Unit Test Suite Summary:
     69 passed
      2 failed
      0 error(s)

Not sure how to debug this.
Assignee: nobody → mh+mozilla
Assignee: mh+mozilla → nobody
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: