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

Issue compiling with ICC #2

Open
BJWiley233 opened this issue Dec 16, 2021 · 0 comments
Open

Issue compiling with ICC #2

BJWiley233 opened this issue Dec 16, 2021 · 0 comments

Comments

@BJWiley233
Copy link

Hi,

I am trying to compile with new Intel oneapi icc compiler. I was able to build adler32.c.o with gcc and clang but get a dependenchy issue below with icc. Any ideas for overcoming this?

[  9%] Building C object src/gromacs/CMakeFiles/tng_io_zlib.dir/__/external/tng_io/external/zlib/adler32.c.o
icc: command line warning #10006: ignoring unknown option '-fshow-sdk-path`'
icc: error #10172: dependency generation to a file requires dependency option
make[2]: *** [src/gromacs/CMakeFiles/tng_io_zlib.dir/__/external/tng_io/external/zlib/adler32.c.o] Error 1
make[1]: *** [src/gromacs/CMakeFiles/tng_io_zlib.dir/all] Error 2
make: *** [all] Error 2

Here are all my flags, paths and the command to CMAKE:

CFLAGS="-syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -L/opt/intel/oneapi/ipp/latest/lib -I/opt/intel/oneapi/ipp/latest/include -MMD -MF -lz" 
CXXFLAGS="-syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk -L/opt/intel/oneapi/ipp/latest/lib -I/opt/intel/oneapi/ipp/latest/include -MMD -MF -lz" 

export CPLUS_INCLUDE_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include
export C_INCLUDE_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include:$(xcrun --show-sdk-path)/usr/include
export LIBRARY_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib

cmake .. -DGMX_FFT_LIBRARY=mkl \
      -DMKL_LIBRARIES="/opt/intel/oneapi/mkl/2021.4.0/lib" \
      -DMKL_INCLUDE_DIR="/opt/intel/oneapi/mkl/2021.4.0/include" \
      -DCMAKE_C_COMPILER=icc \
      -DCMAKE_CXX_COMPILER=icpc \
      -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk \
      -DCMAKE_OSX_DEPLOYMENT_TARGET=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk

Thanks,
Brian

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