cmake . returns error on MAC OS XI Captain version 10.11.6 upon compiling dealii-8.5.0-brew.dmg

869 views
Skip to first unread message

Wakil Sarfaraz

unread,
May 11, 2018, 1:36:48 PM5/11/18
to deal.II User Group
Hi all,
I have been away from deal.ii for almost two years.
I have come back and wanted to install the most updated version which is dealii-8.5.0-brew.dmg
When I attempted to cmake the step-1 of the examples, it returns error containing the following texts:

-- The C compiler identification is unknown

-- The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:38 (PROJECT):

  The CMAKE_C_COMPILER:


    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc


  is not a full path to an existing compiler tool.


  Tell CMake where to find the compiler by setting either the environment

  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to

  the compiler, or to the compiler name if it is in the PATH.



-- Check for working CXX compiler: /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx

-- Check for working CXX compiler: /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx -- broken

CMake Error at /Applications/CMake.app/Contents/share/cmake-3.11/Modules/CMakeTestCXXCompiler.cmake:45 (message):

  The C++ compiler


    "/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx"


  is not able to compile a simple test program.


  It fails with the following output:


    Change Dir: /Applications/deal.II-8.5-brew.app/Contents/Resources/examples/step-1/CMakeFiles/CMakeTmp

    

    Run Build Command:"/usr/bin/make" "cmTC_a4024/fast"

    /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_a4024.dir/build.make CMakeFiles/cmTC_a4024.dir/build

    Building CXX object CMakeFiles/cmTC_a4024.dir/testCXXCompiler.cxx.o

    /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx     -o CMakeFiles/cmTC_a4024.dir/testCXXCompiler.cxx.o -c /Applications/deal.II-8.5-brew.app/Contents/Resources/examples/step-1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

    make[1]: *** [CMakeFiles/cmTC_a4024.dir/testCXXCompiler.cxx.o] Illegal instruction: 4

    make: *** [cmTC_a4024/fast] Error 2

    


  


  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:38 (PROJECT)



-- Configuring incomplete, errors occurred!

See also "/Applications/deal.II-8.5-brew.app/Contents/Resources/examples/step-1/CMakeFiles/CMakeOutput.log".

See also "/Applications/deal.II-8.5-brew.app/Contents/Resources/examples/step-1/CMakeFiles/CMakeError.log".

localhost:step-1 wakilsarfaraz$ 

I will greatly appreciate your help on this.

Regards,

Denis Davydov

unread,
May 11, 2018, 4:04:17 PM5/11/18
to deal.II User Group
Hi,

Make sure you have XCode installed as well as command line tools: xcode-select --install

Regards,
Denis.

Wakil Sarfaraz

unread,
May 11, 2018, 4:53:32 PM5/11/18
to deal.II User Group
Hi Denis,
Xcode is installed on my machine. It is just that I deleted the dmg files associated to previous versions of deal.ii and cmake, which was perfectly working.
When I downloaded the new versions today, it returned these errors.

Best,
Wakil 

Denis Davydov

unread,
May 11, 2018, 5:46:16 PM5/11/18
to deal.II User Group
Hi Wakil,

so command line tools are installed, did you check?

CMake tells you the error: 

 The CMAKE_C_COMPILER:

   
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

 
is not a full path to an existing compiler tool.

so see whether you have this or not. Perhaps something changes in between macOS versions, I won't be surprized. The dmg you download are built with specific version (probably Sierra or High Sierra) using Apple's clang. So if location of compiler changes between those versions, then there is a problem. 

Regards,

Denis

Denis Davydov

unread,
May 11, 2018, 5:47:29 PM5/11/18
to deal.II User Group
you can also try a pre-release package from this post: 

Wakil Sarfaraz

unread,
May 11, 2018, 6:30:03 PM5/11/18
to dea...@googlegroups.com
Hi Denis,

The command line tool is installed as shown in this:

Wakils-MBP:~ wakilsarfaraz$ sudo xcode-select --install

Password:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

Wakils-MBP:~ wakilsarfaraz$ 


I will check the other suggestion you sent,
thanks for your effort.

Best
Wakil

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/KTR-9nGYemg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wakil Sarfaraz

unread,
May 11, 2018, 6:40:26 PM5/11/18
to dea...@googlegroups.com
Can this new version be installed on Mac without a dmg file?
Apologies if the question is too basic.

Best,
Wakil

--

Wakil Sarfaraz

unread,
May 11, 2018, 6:42:31 PM5/11/18
to dea...@googlegroups.com
I got the dmg for version 9.0.0,
thanks,
Wakil

On Fri, May 11, 2018 at 10:47 PM, Denis Davydov <davy...@gmail.com> wrote:

--

Wakil Sarfaraz

unread,
May 11, 2018, 7:34:23 PM5/11/18
to dea...@googlegroups.com
In version 9.0.0 the examples directory is no longer located in /Applications/deal.II-9.0.0.app/Contents/Resources/examples,
Could you please help me allocated this?

Thanks,
Wakil,

On Fri, May 11, 2018 at 10:47 PM, Denis Davydov <davy...@gmail.com> wrote:

--

luca.heltai

unread,
May 11, 2018, 7:37:26 PM5/11/18
to Deal.II Users
The deal.II source directory can be found under

/Applications/deal.II-9.0.0.app/Contents/Resources/spack/src/deal.II-9.0.0

There you will find the examples directory.

In the new package (that I’m building right now), you’ll also have in the usual location.

Best,
Luca.
> To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages