nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#731 CC, DL, CCFLAGS environment variables are not set up correctly, #2469

Closed nikhilgupta10 closed 7 years ago

nikhilgupta10 commented 7 years ago

test_schedule_xform_external.glm fails to pass in trunk on my machine because the environment variable CC is not set up correctly when using a x64 windows machine by default. In module.c the environment variables CC, DL, and CCFLAGS get setup only if WIN32 is defined otherwise they are set up with linux or mac paths and directives. There is no handling of x64. Specifically CC points to mingw/bin/gcc under WIN32. This is problematic when you are running this on a 64 bit machine with mingw64. When I explicitly set the path to point of mingw64/bin/gcc the test passes.

CC and DL specifically point to mingw under WIN32. It should be able to point to what ever is installed on the machine mingw or mingw64.

,

nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: "dchassin": * status changed from new to accepted ,

"dchassin":Started work with r4046. Note that only the module compiler for transforms is fixed right now. The loader uses a different compiler call and it may still have this problem. I'm not planning to fix that, but instead change the loader to use the inline compiler for modules if the problem comes up.

,

"dchassin": * owner changed from dchassin to andyfisher

Fix is posted in r4048.

,

"andyfisher": * status changed from assigned to closed

Fixes committed to trunk in r4103

,