Skip to content

Some changes I made while working on libnetcdf on the Anaconda Distribution recently.#971

Closed
mingwandroid wants to merge 8 commits intoUnidata:masterfrom
mingwandroid:master
Closed

Some changes I made while working on libnetcdf on the Anaconda Distribution recently.#971
mingwandroid wants to merge 8 commits intoUnidata:masterfrom
mingwandroid:master

Conversation

@mingwandroid
Copy link
Copy Markdown
Contributor

If you want this split into separate PRs then please let me know.

I fixed it so that the test-suite can be run on Windows too (I use MSYS2 to provide a bash shell and m4) which I needed to do to track down a tricky bug which has been fixed already: #899

From a VS2008 build we get some floating point format differences (leading 0s) and some minor looking accuracy ones too while a VS2015 build runs the testsuite cleanly.

Because STRINGIFY is greedy and will convert all parts of the string that match
any define. In my case I had -D"TOPSRCDIR=/opt/conda-linux-32/.." which got
converted to "conda-1-32/.." since linux is defined as 1.
.. also adds a missing include config.h for the snprintf macro
Now the testsuite should be able to run.
@WardF WardF modified the milestones: future, 4.7.0 May 21, 2018
@WardF
Copy link
Copy Markdown
Member

WardF commented May 21, 2018

Taking a look at this now; fwiw, the test suite already ran on Windows, it sounds like we are using the same sort of dev environment (bash via msys2, m4). Reviewing now and will get merged ASAP or will follow up. Thanks!

@WardF
Copy link
Copy Markdown
Member

WardF commented May 21, 2018

I'm seeing failures when running Windows tests, they can be seen here:

@mingwandroid
Copy link
Copy Markdown
Contributor Author

Yeah I guess (without checking mind you!) you run the tests on a completely MSYS2 setup including GCC?

This is a 'mixed' setup since AD uses VC when possible. I'll take a look at the failure tomorrow, thanks!

@WardF
Copy link
Copy Markdown
Member

WardF commented May 21, 2018 via email

* Author: Wei-keng Liao.
*/

#include "config.h"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this change in another current PR #1266 so that it gets into the code base. All test programs must start by including config.h. I also checked the other tests in nc_test and nc_test4 and found a bunch more places where the include was missing, so I fixed those too. Thanks for noticing this.

Comment thread libhdf5/nc4hdf.c
#include "nc4dispatch.h"
#include <H5DSpublic.h>
#include <math.h>
#include <inttypes.h>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This include is already below:

#ifdef HAVE_INTTYPES_H
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#endif

Is that not working for your build?


# signal success/failure
if wget -c $Q --passive-ftp $FTPFILE ; then
if wget -c $Q --passive-ftp $FTPFILE || curl -O $FTPFILE; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add this change in one of my outstanding branches as well.

@WardF WardF modified the milestones: 4.6.2, 4.7.1 Apr 30, 2019
@WardF WardF modified the milestones: 4.7.1, 4.7.2 Aug 6, 2019
@WardF WardF modified the milestones: 4.7.2, 4.7.3 Oct 28, 2019
@WardF WardF closed this Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants