Opened 16 years ago

Closed 12 years ago

Last modified 7 years ago

#18765 closed defect (fixed)

Growl 1.1.4 build error

Reported by: mf2k (Frank Schima) Owned by: boeyms@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: elelay (Eric Le Lay), boredzo+macports@…, dboris (Boris D.), ryandesign (Ryan Carsten Schmidt), jp@…, joseph@…, benzwt@…, shenzhuxi@…
Port: growl

Description

I'm seeing the following error when attempting to build growl 1.1.4.

    setenv UID 0
    setenv UNLOCALIZED_RESOURCES_FOLDER_PATH Growl.prefPane/Contents/Resources
    setenv UNSTRIPPED_PRODUCT NO
    setenv USER root
    setenv USER_APPS_DIR /Users/frank/Applications
    setenv USER_LIBRARY_DIR /Users/frank/Library
    setenv USE_DYNAMIC_NO_PIC YES
    setenv USE_HEADERMAP YES
    setenv USE_HEADER_SYMLINKS NO
    setenv VALID_ARCHS "i386 ppc ppc64 ppc7400 ppc970 x86_64"
    setenv VERBOSE_PBXCP NO
    setenv VERSIONPLIST_PATH Growl.prefPane/Contents/version.plist
    setenv VERSION_INFO_BUILDER root
    setenv VERSION_INFO_FILE Growl_vers.c
    setenv VERSION_INFO_STRING "\"@(#)PROGRAM:Growl  PROJECT:Growl-\""
    setenv WARNING_CFLAGS "-W -Wall -Wpointer-arith -Wformat=2 -Wfloat-equal"
    setenv WRAPPER_EXTENSION prefPane
    setenv WRAPPER_NAME Growl.prefPane
    setenv WRAPPER_SUFFIX .prefPane
    setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
    setenv XCODE_VERSION_ACTUAL 0310
    setenv XCODE_VERSION_MAJOR 0300
    setenv YACC /Developer/usr/bin/yacc
    setenv ZERO_LINK NO
    /bin/sh -c /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Growl.build/Deployment/Growl.build/Script-340832FE075C2C0A00703011.sh

Touch /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane
    cd /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src
    /usr/bin/touch -c /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane

Stripping /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane/Contents/MacOS/Growl
    cd /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src
    /Developer/usr/bin/strip -x /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane/Contents/MacOS/Growl
** BUILD FAILED **

The following build commands failed:
GrowlAction:
	OSACompile "build/Deployment/Show Growl Notification.action/Contents/Resources/Scripts/main.scpt" main.applescript
(1 failure)

make: *** [growl] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src" && make growl " returned error 2
Command output:     setenv VERSIONPLIST_PATH Growl.prefPane/Contents/version.plist
    setenv VERSION_INFO_BUILDER root
    setenv VERSION_INFO_FILE Growl_vers.c
    setenv VERSION_INFO_STRING "\"@(#)PROGRAM:Growl  PROJECT:Growl-\""
    setenv WARNING_CFLAGS "-W -Wall -Wpointer-arith -Wformat=2 -Wfloat-equal"
    setenv WRAPPER_EXTENSION prefPane
    setenv WRAPPER_NAME Growl.prefPane
    setenv WRAPPER_SUFFIX .prefPane
    setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
    setenv XCODE_VERSION_ACTUAL 0310
    setenv XCODE_VERSION_MAJOR 0300
    setenv YACC /Developer/usr/bin/yacc
    setenv ZERO_LINK NO
    /bin/sh -c /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Growl.build/Deployment/Growl.build/Script-340832FE075C2C0A00703011.sh

Touch /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane
    cd /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src
    /usr/bin/touch -c /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane

Stripping /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane/Contents/MacOS/Growl
    cd /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src
    /Developer/usr/bin/strip -x /opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_Growl/work/Growl-1.1.4-src/build/Deployment/Growl.prefPane/Contents/MacOS/Growl
** BUILD FAILED **

The following build commands failed:
GrowlAction:
	OSACompile "build/Deployment/Show Growl Notification.action/Contents/Resources/Scripts/main.scpt" main.applescript
(1 failure)

make: *** [growl] Error 1

Warning: the following items did not execute (for Growl): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

I'm on Mac OS X 10.5.6 Intel. Xcode 3.1.2.

Attachments (4)

1.1.5.diff (758 bytes) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
diff to update from 1.1.4 to 1.1.5
1.1.6.diff (758 bytes) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
diff to update from 1.1.4 to 1.1.6
growl-1.1.6-tiger.txt.bz2 (2.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
1.1.6 build failure on tiger
growl-1.1.6-leopard.txt.bz2 (15.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
1.1.6 build failure on leopard

Download all attachments as: .zip

Change History (28)

comment:1 Changed 16 years ago by boredzo+macports@…

You need to build at least the Automator action (GrowlAction) in Deployment, then build the prefpane in whichever configuration.

This was because of an Xcode bug. I have no idea whether they've fixed it.

comment:2 Changed 16 years ago by boredzo+macports@…

Cc: boredzo+macports@… added

Cc Me!

comment:3 Changed 16 years ago by boredzo+macports@…

I've fixed the bug for 1.1.5.

Until we release 1.1.5 and you update the port for it, you may want to include the fix as a diff against 1.1.4.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 15 years ago by mf2k (Frank Schima)

Growl 1.1.5 is out now.

comment:6 Changed 15 years ago by mf2k (Frank Schima)

Cc: borisd@… added

Ccing reporter of duplicate #20266.

comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

1.1.6 is out now. But neither 1.1.5 nor 1.1.6 build for me, on either Tiger or Leopard.

Tiger:

cc1: error: -fsave-repository may only be used with STABS debugging

Leopard:

/mp/var/macports/build/_Users_rschmidt_macports_dports_aqua_Growl/work/Growl-1.1.6-src/Core/Source/GrowlApplicationController.m:96:2: warning: #warning Having to update this struct manually is ugly. Use the info.plist.
/mp/var/macports/build/_Users_rschmidt_macports_dports_aqua_Growl/work/Growl-1.1.6-src/Core/Source/GrowlApplicationController.m:97:2: warning: #warning And once code is in to automagically update this from Info.plist, the documentation in GrowlVersionUtilities.h should also be updated.
/mp/var/macports/build/_Users_rschmidt_macports_dports_aqua_Growl/work/Growl-1.1.6-src/Core/Source/GrowlApplicationController.m: In function '-[GrowlApplicationController versionDictionary]':
/mp/var/macports/build/_Users_rschmidt_macports_dports_aqua_Growl/work/Growl-1.1.6-src/Core/Source/GrowlApplicationController.m:798: error: syntax error before ';' token

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: 1.1.5.diff added

diff to update from 1.1.4 to 1.1.5

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: 1.1.6.diff added

diff to update from 1.1.4 to 1.1.6

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: growl-1.1.6-tiger.txt.bz2 added

1.1.6 build failure on tiger

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: growl-1.1.6-leopard.txt.bz2 added

1.1.6 build failure on leopard

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

Cc: ryandesign@… added

comment:9 in reply to:  8 ; Changed 15 years ago by jp@…

Why isnt this fixed yet? The solution has been posted three months ago. :-(

comment:10 Changed 15 years ago by jp@…

Cc: jp@… added

Cc Me!

comment:11 Changed 15 years ago by joseph@…

Cc: joseph@… added

Cc Me!

comment:12 Changed 14 years ago by benzwt@…

Cc: benzwt@… added

Cc Me!

comment:13 in reply to:  9 ; Changed 14 years ago by benzwt@…

Replying to jp@…:

Why isnt this fixed yet? The solution has been posted three months ago. :-(

no, it isn't fixed. I failed to port growl after patching it from 1.1.4 to 1.1.6

the log is as follows:

BUILD NATIVE TARGET GrowlMenu OF PROJECT Growl WITH CONFIGURATION Deployment

Check dependencies GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file GrowlPathUtilities.m) GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file GrowlPathUtilities.m) BUILD FAILED

Version 0, edited 14 years ago by benzwt@… (next)

comment:14 in reply to:  13 ; Changed 14 years ago by boredzo+macports@…

Replying to benzwt@…:

Replying to jp@…:

Why isnt this fixed yet? The solution has been posted three months ago. :-(

no, it isn't fixed.

Yes it is. The original bug, the requirement to build the Growl Automator action before building Growl, was fixed in Growl 15 months ago. Every problem reported since then is a different bug or no bug at all.

I failed to port growl after patching it from 1.1.4 to 1.1.6

Why are you bringing it up to 1.1.6? Growl is currently at 1.2 and 1.2.1 is currently in beta.

(And why patch anything? We distribute the sources for every version.)

Growl 1.2 requires Leopard to build, by the way. There are only three things that still build for Tiger (i.e., use the 10.4u SDK), and none of them come on the disk image.

The problem you're seeing is caused by Apple's change of the default GCC version to 4.2, which, as the error message says, doesn't work with the Tiger SDK. If you want to build 1.1.6 (for whatever reason), you'll need to patch the Xcode project to explicitly use GCC 4.0.

comment:15 in reply to:  14 Changed 14 years ago by mf2k (Frank Schima)

Replying to boredzo+macports@…:

Why are you bringing it up to 1.1.6? Growl is currently at 1.2 and 1.2.1 is currently in beta.

Probably because he does not know how to update a portfile and was using the patch attached to this ticket which only goes up to 1.1.6. You seem to be involved with the growl project. Can you please supply a patch for the growl portfile to bring it up to version 1.2? The maintainer of this port seems to be inactive and so it is way out of date. It would be nice if you could maintain this port too.

comment:16 Changed 14 years ago by boredzo+macports@…

Sorry, but I don't use a ports system.

One note for any future Growl Portfile maintainers: Our Xcode project signs the GrowlHelperApp executable when you build in Release configuration. Anyone who doesn't have our code-signing key (i.e., is not a Growl developer) can only build in Debug; Release will give you a build error.

So, a Portfile for Growl, in order to build in Release config, would have to patch the project to remove the code-signing key name setting. Of course, then your Growl won't be signed, so if you use Prowl (which stores your Prowl password in the keychain), you'll get a warning the next time Prowl tries to retrieve your Prowl password.

comment:17 Changed 14 years ago by elelay (Eric Le Lay)

Resolution: fixed
Status: newclosed

fixed in r73090

comment:18 Changed 14 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: closedreopened

Patches do not apply anymore after r73090:

DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_raim_src_macports_trunk_dports_aqua_Growl/work/Growl-1.1.6-src" && /usr/bin/patch -p0'
patching file Growl.xcodeproj/project.pbxproj
Hunk #1 succeeded at 4144 (offset -22 lines).
Hunk #2 succeeded at 4174 with fuzz 2 (offset -20 lines).
Hunk #3 FAILED at 4189.
Hunk #4 succeeded at 4217 with fuzz 2 (offset -18 lines).
1 out of 4 hunks FAILED -- saving rejects to file Growl.xcodeproj/project.pbxproj.rej

comment:19 Changed 14 years ago by jmroot (Joshua Root)

Cc: elelay@… added

comment:20 Changed 14 years ago by elelay (Eric Le Lay)

it should be OK as of r73296.

comment:21 Changed 14 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: reopenedclosed

This works for me now.

comment:22 Changed 12 years ago by shenzhuxi@…

Resolution: fixed
Status: closedreopened

Not fix

Lion
Xcode 4.1
MacPorts 2.1.1
Growl @1.1.6 (aqua)

:info:build [BEROR]error: There is no SDK with the name or path '/Developer/SDKs/MacOSX10.4u.sdk'

comment:23 Changed 12 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: reopenedclosed

Please don't open old tickets. Your error is completely different from what little output you gave. You should open a new ticket and attach the complete main.log file there. But first please update your Xcode to the latest version for Lion (currently 4.3.2). Xcode 4.1 is very old.

comment:24 in reply to:  23 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: shenzhuxi@… added

Replying to macsforever2000@…:

You should open a new ticket and attach the complete main.log file there.

No need; a new ticket already exists for that: #32911

But first please update your Xcode to the latest version for Lion (currently 4.3.2). Xcode 4.1 is very old.

Good idea.

Note: See TracTickets for help on using tickets.