Rob, What does your config.h look like?
Chris On 28 June 2017 at 17:35, Schroeder, Rob <[email protected]> wrote: > Chris, > Thanks for the response. > > I made the change to config.h, and the make completed, but with some warnings. > env/time.c: In function 'glp_time': > env/time.c:63:20: warning: passing argument 1 of '_glp_xgmtime' from > incompatible pointer type [-Wincompatible-pointer-types] > tm = xgmtime(&tv.tv_sec); > ^ > In file included from env/env.h:27:0, > from env/time.c:28: > env/stdc.h:52:17: note: expected 'const time_t * {aka const long long int *}' > but argument is of type 'long int *' > #define xgmtime _glp_xgmtime > ^ > env/stdc.h:53:12: note: in expansion of macro 'xgmtime' > struct tm *xgmtime(const time_t *); > ^~~~~~~ > > The make check failed with the following info: > > ./glpsol.exe --mps ./murtagh.mps --max > GLPSOL: GLPK LP/MIP Solver, v4.62 > Parameter(s) specified in the command line: > --mps ./murtagh.mps --max > Reading problem data from './murtagh.mps'... > Problem: OILREFI > Objective: PROFIT > 74 rows, 81 columns, 504 non-zeros > 600 records were read > One free row was removed > Assertion failed: j >= 0 > Error detected in file env/time.c at line 66 > > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. > make[1]: *** [Makefile:555: check] Error 3 > make[1]: Leaving directory '/c/sw/glpk-4.62/examples' > make: *** [Makefile:321: check-recursive] Error 1 > > I'd be happy to test a patch if we can get it to work. > > Rob > > -----Original Message----- > From: Chris Matrakidis [mailto:[email protected]] > Sent: Wednesday, June 28, 2017 12:16 PM > To: Schroeder, Rob > Cc: [email protected] > Subject: Re: [Help-glpk] Building 4.62 on mingw64 > > Rob, > > I build 4.62 on mingw64 all the time, but I don't use msys2. > > Your problem seems to be that the symbol __WOE__ is not defined, thus the > complains for the *_r thread safe functions, instead of using the *_s ones. > > Add the following line to your config.h and try again: > #define __WOE__ 1 > > If this works, are you willing to test a patch to automate this? > > Best Regards, > > Chris Matrakidis > > On 28 June 2017 at 15:59, Schroeder, Rob <[email protected]> wrote: >> Just curios if anyone has had success building 4.62 on mingw64 (via MSYS2)? >> I’m running into issues with the *_r thread safe time functions in the >> stdc.c file. >> >> >> >> Thanks, >> >> Rob >> >> >> >> >> >> >> _______________________________________________ >> Help-glpk mailing list >> [email protected] >> https://lists.gnu.org/mailman/listinfo/help-glpk >> _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
