Opened 8 years ago

Closed 7 years ago

#33013 closed defect (fixed)

Platypus build fails: error: cannot use '@try' with Objective-C exceptions disabled [3]

Reported by: wroberts@… Owned by: tsupplis@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: Platypus

Description (last modified by ryandesign (Ryan Schmidt))

When I try to `port install platypus', the build fails:

--->  Computing dependencies for platypus
--->  Fetching archive for platypus
--->  Attempting to fetch platypus-4.4_0.darwin_11.i386.tbz2 from http://packages.macports.org/platypus
--->  Fetching platypus
--->  Verifying checksum(s) for platypus
--->  Extracting platypus
--->  Configuring platypus
--->  Building platypus
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for platypus is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/main.log
Error: Status 1 encountered during processing.

The relevant lines in the log file seem to be

:info:build CompileC build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/UKKQueue.o PlatypusApplication/UKKQueue/UKKQueue.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source
:info:build     setenv LANG en_US.US-ASCII
:info:build     /Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wunused-function -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -fno-objc-exceptions -fstrict-aliasing -mmacosx-version-min=10.7 -msse3 -mssse3 -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-generated-files.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-own-target-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-all-target-headers.hmap -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-project-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources/i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment -include /var/folders/qc/r3jql22x7619bpq7skqm9vk80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/Platypus_Prefix-eyidmvbqattlycfuymoanmwasybo/Platypus_Prefix.pch -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/UKKQueue.d -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/PlatypusApplication/UKKQueue/UKKQueue.m -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/UKKQueue.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/PlatypusApplication/UKKQueue/UKKQueue.m:349:3: error: cannot use '@try' with Objective-C exceptions disabled [3]
:info:build                  NS_DURING
:info:build                  ^
:info:build /System/Library/Frameworks/Foundation.framework/Headers/NSException.h:67:20: note: instantiated from:
:info:build  #define NS_DURING               @try {
:info:build                                  ^
:info:build 1 error generated.
:info:build 
:info:build CompileC build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STUtil.o Shared/STUtil.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source
:info:build     setenv LANG en_US.US-ASCII
:info:build     /Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wunused-function -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -fno-objc-exceptions -fstrict-aliasing -mmacosx-version-min=10.7 -msse3 -mssse3 -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-generated-files.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-own-target-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-all-target-headers.hmap -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-project-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources/i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment -include /var/folders/qc/r3jql22x7619bpq7skqm9vk80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/Platypus_Prefix-eyidmvbqattlycfuymoanmwasybo/Platypus_Prefix.pch -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STUtil.d -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/Shared/STUtil.m -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STUtil.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/Shared/STUtil.m:116:12: warning: 'fileAttributesAtPath:traverseLink:' is deprecated [-Wdeprecated-declarations,8]
:info:build                  size = [[manager fileAttributesAtPath: path traverseLink:YES] fileSize];
:info:build                           ^
:info:build 1 warning generated.
:info:build 
:info:build CompileC build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STPathTextField.o Shared/STPathTextField.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source
:info:build     setenv LANG en_US.US-ASCII
:info:build     /Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wunused-function -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -fno-objc-exceptions -fstrict-aliasing -mmacosx-version-min=10.7 -msse3 -mssse3 -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-generated-files.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-own-target-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-all-target-headers.hmap -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-project-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources/i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment -include /var/folders/qc/r3jql22x7619bpq7skqm9vk80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/Platypus_Prefix-eyidmvbqattlycfuymoanmwasybo/Platypus_Prefix.pch -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STPathTextField.d -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/Shared/STPathTextField.m -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STPathTextField.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/Shared/STPathTextField.m:250:2:{250:2-250:46}: warning: instance method '-controlTextDidChange:' not found (return type defaults to 'id') [3]
:info:build          [[self delegate] controlTextDidChange: NULL];
:info:build          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 warning generated.
:info:build 
:info:build CompileC build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STPrivilegedTask.o Shared/STPrivilegedTask.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
:info:build     cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source
:info:build     setenv LANG en_US.US-ASCII
:info:build     /Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -Os -mdynamic-no-pic -Wmissing-prototypes -Wreturn-type -Wparentheses -Wswitch -Wunused-function -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -fno-objc-exceptions -fstrict-aliasing -mmacosx-version-min=10.7 -msse3 -mssse3 -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-generated-files.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-own-target-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-all-target-headers.hmap -iquote /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Platypus-project-headers.hmap -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources/i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Deployment -include /var/folders/qc/r3jql22x7619bpq7skqm9vk80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/Platypus_Prefix-eyidmvbqattlycfuymoanmwasybo/Platypus_Prefix.pch -MMD -MT dependencies -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STPrivilegedTask.d -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/Shared/STPrivilegedTask.m -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/STPrivilegedTask.o
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source/Shared/STPrivilegedTask.m:192:11: warning: 'AuthorizationExecuteWithPrivileges' is deprecated [-Wdeprecated-declarations,8]
:info:build      err = AuthorizationExecuteWithPrivileges(authorizationRef, [launchPath fileSystemRepresentation], kAuthorizationFlagDefaults, args, &outputFile);
:info:build            ^
:info:build 1 warning generated.
:info:build 
:info:build 
:info:build ** BUILD FAILED **
:info:build 
:info:build 
:info:build The following build commands failed:
:info:build 	CompileC build/Platypus.build/Deployment/Platypus.build/Objects-normal/i386/UKKQueue.o PlatypusApplication/UKKQueue/UKKQueue.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
:info:build (1 failure)
:info:build shell command "cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/work/Platypus-4.4-Source" && /usr/bin/xcodebuild  -target "Platypus" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.7 ARCHS=i386 SDKROOT="" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 " returned error 65
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for platypus): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for platypus is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_Platypus/platypus/main.log

Change History (3)

comment:1 Changed 8 years ago by wroberts@…

Forgot to mention that this is on a new Macbook Pro running Lion.

comment:2 Changed 8 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to tsupplis@…
Port: Platypus added; platypus removed
Summary: Platypus build failsPlatypus build fails: error: cannot use '@try' with Objective-C exceptions disabled [3]

I see you are using clang. Try using a different compiler.

comment:3 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.