Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1131

Generated build makefiles for MSYS/MinGW use Visual Studio compiler flags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.1
    • 1.7.1
    • c++
    • Windows XP Professional 32-bit SP3, MSYS, MinGW GCC 4.5.1

    • build, msys, mingw

    Description

      I generated MSYS Makefiles for Avro C++ by executing the following command in the avro/lang/c++ directory:
      cmake -G "MSYS Makefiles"

      However, when trying to "make" Avro C++ with the generated makefiles and with MinGW GCC, the build fails with the following error:
      g++.exe: C:/msys/EHa: No such file or directory
      make[2]: *** [CMakeFiles/avrocpp_s.dir/impl/Compiler.cc.obj] Error 1
      make[1]: *** [CMakeFiles/avrocpp_s.dir/all] Error 2
      make: *** [all] Error 2

      It turns out that the Visual Studio compiler flag "/Eha" was added to the generated makefiles, which MSYS then interpreted as a file path. MinGW GCC would not understand or need that flag anyway.

      Attachments

        1. AVRO-1131.diff
          0.3 kB
          Laurent Moss

        Activity

          People

            lmoss Laurent Moss
            lmoss Laurent Moss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: