Closed Bug 812696 Opened 12 years ago Closed 12 years ago

compile error in jsscript.h : size of array ‘moz_static_assert96’ is negative

Categories

(Core :: JavaScript Engine, defect)

Other
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 816250

People

(Reporter: stevensn, Unassigned)

References

Details

(Whiteboard: [js:p2])

Attachments

(1 file)

Attached file jspadding
User Agent: Mozilla/5.0 (X11; Linux ppc; rv:18.0) Gecko/18.0 Firefox/18.0
Build ID: 20121105181641

Steps to reproduce:

I tried to build mozilla-central on my ppc32 / Linux system.


Actual results:

/usr/bin/ccache c++ -o jsalloc.o -c  -fvisibility=hidden -DENABLE_TYPEDARRAY_MOVE -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT -DEXPORT_JS_API -DJS_HAS_CTYPES -DDLL_PREFIX=\"lib\" -DDLL_SUFFIX=\".so\" -DUSE_ZLIB -Ictypes/libffi/include -I.  -I/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/../../mfbt/double-conversion -I/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src -I. -I./../../dist/include  -I/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/build-output/dist/include/nspr      -I/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src -I/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/assembler -I/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/yarr  -fPIC  -pedantic -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align -Wno-long-long -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe  -DNDEBUG -DTRIMMED -g -O3 -freorder-blocks  -fomit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1   -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsalloc.o.pp  /media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/jsalloc.cpp
In file included from /media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/jsfun.h:17,
                 from /media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/vm/Stack.h:12,
                 from /media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/jscntxt.h:35,
                 from /media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/jsalloc.cpp:10:
/media/nfs/usb_drive_src/firefox/mozilla-central-hg/src/js/src/jsscript.h:923: error: size of array ‘moz_static_assert96’ is negative
make[5]: *** [jsalloc.o] Error 1


It looks like 
changeset:   113166:0a7a2c6d72de
user:        Nicholas D. Matsakis <nmatsakis@mozilla.com>
date:        Tue Nov 13 18:58:48 2012 -0500
summary:     Bug 781602 - Permit multiple ion compilation modes. r=dvander

added to the size of the type and additional padding is now required when not compiling with ION Monkey.





Expected results:

It should have compiled.
The attached patch adds in extra padding when JS_METHODJIT is undefined
Assignee: nobody → general
Blocks: 781602
Status: UNCONFIRMED → NEW
Component: Untriaged → JavaScript Engine
Ever confirmed: true
Product: Firefox → Core
Version: 18 Branch → Trunk
Whiteboard: [js:p2]
Attachment #682683 - Flags: review?(wmccloskey)
Bug 816250 has a fix for that. I can build central and aurora with that patch.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Comment on attachment 682683 [details]
jspadding

It sounds like this was fixed in a different way.
Attachment #682683 - Flags: review?(wmccloskey)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: