Loading ...
Sorry, an error occurred while loading the content.

MacVim build error: PhaseScriptExecution

Expand Messages
  • Robin
    Hi, I get the following build error with an up to date git pull and a clean build... ** BUILD FAILED ** The following build commands failed: MacVim:
    Message 1 of 7 , Sep 3 7:00 AM
    • 0 Attachment
      Hi,

      I get the following build error with an up to date git pull and a clean build...

      ** BUILD FAILED **

      The following build commands failed:
      MacVim:
      PhaseScriptExecution
      /Users/robince/code/macvim/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
      (1 failure)

      Any idea what it could be?

      Cheers

      Robin

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • björn
      ... Hi Robin, I m guessing that you are running Snow Leopard? There is a problem with the icon generation script which affects 10.6 only. Look in the thread
      Message 2 of 7 , Sep 3 7:10 AM
      • 0 Attachment
        2009/9/3 Robin:
        >
        > I get the following build error with an up to date git pull and a clean build...
        >
        > ** BUILD FAILED **
        >
        > The following build commands failed:
        > MacVim:
        >        PhaseScriptExecution
        > /Users/robince/code/macvim/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh
        > (1 failure)
        >
        > Any idea what it could be?

        Hi Robin,

        I'm guessing that you are running Snow Leopard? There is a problem
        with the icon generation script which affects 10.6 only. Look in the
        thread titled "Snow Leopard drops MacOSX10.4u.sdk SDK -- MacVim won't
        build on 10.6".

        Björn

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_mac" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Robin
        ... Sorry of course I should have specified. I am not running snow leopard - I am on 10.5.8. (I waited until that thread was resolved and pulled again but I
        Message 3 of 7 , Sep 3 8:34 AM
        • 0 Attachment
          On Thu, Sep 3, 2009 at 3:10 PM, björn<bjorn.winckler@...> wrote:
          >
          > Hi Robin,
          >
          > I'm guessing that you are running Snow Leopard?  There is a problem
          > with the icon generation script which affects 10.6 only.  Look in the
          > thread titled "Snow Leopard drops MacOSX10.4u.sdk SDK -- MacVim won't
          > build on 10.6".

          Sorry of course I should have specified. I am not running snow leopard
          - I am on 10.5.8. (I waited until that thread was resolved and pulled
          again but I still get the problem).

          Cheers

          Robin

          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_mac" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        • björn
          ... Oh? Well, the build log doesn t give the full output from the icon generation script. Please go into the icons/ folder, type make and copy&paste the
          Message 4 of 7 , Sep 3 8:56 AM
          • 0 Attachment
            2009/9/3 Robin:
            >
            >> I'm guessing that you are running Snow Leopard?  There is a problem
            >> with the icon generation script which affects 10.6 only.  Look in the
            >> thread titled "Snow Leopard drops MacOSX10.4u.sdk SDK -- MacVim won't
            >> build on 10.6".
            >
            > Sorry of course I should have specified. I am not running snow leopard
            > - I am on 10.5.8. (I waited until that thread was resolved and pulled
            > again but I still get the problem).

            Oh? Well, the build log doesn't give the full output from the icon
            generation script. Please go into the icons/ folder, type "make" and
            copy&paste the output.

            Björn

            --~--~---------~--~----~------------~-------~--~----~
            You received this message from the "vim_mac" maillist.
            For more information, visit http://www.vim.org/maillist.php
            -~----------~----~----~----~------~----~------~--~---
          • Robin
            ... Below, jm-g26b101:MacVim robince$ cd icons/ jm-g26b101:icons robince$ make make -C makeicns make[1]: `makeicns is up to date. /usr/bin/python
            Message 5 of 7 , Sep 3 11:50 AM
            • 0 Attachment
              On Thu, Sep 3, 2009 at 4:56 PM, björn<bjorn.winckler@...> wrote:
              > Oh?  Well, the build log doesn't give the full output from the icon
              > generation script.  Please go into the icons/ folder, type "make" and
              > copy&paste the output.

              Below,

              jm-g26b101:MacVim robince$ cd icons/
              jm-g26b101:icons robince$ make
              make -C makeicns
              make[1]: `makeicns' is up to date.
              /usr/bin/python make_icons.py .
              make_icons.py:16: RuntimeWarning: Python C API version mismatch for
              module loadfont: This Python has API version 1013, module loadfont has
              version 1012.
              import loadfont
              MacVim-cpp
              Traceback (most recent call last):
              File "make_icons.py", line 198, in <module>
              main()
              File "make_icons.py", line 190, in main
              textrenderer=SmallTextRenderer, backgroundrenderer=NoIconRenderer)
              File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
              line 561, in makedocicon
              makedocicon_opts(optsFromDict(**kwargs))
              File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
              line 537, in makedocicon_opts
              icons = dict([(s, renderer.createIconAtSize(s)) for s in sizes])
              File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
              line 516, in createIconAtSize
              return createIcon(s, self.bgRenderer, self.textRenderer, self.testtext)
              File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
              line 370, in createIcon
              textRenderer.drawTextAtSize(text[s], s)
              File "make_icons.py", line 152, in drawTextAtSize
              attribs = self.attribsAtSize(s)
              File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
              line 274, in attribsAtSize
              self.cache[s] = self._attribsAtSize(s)
              File "make_icons.py", line 140, in _attribsAtSize
              assert font
              AssertionError
              make: *** [MacVim-generic.icns] Error 1

              Thanks,

              Robin

              --~--~---------~--~----~------------~-------~--~----~
              You received this message from the "vim_mac" maillist.
              For more information, visit http://www.vim.org/maillist.php
              -~----------~----~----~----~------~----~------~--~---
            • Robin
              ... Just got home and got time to have a look at this myself. In fact the loadfont module wasn t cleaned properly and so I guess was built with an old version
              Message 6 of 7 , Sep 3 1:02 PM
              • 0 Attachment
                On Thu, Sep 3, 2009 at 7:50 PM, Robin<robince@...> wrote:
                > On Thu, Sep 3, 2009 at 4:56 PM, björn<bjorn.winckler@...> wrote:
                >> Oh?  Well, the build log doesn't give the full output from the icon
                >> generation script.  Please go into the icons/ folder, type "make" and
                >> copy&paste the output.
                >
                > Below,
                >
                > jm-g26b101:MacVim robince$ cd icons/
                > jm-g26b101:icons robince$ make
                > make -C makeicns
                > make[1]: `makeicns' is up to date.
                > /usr/bin/python make_icons.py .
                > make_icons.py:16: RuntimeWarning: Python C API version mismatch for
                > module loadfont: This Python has API version 1013, module loadfont has
                > version 1012.
                >  import loadfont
                > MacVim-cpp
                > Traceback (most recent call last):
                >  File "make_icons.py", line 198, in <module>
                >    main()
                >  File "make_icons.py", line 190, in main
                >    textrenderer=SmallTextRenderer, backgroundrenderer=NoIconRenderer)
                >  File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
                > line 561, in makedocicon
                >    makedocicon_opts(optsFromDict(**kwargs))
                >  File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
                > line 537, in makedocicon_opts
                >    icons = dict([(s, renderer.createIconAtSize(s)) for s in sizes])
                >  File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
                > line 516, in createIconAtSize
                >    return createIcon(s, self.bgRenderer, self.textRenderer, self.testtext)
                >  File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
                > line 370, in createIcon
                >    textRenderer.drawTextAtSize(text[s], s)
                >  File "make_icons.py", line 152, in drawTextAtSize
                >    attribs = self.attribsAtSize(s)
                >  File "/Users/robince/code/macvim/src/MacVim/icons/docerator.py",
                > line 274, in attribsAtSize
                >    self.cache[s] = self._attribsAtSize(s)
                >  File "make_icons.py", line 140, in _attribsAtSize
                >    assert font
                > AssertionError
                > make: *** [MacVim-generic.icns] Error 1
                >

                Just got home and got time to have a look at this myself. In fact the
                loadfont module wasn't cleaned properly and so I guess was built with
                an old version of python.
                Doing "make clean" then make in icons seemed to fix this.

                I had tried xcodebuild clean in MacVim beforehand... shouldn't this
                call make clean in icons?

                Cheers

                Robin

                --~--~---------~--~----~------------~-------~--~----~
                You received this message from the "vim_mac" maillist.
                For more information, visit http://www.vim.org/maillist.php
                -~----------~----~----~----~------~----~------~--~---
              • björn
                ... Ah, I was just about to suggest this...glad you figured it out. ... I guess it *should* but it seems a bit difficult to hook custom scripts into the
                Message 7 of 7 , Sep 3 1:23 PM
                • 0 Attachment
                  2009/9/3 Robin <robince@...>:
                  > Just got home and got time to have a look at this myself. In fact the
                  > loadfont module wasn't cleaned properly and so I guess was built with
                  > an old version of python.
                  > Doing "make clean" then make in icons seemed to fix this.

                  Ah, I was just about to suggest this...glad you figured it out.

                  > I had tried xcodebuild clean in MacVim beforehand... shouldn't this
                  > call make clean in icons?

                  I guess it *should* but it seems a bit difficult to hook custom
                  scripts into the "clean" phase in Xcode (I'm not even sure if it is
                  possible at all). What does happen is that when you clean the project
                  the icons _inside_ the app bundle are deleted, causing the icon script
                  to run again when you build (at least this way, if you modify the icon
                  generating script the icons will be rebuilt after a clean).

                  Björn

                  --~--~---------~--~----~------------~-------~--~----~
                  You received this message from the "vim_mac" maillist.
                  For more information, visit http://www.vim.org/maillist.php
                  -~----------~----~----~----~------~----~------~--~---
                Your message has been successfully submitted and would be delivered to recipients shortly.