Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building v2.0.0 on Windows (mingw64) is broken #551

Open
DusanJovic-NOAA opened this issue Nov 4, 2024 · 1 comment
Open

Building v2.0.0 on Windows (mingw64) is broken #551

DusanJovic-NOAA opened this issue Nov 4, 2024 · 1 comment

Comments

@DusanJovic-NOAA
Copy link
Contributor

[1/111] Building C object utils/CMakeFiles/g2c_compare.dir/g2c_compare.c.obj
[2/111] Building C object utils/CMakeFiles/g2c_degrib2.dir/g2c_degrib2.c.obj
[3/111] Building C object utils/CMakeFiles/g2c_index.dir/g2c_index.c.obj
[4/111] Building C object src/CMakeFiles/g2c_objlib.dir/g2ccsv.c.obj
FAILED: src/CMakeFiles/g2c_objlib.dir/g2ccsv.c.obj 
C:\msys64\mingw64\bin\cc.exe -D_LARGEFILE64_SOURCE -IC:/g2c/NCEPLIBS-g2c-2.0.0/build/src -IC:/g2c/NCEPLIBS-g2c-2.0.0/src -g  -O3 -std=gnu11 -MD -MT src/CMakeFiles/g2c_objlib.dir/g2ccsv.c.obj -MF src\CMakeFiles\g2c_objlib.dir\g2ccsv.c.obj.d -o src/CMakeFiles/g2c_objlib.dir/g2ccsv.c.obj -c C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c
C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c: In function 'g2c_csv_init':
C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c:222:23: error: implicit declaration of function 'strsep'; did you mean 'strset'? [-Wimplicit-function-declaration]
  222 |                 tmp = strsep(&buf, "\"");
      |                       ^~~~~~
      |                       strset
C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c:222:21: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  222 |                 tmp = strsep(&buf, "\"");
      |                     ^
C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c:223:21: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  223 |                 tmp = strsep(&buf, "\"");
      |                     ^
C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c:225:21: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  225 |                 tmp = strsep(&buf, ",");
      |                     ^
C:/g2c/NCEPLIBS-g2c-2.0.0/src/g2ccsv.c:229:21: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  229 |                 tmp = strsep(&buf, ",");
      |                     ^
[5/111] Building C object src/CMakeFiles/g2c_objlib.dir/g2ccompare.c.obj
[6/111] Building C object src/CMakeFiles/g2c_objlib.dir/g2cio.c.obj
[7/111] Building C object src/CMakeFiles/g2c_objlib.dir/g2cindex.c.obj
[8/111] Building C object tests/CMakeFiles/tst_g2_create.dir/tst_g2_create.c.obj
[9/111] Building C object tests/CMakeFiles/tst_g2_create.dir/g2c_test_util.c.obj
ninja: build stopped: subcommand failed.
@edwardhartnett
Copy link
Contributor

Do we have a CI run which does this?

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

No branches or pull requests

2 participants