Tagged: build fail source code xcode
- This topic has 12 replies, 3 voices, and was last updated 7 years, 5 months ago by dannychen.
-
AuthorPosts
-
August 27, 2013 at 8:40 pm #1018155jsteffey@hatci.comParticipant
Hi,
So the distribution comes with the OpenEars Xcode project. I opened this project and tried building, but it failed with the following error:
…Xcode/DerivedData/OpenEars-gsiuytklgdgbwwfddmbxhipxcbve/Build/Intermediates/OpenEars.build/Debug-iphoneos/OpenEars.build/Script-8C5DEE2914DABF3500EA965D.sh: line 166: /build_openears.sh: No such file or directory
This is the relevant script source, after it already builds the frameworks:
echo “Building documentation”
/build_openears.sh “OpenEars” ${PROJECT_FILE_PATH} ${BUILT_PRODUCTS_DIR} “A shared-source framework for speech recognition and text to speech” “OpenEars”
echo “Done building documentation”Any ideas why it can’t find the “build_openears.sh”? If I just delete that part of the source script so it doesn’t build the documentation, that won’t affect the rest of the product, right?
August 27, 2013 at 8:45 pm #1018156Halle WinklerPolitepixHi,
Correct, it’s building the framework fine but it can only build all the docs in all their formats on my build server. I can take a look at making the documentation build fail more gracefully than that on other machines, but if you want to avoid it altogether you can build the target “OpenEars No Documentation” instead.
August 27, 2013 at 9:06 pm #1018158jsteffey@hatci.comParticipantOkay, I see. Thanks.
August 29, 2013 at 1:48 pm #1018173Halle WinklerPolitepixOK, in today’s release of OpenEars 1.5.1 I put in a check for the documentation script so that it isn’t attempted to be run on other machines.
November 9, 2016 at 7:35 am #1031269dannychenParticipantHi,
I just met another issue when I tried to build OpenEars.framework.When I try to build OpenEarsDistribution/OpenEars (2.503) in XCode Version 8.1 (8B62). There was an error: ‘stdio.h’ file not found makeheader.c
And I also try to run
$python framework_prep_script.py
Got error:
Traceback (most recent call last):
File “framework_prep_script.py”, line 10, in <module>
if “OpenEarsDistribution/OpenEars” in os.environ[‘PROJECT_DIR’]:
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py”, line 23, in __getitem__
raise KeyError(key)
KeyError: ‘PROJECT_DIR’$python framework_prep_script.py
Got error:
Traceback (most recent call last):
File “framework_script.py”, line 859, in <module>
log_handler.setFormatter(logging.Formatter(“%(name)s (” + os.environ[‘PLATFORM_NAME’] + “): %(levelname)s: %(message)s”))
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py”, line 23, in __getitem__
raise KeyError(key)
KeyError: ‘PLATFORM_NAME’Is it possible to build OpenEars.framework (2.503)?
If so, is there any document? I’ve searched on both website and documents on DownloadOpenEarsDocs.webloc.Thank you.
November 9, 2016 at 8:09 am #1031270Halle WinklerPolitepixI’ll check it out, thanks.
November 9, 2016 at 8:12 am #1031271Halle WinklerPolitepixJust to double-check – you built via Archive rather than Build, is that correct?
November 9, 2016 at 8:22 am #1031273dannychenParticipantThanks for reply.
Yes I built via Archive.
OS: 10.11.5 El Capitan.
November 9, 2016 at 6:44 pm #1031276dannychenParticipantI’ve traced this issue and got some updates.
In framework_prep_scipt.py:
1. Add args ‘-I’, ‘/usr/include’, after clang: {subprocess.check_call([‘clang’, ‘-I’, ‘/usr/include’, …}.
/usr/include is where the system placed stdio.h.2. change args from “OS X SDKs:” to “macOS SDKs:” in
subprocess.Popen([‘xcodebuild -showsdks | awk \’/^$/{p=0};p; /macOS SDKs:/{p=1}\’ | tail -1 | cut -f3′], stdout=subprocess.PIPE, shell=True)
I think it’s related to the new OS name…After the changes, XCode run framework_prep_scipt.py and compile the source code without error.
But I got a new error:
Command ‘[‘xcodebuild’, ‘-project’, …, ‘UFW_MASTER_PLATFORM=iphoneos’, ‘OTHER_CFLAGS=”-fembed-bitcode”‘, ‘install’]’ returned non-zero exit status 65
Command /bin/sh failed with exit code 1`November 9, 2016 at 6:50 pm #1031278dannychenParticipantSorry, update the last part of previous post.
===
But I got a new error during run framework_script.py:Traceback (most recent call last): File "framework_script.py", line 874, in <module> run_build File "framework_script.py", line 818, in run_build run_slave_build File "framework_script.py", line 753, in run_slave_build print_and_call_slave_build File "framework_script.py", line 550, in print_and_call_slave_build raise subprocess.CalledProcessError Command '['xcodebuild', '-project', ..., 'UFW_MASTER_PLATFORM=iphoneos', 'OTHER_CFLAGS="-fembed-bitcode"', 'install']' returned non-zero exit status 65 Command /bin/sh failed with exit code 1
November 10, 2016 at 1:18 pm #1031281Halle WinklerPolitepixHi Danny,
Thanks very much for the great bug report. I’ve solved this by running your alternate version in the case that the first attempt fails, and also have a fix for the second issue so that the build completes, and just need a day or two to test my solution for edge cases and then I’ll push the new version.
November 15, 2016 at 6:08 pm #1031290Halle WinklerPolitepixOK, today’s version 2.504 should build fine in 8.1.
November 23, 2016 at 5:41 am #1031304dannychenParticipantHi,
It works fine.
Thanks for your great help! -
AuthorPosts
- You must be logged in to reply to this topic.