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

Compiling vim with latest Racket fails

Expand Messages
  • Cesar Romani
    I m building vim 7.3.744 on Windows 7 with MinGW. By compiling it with ... In file included from if_mzsch.h:15:0, from os_win32.c:26:
    Message 1 of 6 , Nov 30, 2012
    • 0 Attachment
      I'm building vim 7.3.744 on Windows 7 with MinGW. By compiling it with
      Racket 5.3.1 I get:

      --------------------
      In file included from if_mzsch.h:15:0,
      from os_win32.c:26:
      c:/Racket/include/scheme.h:890:3: error: unknown type name 'uintptr_t'
      In file included from c:/Racket/include/scheme.h:1162:0,
      from if_mzsch.h:15,
      from os_win32.c:26:
      c:/Racket/include/schthread.h:124:3: error: unknown type name 'uintptr_t'
      c:/Racket/include/schthread.h:125:3: error: unknown type name 'uintptr_t'
      c:/Racket/include/schthread.h:127:3: error: unknown type name 'uintptr_t'
      c:/Racket/include/schthread.h:134:3: error: unknown type name 'uintptr_t'
      c:/Racket/include/schthread.h:135:3: error: expected
      specifier-qualifier-list before 'uintptr_t'
      In file included from c:/Racket/include/scheme.h:1929:0,
      from if_mzsch.h:15,
      from os_win32.c:26:
      c:/Racket/include/schemef.h:608:66: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:611:69: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:611:88: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:612:78: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:612:97: error: unknown type name 'uintptr_t'

      :/Racket/include/schemef.h:630:76: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:691:59: error: unknown type name 'uintptr_t'
      In file included from c:/Racket/include/scheme.h:1929:0,
      from if_mzsch.h:15,
      from os_win32.c:26:
      c:/Racket/include/schemef.h:1031:71: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:1032:78: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:1034:69: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:1035:76: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:1037:71: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:1040:72: error: unknown type name 'uintptr_t'
      c:/Racket/include/schemef.h:1041:79: error: unknown type name 'uintptr_t'
      make: *** [gobjZi386/os_win32.o] Error 1
      Error by compiling gvim.exe
      --------------------

      Many thanks in advance,

      --
      Cesar

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Sergey Khorev
      ... My comment about Make_cyg applies to Make_ming as well. You need to patch a Racket header file and use my patch for Vim. -- You received this message from
      Message 2 of 6 , Dec 2, 2012
      • 0 Attachment
        > I'm building vim 7.3.744 on Windows 7 with MinGW. By compiling it with
        > Racket 5.3.1 I get:

        My comment about Make_cyg applies to Make_ming as well. You need to
        patch a Racket header file and use my patch for Vim.

        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php
      • Cesar Romani
        ... [...] if_mzsch.c:848:4: error: #error Precise GC v.4+ or Racket with futures/places do not support dynamic MzScheme if_mzsch.c: In function window_new :
        Message 3 of 6 , Dec 4, 2012
        • 0 Attachment
          On 02/12/2012 07:25 a.m., Sergey Khorev wrote:
          >> I'm building vim 7.3.744 on Windows 7 with MinGW. By compiling it with
          >> Racket 5.3.1 I get:
          >
          > My comment about Make_cyg applies to Make_ming as well. You need to
          > patch a Racket header file and use my patch for Vim.

          After applying your patch and patching the Racket header I get:

          -------------------
          [...]
          if_mzsch.c:848:4: error: #error Precise GC v.4+ or Racket with
          futures/places do not support dynamic MzScheme
          if_mzsch.c: In function 'window_new':
          if_mzsch.c:1737:21: error: lvalue required as left operand of assignment
          if_mzsch.c: In function 'buffer_new':
          if_mzsch.c:2087:21: error: lvalue required as left operand of assignment
          make: *** [gobjZi386/if_mzsch.o] Error 1
          Error by compiling gvim.exe
          -------------------

          Regards,

          --
          Cesar

          --
          You received this message from the "vim_dev" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php
        • Sergey Khorev
          ... Default Racket garbage collector (3m) doesn t support dynamic loading of dlls. For your reference this is how I build Vim with the latest Racket.
          Message 4 of 6 , Dec 4, 2012
          • 0 Attachment
            > if_mzsch.c:848:4: error: #error Precise GC v.4+ or Racket with
            > futures/places do not support dynamic MzScheme

            Default Racket garbage collector (3m) doesn't support dynamic loading
            of dlls. For your reference this is how I build Vim with the latest
            Racket.

            mingw32-make -f Make_ming.mak GUI=yes CSCOPE=yes
            MZSCHEME=c:/Develop/Racket DYNAMIC_MZSCHEME=no MZSCHEME_VER=3m_8bh220
            MZSCHEME_GENERATE_BASE=yes MZSCHEME_PRECISE_GC=yes
            MZSCHEME_USE_RACKET=yes

            --
            You received this message from the "vim_dev" maillist.
            Do not top-post! Type your reply below the text you are replying to.
            For more information, visit http://www.vim.org/maillist.php
          • Cesar Romani
            ... Thanks, it works but you need to have libracket3m_8bh220.dll on your path. Regards, -- Cesar -- You received this message from the vim_dev maillist. Do
            Message 5 of 6 , Dec 5, 2012
            • 0 Attachment
              On 04/12/2012 10:24 p.m., Sergey Khorev wrote:
              >> if_mzsch.c:848:4: error: #error Precise GC v.4+ or Racket with
              >> futures/places do not support dynamic MzScheme
              >
              > Default Racket garbage collector (3m) doesn't support dynamic loading
              > of dlls. For your reference this is how I build Vim with the latest
              > Racket.
              >
              > mingw32-make -f Make_ming.mak GUI=yes CSCOPE=yes
              > MZSCHEME=c:/Develop/Racket DYNAMIC_MZSCHEME=no MZSCHEME_VER=3m_8bh220
              > MZSCHEME_GENERATE_BASE=yes MZSCHEME_PRECISE_GC=yes
              > MZSCHEME_USE_RACKET=yes

              Thanks, it works but you need to have libracket3m_8bh220.dll on your
              path.

              Regards,

              --
              Cesar

              --
              You received this message from the "vim_dev" maillist.
              Do not top-post! Type your reply below the text you are replying to.
              For more information, visit http://www.vim.org/maillist.php
            • Sergey Khorev
              ... That s correct. Racket 5.x dlls cannot be loaded dynamically. You need version 4.x (or earlier) built with conservative garbage collector (CGC) -- You
              Message 6 of 6 , Dec 5, 2012
              • 0 Attachment
                > Thanks, it works but you need to have libracket3m_8bh220.dll on your
                > path.

                That's correct. Racket 5.x dlls cannot be loaded dynamically. You need
                version 4.x (or earlier) built with conservative garbage collector
                (CGC)

                --
                You received this message from the "vim_dev" maillist.
                Do not top-post! Type your reply below the text you are replying to.
                For more information, visit http://www.vim.org/maillist.php
              Your message has been successfully submitted and would be delivered to recipients shortly.