Mingw apparently doesn't support xlocale.  There are a few issues floating 
around when doing a brief web search.  One option is to simply revert back to 
the older code for mingw, however we also may need to disable the regression 
test in this case.   I can supply a patch for this once I get mingw installed.

----
Brian Kelley

> On Jun 23, 2016, at 1:47 PM, Paolo Tosco <paolo.to...@unito.it> wrote:
> 
> Dear Anne,
> 
> tonight I'll be working on getting a working RDKit build using MinGW 
> compilers; I'll update you as soon as I have finished.
> 
> Best,
> Paolo
> 
>> On 23/06/2016 13:29, Anne wrote:
>> Hi everyone,
>> 
>> I have been trying to compile RDKit (rdkit-Release_2016_03_2.tar.gz)
>> using CodeBlocks 16.01 with the MinGW (gcc 4.9) compiler on Win7. But I
>> keep getting the following error in the LocaleSwitcher.cpp:
>> 
>> [....]
>> 
>> [  1%] Building CXX object
>> Code/RDGeneral/CMakeFiles/RDGeneral.dir/Dict.cpp.obj
>> cd /d D:\Programme\RDKit\rdkit_2\build\Code\RDGeneral &&
>> C:\PROGRA~2\CODEBL~1\MinGW\bin\G__~1.EXE   -DRDGeneral_EXPORTS
>> -DRDK_32BIT_BUILD -DRDK_TEST_MULTITHREADED
>> -DRDK_USE_STRICT_ROTOR_DEFINITION
>> @CMakeFiles/RDGeneral.dir/includes_CXX.rsp -mpopcnt -Wno-deprecated
>> -Wno-unused-function -fno-strict-aliasing -fPIC -Wall -Wextra -O3
>> -DNDEBUG   -DRDK_THREADSAFE_SSS -DBOOST_ALL_NO_LIB -o
>> CMakeFiles\RDGeneral.dir\Dict.cpp.obj -c
>> D:\Programme\RDKit\rdkit_2\Code\RDGeneral\Dict.cpp
>> D:\Programme\RDKit\rdkit_2\Code\RDGeneral\Dict.cpp:1:0: warning: -fPIC
>> ignored for target (all code is position independent)
>>   // $Id$
>>   ^
>> D:\Programme\RDKit\rdkit_2\Code\RDGeneral\LocaleSwitcher.cpp:1:0:
>> warning: -fPIC ignored for target (all code is position independent)
>>   //  Copyright (c) 2016, Novartis Institutes for BioMedical Research Inc.
>>   ^
>> D:\Programme\RDKit\rdkit_2\Code\RDGeneral\LocaleSwitcher.cpp:36:21:
>> fatal error: xlocale.h: No such file or directory
>>   #include <xlocale.h>
>>                       ^
>> compilation terminated.
>> mingw32-make.exe[2]: ***
>> [Code/RDGeneral/CMakeFiles/RDGeneral.dir/LocaleSwitcher.cpp.obj] Error 1
>> mingw32-make.exe[1]: *** [Code/RDGeneral/CMakeFiles/RDGeneral.dir/all]
>> Error 2
>> mingw32-make.exe: *** [all] Error 2
>> [  1%] Building CXX object
>> Code/RDGeneral/CMakeFiles/RDGeneral.dir/LocaleSwitcher.cpp.obj
>> cd /d D:\Programme\RDKit\rdkit_2\build\Code\RDGeneral &&
>> C:\PROGRA~2\CODEBL~1\MinGW\bin\G__~1.EXE   -DRDGeneral_EXPORTS
>> -DRDK_32BIT_BUILD -DRDK_TEST_MULTITHREADED
>> -DRDK_USE_STRICT_ROTOR_DEFINITION
>> @CMakeFiles/RDGeneral.dir/includes_CXX.rsp -mpopcnt -Wno-deprecated
>> -Wno-unused-function -fno-strict-aliasing -fPIC -Wall -Wextra -O3
>> -DNDEBUG   -DRDK_THREADSAFE_SSS -DBOOST_ALL_NO_LIB -o
>> CMakeFiles\RDGeneral.dir\LocaleSwitcher.cpp.obj -c
>> D:\Programme\RDKit\rdkit_2\Code\RDGeneral\LocaleSwitcher.cpp
>> Code\RDGeneral\CMakeFiles\RDGeneral.dir\build.make:187: recipe for
>> target 'Code/RDGeneral/CMakeFiles/RDGeneral.dir/LocaleSwitcher.cpp.obj'
>> failed
>> mingw32-make.exe[2]: Leaving directory 'D:/Programme/RDKit/rdkit_2/build'
>> CMakeFiles\Makefile2:279: recipe for target
>> 'Code/RDGeneral/CMakeFiles/RDGeneral.dir/all' failed
>> mingw32-make.exe[1]: Leaving directory 'D:/Programme/RDKit/rdkit_2/build'
>> D:/Programme/RDKit/rdkit_2/build/Makefile:159: recipe for target 'all'
>> failed
>> Process terminated with status 2 (0 minute(s), 17 second(s))
>> 4 error(s), 6 warning(s) (0 minute(s), 17 second(s))
>> 
>> 
>> Since the error says that xlocale.h is missing, I downloaded and tried
>> do add that header-file to the mingw include directory but this just
>> lead to different (missing file) errors. So there seems to be a more
>> general problem . I'm not sure if it occurs due to a linking error or if
>> I'm doing something else wrong. Since I am quite new to programming it
>> might be something obvious which I am not aware of.
>> 
>> To get the build recipe I used Cmake. The configuration and generation
>> of the CodeBlocks-project file worked fine. I also compiled the boost
>> library that way using the same compiler and it seems to work, too.
>> 
>> Any ideas about what I am doing wrong would be greatly appreciated.
>> 
>> 
>> Best Regards,
>> 
>> Anne
>> 
>> 
>> ------------------------------------------------------------------------------
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>> _______________________________________________
>> Rdkit-discuss mailing list
>> Rdkit-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
> 
> 
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to