Opened 6 months ago
Last modified 6 months ago
#71643 new defect
TeXShop @5.48_0 fails to build: xcodebuild command fails with exit code 65
Reported by: | msrski59 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.5 |
Keywords: | Monterey | Cc: | mps@… |
Port: | TeXShop |
Description
On Monetery 12.7.6 with Xcode 14.2
TeXShop @5.48_0 fails to build with this error:
The following build commands failed: CompileC /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48/build/TeXShop.build/Release/TeXShop.build/Objects-normal/x86_64/TSTextView.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48/Sources/TSTextView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'TeXShop' from project 'TeXShop') (1 failure) Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48" && /usr/bin/xcodebuild -UseNewBuildSystem=NO -project "TeXShop.xcodeproj" -target "TeXShop" -configuration Release build INSTALL_PATH=/Applications/MacPorts OBJROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48/build/" SYMROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48/build/" MACOSX_DEPLOYMENT_TARGET=12.0 ARCHS=x86_64 SDKROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY="libstdc++" FRAMEWORK_SEARCH_PATHS=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48 CONFIGURATION_BUILD_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_TeXShop/TeXShop/work/TeXShop-5.48/build CODE_SIGN_IDENTITY= Exit code: 65 Error: Failed to build TeXShop: command execution failed
Log attached.
Attachments (1)
Change History (11)
Changed 6 months ago by msrski59
comment:1 Changed 6 months ago by Schamschula (Marius Schamschula)
comment:2 Changed 6 months ago by msrski59
FYI: I mentioned in closed ticket #71630 that TeXShop @5.48_0 also failed to build on my Sequoia laptop.
Your patch fix solved that problem and TeXShop @5.48_0 now builds on Sequoia without issue.
I can live with TeXShop @5.47_0 on Monterey.
comment:3 Changed 6 months ago by Schamschula (Marius Schamschula)
In my private communications with the developer, he mentioned that he is building under Sequoia. Even though the website mentions backward compatibility, from my past experience, that has not always been true. It had build correctly on Xcode 16.1 under Sonoma, but Xcode 16.2 broke the build and required the patches.
I think the patches may need to be tweaked, as Xcode on Monterey seems tn be mis-parsing the patched file. The problem is that I can't locally test on anything older than Sonoma.
I just don't know what the status is on Ventura. It would be best to fix it at the same for Monterey and Ventura (likely).
BTW, the patch isn't needed for Sequoia, but it is for Sonoma as it can run the current version of Xcode but doesn't have the correct SDK for the new feature. The if statements let Sequoia access what is needed, so it doesn't break anything there.
comment:4 Changed 6 months ago by msrski59
Would it be helpful for you to try patch tweaks on my Monterey box?
The problem is that I am not a developer/hacker/programmer of any sort, so you would have to give me detailed instructions for running test builds. I have never built Unix software except as automated by MacPorts (or fink a long time ago, or Debian Linux even longer ago).
If that would be more trouble than it is worth, never mind. But I'm game if you are.
comment:5 follow-up: 7 Changed 6 months ago by Schamschula (Marius Schamschula)
The problem I have is that I'm not understanding why the if statements are being ignored. The best way to figure that out is to sit in front of a suitably configured machine and throw things at it.
The developer mentioned that some of these API changes are poorly documented by Apple. There always is some guesswork involved.
I think I'll pin to the older version, rather than trying to force the new version to work.
comment:6 Changed 6 months ago by Marius Schamschula <mschamschula@…>
comment:7 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to Schamschula:
The problem I have is that I'm not understanding why the if statements are being ignored.
Which if statements?
comment:8 Changed 6 months ago by Schamschula (Marius Schamschula)
The if statements in patch-Sources-TSTextView.m.diff
.
It is a variation of a set of patches I developed with the upstream developer.
This problem was supposed to have been worked around by
patch-Sources-TSTextView.m.diff
(it works correctly for Sonoma).I don't know what else can be done (other than pinning TeXShop for Monterey to an older version).