Building webkit2-gtk with macports, errors sys/types not found
Your problem is that you have specified a non-existent sysroot directory.

Currently you have specified the following:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk


This is usually due to either not having Xcode installed, or having it installed in the wrong version. Even if Xcode runs, it may not be "installed". Check that the App is in /Applications, if not drag it from wherever you extracted the .xip into the Applications directory.

In your case, I would suggest installing Xcode, if it's not already installed, or update it to the latest version to get the 10.14 SDK.

If you're willing to update Xcode for some reason, you can change your sysroot to match the older version of Xcode like this:

Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk


This path points to the latest installed SDK versions. Hopefully it will be enough to build webkit2, or you will be forced to update Xcode.