Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: 'wtf/spi/cocoa/objcSPI.h' file not found #20

Open
lolobug opened this issue Oct 28, 2018 · 7 comments
Open

Build error: 'wtf/spi/cocoa/objcSPI.h' file not found #20

lolobug opened this issue Oct 28, 2018 · 7 comments
Labels
iOS iOS Specific

Comments

@lolobug
Copy link

lolobug commented Oct 28, 2018

Some build errors when build_jsc_ios called in the jscshim/tools/build_jsc.py

error details:
fatal error: 'wtf/spi/cocoa/objcSPI.h' file not found
#include <wtf/spi/cocoa/objcSPI.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

fatal error: 'mach/mach_exc.defs' file not found
#include <mach/mach_exc.defs>
^~~~~~~~~~~~~~~~~~~~
1 error generated

more infos provided:
xcode: 10.0
mac: 10.13.6
cmake:3.5.1
python: 2.7.10

@lolobug
Copy link
Author

lolobug commented Oct 28, 2018

Solved by including "wtf/spi/cocoa/objcSPI.h" in deps/jscshim/webkit/Source/WTF/wtf/CMakeList.txt

@lolobug lolobug closed this as completed Oct 28, 2018
@lolobug lolobug reopened this Oct 29, 2018
@lolobug
Copy link
Author

lolobug commented Oct 29, 2018

cd /Users/lolo/Documents/node/iOS/bb/node-jsc/deps/jscshim/webkit/WebKitBuild/DerivedSources/WTF && mig -sheader MachExceptionsServer.h MachExceptions.defs
MachExceptions.defs:26:10: fatal error: 'mach/mach_exc.defs' file not found
#include <mach/mach_exc.defs>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
mig: fatal: "MachExceptions.defs", line 2: no SubSystem declaration

this build error still remains.

@lolobug
Copy link
Author

lolobug commented Nov 2, 2018

cd /Users/lolo/Documents/node/iOS/bb/node-jsc/deps/jscshim/webkit/WebKitBuild/DerivedSources/WTF && mig -sheader MachExceptionsServer.h MachExceptions.defs
MachExceptions.defs:26:10: fatal error: 'mach/mach_exc.defs' file not found
#include <mach/mach_exc.defs>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
mig: fatal: "MachExceptions.defs", line 2: no SubSystem declaration

this build error still remains.

It's finally can be ignored or removed...

@lolobug lolobug closed this as completed Nov 2, 2018
@MCE-KobyBo
Copy link
Contributor

Hey, sorry for the late reply, been away for a couple of weeks.
I've noticed the wtf/spi/cocoa/objcSPI.h issue on the v10 branch, but if this is happening on the master branch too, this is a bug. So just to be sure, are you working with the master branch?

@MCE-KobyBo MCE-KobyBo reopened this Nov 3, 2018
@MCE-KobyBo MCE-KobyBo added the iOS iOS Specific label Nov 3, 2018
@lolobug
Copy link
Author

lolobug commented Nov 5, 2018

Hey, sorry for the late reply, been away for a couple of weeks.
I've noticed the wtf/spi/cocoa/objcSPI.h issue on the v10 branch, but if this is happening on the master branch too, this is a bug. So just to be sure, are you working with the master branch?

yes. the master branch.

@0x41c
Copy link

0x41c commented Mar 30, 2022

cd /Users/lolo/Documents/node/iOS/bb/node-jsc/deps/jscshim/webkit/WebKitBuild/DerivedSources/WTF && mig -sheader MachExceptionsServer.h MachExceptions.defs
MachExceptions.defs:26:10: fatal error: 'mach/mach_exc.defs' file not found
#include <mach/mach_exc.defs>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
mig: fatal: "MachExceptions.defs", line 2: no SubSystem declaration
this build error still remains.

It's finally can be ignored or removed...

Hey I'm experiencing this error, how was this resolved on your end?

@0x41c
Copy link

0x41c commented Apr 1, 2022

Huh, it seems like building WTF for compiling JSC with the --only-jsc breaks the build. Omitting that flag resolves the issue I was experiencing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS iOS Specific
Projects
None yet
Development

No branches or pull requests

3 participants