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

macOS build: EVPATH fails #2454

Open
ax3l opened this issue Sep 8, 2020 · 0 comments
Open

macOS build: EVPATH fails #2454

ax3l opened this issue Sep 8, 2020 · 0 comments

Comments

@ax3l
Copy link
Contributor

ax3l commented Sep 8, 2020

I am trying to build ADIOS 2.6.0 on macOS 10.15, compatible with SDK 10.9.
CMake:

cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DADIOS2_BUILD_EXAMPLES=OFF -DADIOS2_BUILD_TESTING=OFF -DADIOS2_USE_BZip2=OFF -DADIOS2_USE_Fortran=OFF -DADIOS2_USE_MPI=OFF -DADIOS2_USE_PNG=OFF -DHDF5_USE_STATIC_LIBRARIES:BOOL=ON -DCMAKE_DISABLE_FIND_PACKAGE_LibFFI=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BISON=TRUE -DCMAKE_INSTALL_PREFIX=/usr/local ../ADIOS2-2.6.0
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032

I get the following compile error with EVPATH.

[ 42%] Building C object thirdparty/EVPath/EVPath/CMakeFiles/EVPath.dir/cmzplenet.c.o
In file included from /Users/runner/work/openPMD-api/openPMD-api/src/build-ADIOS2/thirdparty/EVPath/EVPath/cmzplenet.c:21:
/Users/runner/work/openPMD-api/openPMD-api/src/ADIOS2-2.6.0/thirdparty/EVPath/EVPath/zpl-enet/include/enet.h:4905:13: error: conflicting types for 'clock_gettime'
        int clock_gettime(int X, struct timespec *ts) {
            ^
/Applications/Xcode_11.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h:178:5: note: previous declaration is here
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
    ^
1 error generated.

Upstream bug report with EVPATH: GTkorvo/evpath#47
Full log: adios2_evpath.zip

Cross-link: openPMD/openPMD-api@9a8344a

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