Code Monkey home page Code Monkey logo

Comments (7)

tjhei avatar tjhei commented on July 29, 2024

from candi.

SaeedZarzor avatar SaeedZarzor commented on July 29, 2024

Thank you for your reply. I have tried candi master branch and the problem is solved.
I have another issue, when I use gcc-11 compiler I get the error message in the first picture (as it is expected due to ARM64). On the other hand, when I try gcc compiler a get the error in the second picture.

What can I do ??
Screenshot 2022-03-17 at 14 06 43
Screenshot 2022-03-17 at 14 10 20

from candi.

tjhei avatar tjhei commented on July 29, 2024

Current GCC does not work on M1 hardware for large c++ codebases. Please use clang as described in https://github.com/dealii/dealii/wiki/Apple-ARM-M1-OSX

from candi.

SaeedZarzor avatar SaeedZarzor commented on July 29, 2024

I have used clang and also it did not work. I have received the following message
"The current version of deal.II requires a compiler with enabled C++14
support. Make sure to use a modern enough compiler (GCC version 5 onwards,
Clang version 4 onwards, or Microsoft MS VS 2015 onwards) and check that
the compiler flag "-std=" is either unset, or set to at least c++14."

the apple clang installed on my machine has version 13.1.6.

from candi.

tjhei avatar tjhei commented on July 29, 2024

the apple clang installed on my machine has version 13.1.6.

Clang 13 supports c++ 14. I probably did something incorrectly during configuration.

Can you post the whole text output that deal.II generates during configuration? Did you set any environment variable like CXX? What is the exact command line you used to run candi?

from candi.

SaeedZarzor avatar SaeedZarzor commented on July 29, 2024

I use the following command line without any further configuration
export CC=mpicc; export CXX=mpicxx; export FC=mpifort; export FF=mpifort;
OMPI_CC=calng; export OMPI_CXX=clang++; export OMPI_FC=gfortran-11

The output message is

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/cmake/setup_cached_variables.cmake
-- Prepending ${CUDA_NVCC_FLAGS} to ${DEAL_II_CUDA_FLAGS}
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- The C compiler identification is AppleClang 13.1.6.13160021
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/bin/mpicxx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/bin/mpicc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The Fortran compiler identification is GNU 11.2.0
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/homebrew/bin/mpifort - skipped

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/cmake/setup_deal_ii.cmake

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/cmake/setup_compiler_flags.cmake

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/cmake/setup_compiler_flags_gnu.cmake

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/bundled/setup_bundled.cmake

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/cmake/checks/check_01_cpu_features.cmake

-- Include /Users/saeed/dealii-candi/tmp/unpack/deal.II-master/cmake/checks/check_01_cxx_features.cmake
-- C++14 support is disabled.
-- C++14 support not available. Try to set -std=c++14 explicitly
-- Performing Test DEAL_II_HAVE_FLAG_std=c__14
-- Performing Test DEAL_II_HAVE_FLAG_std=c__14 - Failed
-- C++14 support is disabled.
CMake Error at cmake/checks/check_01_cxx_features.cmake:322 (MESSAGE):

The current version of deal.II requires a compiler with enabled C++14
support. Make sure to use a modern enough compiler (GCC version 5 onwards,
Clang version 4 onwards, or Microsoft MS VS 2015 onwards) and check that
the compiler flag "-std=" is either unset, or set to at least c++14.

Call Stack (most recent call first):
cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
CMakeLists.txt:112 (VERBOSE_INCLUDE)

-- Configuring incomplete, errors occurred!
See also "/Users/saeed/dealii-candi/tmp/build/deal.II-master/CMakeFiles/CMakeOutput.log".
See also "/Users/saeed/dealii-candi/tmp/build/deal.II-master/CMakeFiles/CMakeError.log".
Failure with exit status: 1
Exit message: There was a problem configuring dealii master.

from candi.

tjhei avatar tjhei commented on July 29, 2024

Try to not set any of the ENV variables and try again.

from candi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.