mceSystems / node-jsc

A node.js port to the JavaScriptCore engine and iOS
Other
222 stars 16 forks source link

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

Open lolobug opened 6 years ago

lolobug commented 6 years ago

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 commented 6 years ago

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

lolobug commented 6 years ago

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 commented 6 years ago

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...

MCE-KobyBo commented 6 years ago

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?

lolobug commented 6 years ago

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 commented 2 years ago

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 commented 2 years ago

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.