The forum is being replaced with new software. Please use the replacement hosted at https://forum.angband.live/ in the meantime. These forums will stay open until migrating old topics can be achieved, though posting will eventually be locked. Thankyou for your patience.

FAangband compilation error unrecognized command line option '-mno-cygwin'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hernaldog
    Rookie
    • Apr 2014
    • 21

    FAangband compilation error unrecognized command line option '-mno-cygwin'

    Hi guys,
    I return with my personal project: the translation of FAangband versión 1.4.4 to Spanish. I'm i 60% of text translation. But I need compile the source.

    The source that I using are from 24-05-2016.

    I use Windows 10.

    I download Cygwin x64 and MinGW, both last version, but I get the next error:

    Using MinGW:

    HTML Code:
    mingw32-make -f Makefile.win
    gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I. -mno-cygwin -c -o identify.o identify.c
    gcc: error: unrecognized command line option '-mno-cygwin'; did you mean '-mno-clwb'?
    Makefile.win:127: recipe for target 'identify.o' failed
    mingw32-make: *** [identify.o] Error 1
    Using Cygwin:

    HTML Code:
    make -f Makefile.win
    gcc -DWINDOWS -static -Iwin/include -Lwin/lib -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -Wdeclaration-after-statement -O2 -I. -mno-cygwin -c -o identify.o identify.c
    gcc: error: unrecognized command line option '-mno-cygwin'; did you mean '-mno-clwb'?
    Makefile.win:127: recipe for target 'identify.o' failed
    mingw32-make: *** [identify.o] Error 1
    Any help?
    La web de Dark-N - Traducciones de Juegos
    http://darkn.romhackhispano.org/
  • Pete Mack
    Prophet
    • Apr 2007
    • 6697

    #2
    try
    MINGW=YES mingw32-make -f makefile.win
    This works for Vanilla. I don't know if it will work for FA, which is a fairly old distro apparently depending on an older version of gcc.

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9359

      #3
      I can confirm that Pete's command line works for me; that's Windows 10, msys (version 1.0, I think?) and mingw. gcc version is 4.6.2.
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • hernaldog
        Rookie
        • Apr 2014
        • 21

        #4
        Originally posted by Pete Mack
        try
        MINGW=YES mingw32-make -f makefile.win
        This works for Vanilla. I don't know if it will work for FA, which is a fairly old distro apparently depending on an older version of gcc.

        Hi Pete, thanks for your response.
        Now I get the error:

        HTML Code:
        src>MINGW=YES mingw32-make -f makefile.win
        "MINGW" no se reconoce como un comando interno o externo,
        programa o archivo por lotes ejecutable.
        
        In english: it is not recognized as an internal or external command,
        program or batch file executable.

        Maybe, I miss some environment variable?

        I have in the Path variable, C:\MinGW\bin

        How can I know my version of gcc?

        regards!
        La web de Dark-N - Traducciones de Juegos
        http://darkn.romhackhispano.org/

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9359

          #5
          The point of the
          Code:
          MINGW=yes
          part of the command is to set the environment variable MINGW to yes, so you could do that separately, probably by
          Code:
          export MINGW="yes"
          To get your version of gcc,
          Code:
          gcc --version
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • hernaldog
            Rookie
            • Apr 2014
            • 21

            #6
            Originally posted by Nick
            The point of the
            Code:
            MINGW=yes
            part of the command is to set the environment variable MINGW to yes, so you could do that separately, probably by
            Code:
            export MINGW="yes"
            To get your version of gcc,
            Code:
            gcc --version
            Hi Nick

            I add manually by Windows Preferences the environment variable, and this compiled ok.

            The command I used was:

            HTML Code:
            mingw32-make -f Makefile.win

            Thanks!
            La web de Dark-N - Traducciones de Juegos
            http://darkn.romhackhispano.org/

            Comment

            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎
            MMOMBuy POE 2 Currency