Laurent Moss created AVRO-1131:
----------------------------------

             Summary: Generated build makefiles for MSYS/MinGW use Visual 
Studio compiler flags
                 Key: AVRO-1131
                 URL: https://issues.apache.org/jira/browse/AVRO-1131
             Project: Avro
          Issue Type: Bug
          Components: c++
    Affects Versions: 1.7.1
         Environment: Windows XP Professional 32-bit SP3, MSYS, MinGW GCC 4.5.1


            Reporter: Laurent Moss
            Priority: Minor


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to