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

GKlib fails to build on gnu systems #130

Open
platipodium opened this issue Sep 7, 2022 · 1 comment
Open

GKlib fails to build on gnu systems #130

platipodium opened this issue Sep 7, 2022 · 1 comment

Comments

@platipodium
Copy link
Contributor

Generally, it is now preferred to build these libraries outside of CoastalApp. There is, however, the option to include the build with the --thirdparty option to ./build.sh.

On strand (linux), I get

In file included from /gpfs/home/lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/./GKlib.h:41:0,
                 from /gpfs/home/lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/string.c:21:
/usr/include/signal.h:156:29: error: unknown type name ‘siginfo_t’
 extern void psiginfo (const siginfo_t *__pinfo, const char *__s);

On quoll., I get (M1 with gcc12/openmpi toolchain)

/opt/local/bin/gcc  -I/Users/Lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/. -I/Users/Lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/test -falign-functions=8 -DLINUX -D_FILE_OFFSET_BITS=64 -std=c99 -fno-strict-aliasing -march=native -fPIC -Werror -Wall -pedantic -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unknown-pragmas -Wno-unused-label -DNDEBUG -DNDEBUG2 -DHAVE_EXECINFO_H -DHAVE_GETLINE -O3 -arch arm64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -MD -MT CMakeFiles/GKlib.dir/graph.c.o -MF CMakeFiles/GKlib.dir/graph.c.o.d -o CMakeFiles/GKlib.dir/graph.c.o -c /Users/Lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/graph.c
/Users/Lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/graph.c: In function 'gk_graph_Read':
/Users/Lemmen/devel/noaa/CoastalApp/thirdparty_open/parmetis/GKlib/graph.c:297:26: error: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'ssize_t *' {aka 'long int *'} [-Werror=format=]
  297 |         if (fscanf(fpin, "%"SCNd64" %"SCNd64, &i, &i) != 2)
      |                          ^~~                  ~~
      |                                               |
      |                                               ssize_t * {aka long int *}

@platipodium
Copy link
Contributor Author

platipodium commented Oct 11, 2022

This is fixed on Ubuntu with the develop_build branch. But not yet on quoll, strand not tested, see #139 and #138

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

1 participant