Closed Bug 1306719 Opened 8 years ago Closed 8 years ago

Build of MemoryProtectionExceptionHandler.cpp fails on Mac OSX when new cpp files added

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: yury, Unassigned)

References

Details

Attachments

(1 file)

If couple of new source files added to the js/src/asmjs/ the build fails with:

/Users/yury/Work/mozilla-central/js/src/ds/MemoryProtectionExceptionHandler.cpp:132:25: error: use of undeclared
      identifier 'STDERR_FILENO'
    ssize_t ret = write(STDERR_FILENO, aStr, strlen(aStr) + 1);
                        ^
/Users/yury/Work/mozilla-central/js/src/ds/MemoryProtectionExceptionHandler.cpp:505:5: error: unknown type name
      'Thread'
    Thread handlerThread;
    ^

The MemoryProtectionExceptionHandler.cpp was pushed to the different unified build group (and looks like we don't test non-unified build for Mac OSX)
(I did not check the Windows yet, which might have the same issue)
Attachment #8796698 - Flags: feedback?(emanuel.hoogeveen)
Comment on attachment 8796698 [details] [diff] [review]
fix-MemoryProtectionExceptionHandler.patch

Erk, more non-unified bustage? Sorry about that.

I don't have Mac to compile this on locally, and we don't have a non-unified build in automation for OSX, but if this fixes compilation for you then it's fine.

Just did a non-unified build on Windows (was easier than I expected), confirmed nothing is missing there.
Attachment #8796698 - Flags: feedback?(emanuel.hoogeveen) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a68cafd32e5
Fix unified build compilation of MemoryProtectionExceptionHandler.cpp. r=ehoogeveen
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5a68cafd32e5
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: