-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Building dart on Mac OS X Lion with xcode 4 #18
Comments
This comment was originally written by [email protected] Set owner to [email protected]. |
We need to evaluate whether we still need to build against 10.5. Set owner to @iposva-google. |
This comment was originally written by [email protected] Most of tests passed after 10.6 build. Just one fail. |
Issue #31 has been merged into this issue. |
This comment was originally written by [email protected] It seems like the workaround doesn't work for all versions of xcode on Lion. I'm using xcode 4.2 and am still having problems, even after the workaround. I believe others are having the same issue. |
I would really appreciate help with OSX Lion. Thanks! |
This comment was originally written by [email protected] If it is any help I get the following error message, when trying to build on Lion with XCode 4.2 and setting the SDK to macosx10.7: svnversion: Verify exit code of build task 'PhaseScriptExecution Script-83F146809089295397E58BF0.sh' ** BUILD FAILED ** The following build commands failed: |
This comment was originally written by [email protected] I'm getting a similar error (I tried the 10.6 fix, that didn't work either, so now using 10.7): [~/Development/ext/google/dart-source/dart]$./tools/build.py --arch=x64 2011-12-30 12:41:03.578 xcodebuild[22379:4003] error: Error Domain=NSPOSIXErrorDomain Code=2 "Non-zero exit code 127 returned from shell command: /Developer/usr/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -x c++ -c /dev/null 2>&1" UserInfo=0x401dad8a0 {NSLocalizedDescription=Non-zero exit code 127 returned from shell command: /Developer/usr/bin/gcc-4.2 -v -E -dM -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -x c++ -c /dev/null 2>&1, NSLocalizedFailureReason=No such file or directory} === BUILD AGGREGATE TARGET js2c OF PROJECT v8 WITH CONFIGURATION Debug_x64 === === BUILD AGGREGATE TARGET d8_js2c OF PROJECT d8 WITH CONFIGURATION Debug_x64 === === BUILD NATIVE TARGET libdart OF PROJECT dart-runtime WITH CONFIGURATION Debug_x64 === === BUILD AGGREGATE TARGET generate_builtin_cc_file OF PROJECT dart-runtime WITH CONFIGURATION Debug_x64 === === BUILD NATIVE TARGET v8_nosnapshot OF PROJECT v8 WITH CONFIGURATION Debug_x64 === === BUILD AGGREGATE TARGET closure_compiler OF PROJECT dart-compiler WITH CONFIGURATION Debug_x64 === clean: rhino: properties: init: compile: compile-most: compile-jdk15: compile: properties: compile: xmlimplsrc-compile: compile: compile-all: compile: jar: rhino-jarjar: Verify exit code of build task 'PhaseScriptExecution Script-83F146809089295397E58BF0.sh' ** BUILD FAILED ** The following build commands failed: |
This comment was originally written by [email protected] Should this bug be closed, I dont find this an issue anymore. The only change that needs to be done now is the following. 19:15:04-adam@Adams-MacBook-Air:~/dart_bleeding/dart/tools --- gyp/configurations_xcode.gypi (revision 7573)
|
This comment was originally written by [email protected] Switching GCC_VERSION does not fix it for me; I still get: Verify exit code of build task 'PhaseScriptExecution Script-85526B89821EAEBE18292E1E.sh' === BUILD NATIVE TARGET libdart_export OF PROJECT dart-runtime WITH CONFIGURATION DebugIA32 === ** BUILD FAILED ** The following build commands failed: Whether or not a workaround exists for my setup, this is a bug for two reasons:
|
This patch works for an XCode 4 + Lion config: https://github.com/kevmoo/dart-repo/commit/3ccbfadc63d7c72c6b9315fe5720b56715e147e7.patch It would be awesome to merge this with the main build scripts. |
This comment was originally written by [email protected] I am getting the same output as comment #8 from above (http://code.google.com/p/dart/issues/detail?id=18#c8 ), even after applying the patch at https://github.com/kevmoo/dart-repo/commit/3ccbfadc63d7c72c6b9315fe5720b56715e147e7.patch Any ideas? |
This comment was originally written by [email protected] Kevin's patch doesn't fix my issue either. Is there any way to get more information out of the build scripts? Is there code I should modify to get the build scripts to print out how far they've progressed? |
This comment was originally written by [email protected] I ran into the same problem. I fixed it by rerunning "gclient sync; gclient runhooks" after adding the llvm version patch above. Since this modifies the gyp file in the project, you have to regenerate the xcode project as well, which I believe one of these does. |
This comment was originally written by [email protected] That appears to have worked! Thanks! |
Tested and verified with Mountain Lion and XCode 4.4 and Kevin's patch. cc @dgrove. |
This depends on http://crbug.com/147515 |
Added this to the M2 milestone. |
This issue was originally filed by [email protected]
What steps will reproduce the problem?
Result:
=== BUILD NATIVE TARGET v8_base OF PROJECT v8 WITH CONFIGURATION Debug_x64 ===
** BUILD FAILED **
The problem is in macosx sdk version. Google Dart needs 10.5 for building, but there are no macosx10.5 sdk in XCode 4 in Lion.
Workaround: specify sdk manually in build.py:
Index: tools/build.py
===================================================================
--- tools/build.py (revision 296)
+++ tools/build.py (working copy)
@@ -106,6 +106,8 @@
if os.path.exists('dart-%s.gyp' % CurrentDirectoryBaseName()):
project_file = 'dart-%s.xcodeproj' % CurrentDirectoryBaseName()
args = ['xcodebuild',
project_file,
'-target',
Full instruction for workaround on Lion:
http://batsuev.com/2011/10/building-google-dart-on-os-x-lion-with-xcode-4/
The text was updated successfully, but these errors were encountered: