Closed Bug 520623 Opened 16 years ago Closed 16 years ago

Building dehdyra against SpiderMonkey trunk fails

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

1.9.1 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: humph, Assigned: taras.mozilla)

References

Details

Attachments

(1 file)

Trying to build dehydra today with SpiderMonkey fails as follows: cc -MD -g3 -Wall -fPIC -DXP_UNIX -DIN_GCC -DHAVE_CONFIG_H -I/var/www/html/dxr/tools/gcc-dehydra/gcc-build/gcc -I/var/www/html/dxr/tools/gcc-dehydra/gcc-4.3.0/gcc -I/var/www/html/dxr/tools/gcc-dehydra/gcc-4.3.0/gcc/. -I/var/www/html/dxr/tools/gcc-dehydra/gcc-4.3.0/gcc/../include -I/var/www/html/dxr/tools/gcc-dehydra/gcc-4.3.0/gcc/../libcpp/include -I/var/www/html/dxr/tools/gcc-dehydra/gcc-4.3.0/gcc/../libdecnumber -I/var/www/html/dxr/tools/gcc-dehydra/gcc-4.3.0/gcc/../libdecnumber/bid -I/var/www/html/dxr/tools/gcc-dehydra/gcc-build/libdecnumber -I/var/www/html/dxr/tools/gcc-dehydra/gcc-build -I../../SpiderMonkey/include/js -I/var/www/html/dxr/tools/SpiderMonkey/lib -I//home/dave/local/include/js/ -c dehydra_plugin.c In file included from ../../SpiderMonkey/include/js/jsapi.h:50, from cp-tree-jsapi-workaround.h:6, from gcc_cp_headers.h:26, from dehydra_plugin.c:3: ../../SpiderMonkey/include/js/jsutil.h:186:12: error: attempt to use poisoned "malloc" ../../SpiderMonkey/include/js/jsutil.h:192:12: error: attempt to use poisoned "calloc" ../../SpiderMonkey/include/js/jsutil.h:198:12: error: attempt to use poisoned "realloc" make: *** [dehydra_plugin.o] Error 1 ERROR - Dehydra build failed, aborting.
Blocks: 489834
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Reopening: This is still a problem with gcc 4.5 which does not have your patch applied. Fixing this in dehydra seems like a better solution.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #2) > Reopening: This is still a problem with gcc 4.5 which does not have your patch > applied. Fixing this in dehydra seems like a better solution. Patch would be appreciated. You are right about my patch to gcc loosing momentum. I'm not super-excited about fighting gcc's poison policies if we can fix this within dehydra.
Someone on the gcc mailing list suggested simply including jsapi before gcc headers, which seems to work for me where i have commented out / moved some includes. I'm mainly worried about the stuff mentioned in cp-tree-jsapi-workaround.h which I am unable to test. Will clean the patch up a bit and attach it later.
Blocks: 527205
This gets dehydra compiling on gcc 4.5, treehydra still fails due to bug 510190. I'm unable to test with apples gcc 4.2 so someone else would need to verify that.
Attachment #410949 - Flags: review?(tglek)
Comment on attachment 410949 [details] [diff] [review] include reordering [pushed: comment 7] Thanks. Lets focus on getting Dehydra going 100%, Treehydra will be easier to do later once gcc source is more or less stable
Attachment #410949 - Flags: review?(tglek) → review+
Attachment #410949 - Attachment description: include reordering → include reordering [pushed: comment 7]
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
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: