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

The GCC version is incompatible with building OneFlow MLIR #6

Open
terryzhao127 opened this issue Dec 4, 2021 · 0 comments
Open

The GCC version is incompatible with building OneFlow MLIR #6

terryzhao127 opened this issue Dec 4, 2021 · 0 comments

Comments

@terryzhao127
Copy link

terryzhao127 commented Dec 4, 2021

Current GCC version: 7.3.0

The command to reproduce:

# After installing the conda activate
cmake .. -C ../cmake/caches/cn/fast/mlir-cuda-75.cmake

The output:

loading initial cache file ../cmake/caches/cn/fast/mlir-cuda-75.cmake
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/bin/x86_64-conda_cos6-linux-gnu-cc
-- Check for working C compiler: /home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/bin/x86_64-conda_cos6-linux-gnu-cc - broken
CMake Error at /home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "/home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/bin/x86_64-conda_cos6-linux-gnu-cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/guikarist/projects/oneflow/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/bin/ninja cmTC_fa944 && [1/2] Building C object CMakeFiles/cmTC_fa944.dir/testCCompiler.c.o
    [2/2] Linking C executable cmTC_fa944
    FAILED: cmTC_fa944 
    : && /home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/bin/x86_64-conda_cos6-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/include -fuse-ld=lld -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/lib -Wl,-rpath-link,/home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/lib -L/home/guikarist/.miniconda3/envs/oneflow-dev-gcc7-v2/lib CMakeFiles/cmTC_fa944.dir/testCCompiler.c.o -o cmTC_fa944   && :
    x86_64-conda_cos6-linux-gnu-cc: error: unrecognized command line option '-fuse-ld=lld'; did you mean '-fuse-ld=bfd'?
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:62 (project)


-- Configuring incomplete, errors occurred!
See also "/home/guikarist/projects/oneflow/build/CMakeFiles/CMakeOutput.log".
See also "/home/guikarist/projects/oneflow/build/CMakeFiles/CMakeError.log".

Maybe we should specify a newer version for installing gcc.

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