Daniel,
Thanks for your reply. I am attaching 2 files. I do not see detailed.log
file anywhere in the build directory.
Vikram
On Monday, May 15, 2017 at 6:25:38 AM UTC-5, Daniel Arndt wrote:
>
> Vikram,
>
>> I am new to dealii. I installed deal.II 8.5.0 using the dmg package from
>> dealii website on mac OS Sierra. When I tried to configure I got this error:
>>
>> CMake Error at
>> /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake:44
>>
>> (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:
>> /Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
>>
>>
>>
>> Run Build Command:"/usr/bin/make" "cmTC_5fce3/fast"
>>
>> /Applications/Xcode.app/Contents/Developer/usr/bin/make -f
>> CMakeFiles/cmTC_5fce3.dir/build.make CMakeFiles/cmTC_5fce3.dir/build
>>
>> Building CXX object CMakeFiles/cmTC_5fce3.dir/testCXXCompiler.cxx.o
>>
>> /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx -o
>> CMakeFiles/cmTC_5fce3.dir/testCXXCompiler.cxx.o -c
>>
>> /Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
>>
>>
>> make[1]: *** [CMakeFiles/cmTC_5fce3.dir/testCXXCompiler.cxx.o] Illegal
>> instruction: 4
>>
>> make: *** [cmTC_5fce3/fast] Error 2
>>
>> To workaround this I changed the CXX compiler option though ccmake. I was
>> able to successfully configure and build. However when I ran I got this
>> error:
>>
>> make[3]: *** [CMakeFiles/run] Illegal instruction: 4
>> make[2]: *** [CMakeFiles/run.dir/all] Error 2
>> make[1]: *** [CMakeFiles/run.dir/rule] Error 2
>> make: *** [run] Error 2
>>
>> Can anyone tell what I am not doing right?
>>
> If CMake failed, there should exist
> CMakeFiles/CMakeError.log
> CMakeOutput.log
> detailed.log
> in the build directory. Can you send these files?
>
> Best,
> Daniel
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.
The system is: Darwin - 16.5.0 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c"
succeeded.
Compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
Build flags:
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c"
produced "a.out"
The C compiler identification is AppleClang, found in
"/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/3.7.2/CompilerIdC/a.out"
Determining if the C compiler works passed with the following output:
Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_db260/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_db260.dir/build.make CMakeFiles/cmTC_db260.dir/build
Building C object CMakeFiles/cmTC_db260.dir/testCCompiler.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-o CMakeFiles/cmTC_db260.dir/testCCompiler.c.o -c
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_db260
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_db260.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTC_db260.dir/testCCompiler.c.o -o cmTC_db260
Detecting C compiler ABI info compiled with the following output:
Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_7aad1/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_7aad1.dir/build.make CMakeFiles/cmTC_7aad1.dir/build
Building C object CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-o CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o -c
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_7aad1
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_7aad1.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v
CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o -o cmTC_7aad1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
-demangle -lto_library
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib
-dynamic -arch x86_64 -macosx_version_min 10.12.0 -o cmTC_7aad1
-search_paths_first -headerpad_max_install_names -v
CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o -lSystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a
@(#)PROGRAM:ld PROJECT:ld64-278.4
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7k armv7m armv7em (tvOS)
Library search paths:
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
Parsed C implicit link information from above output:
link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)]
ignore line: [Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command:"/usr/bin/make" "cmTC_7aad1/fast"]
ignore line: [/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_7aad1.dir/build.make CMakeFiles/cmTC_7aad1.dir/build]
ignore line: [Building C object
CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o]
ignore line:
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-o CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o -c
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c]
ignore line: [Linking C executable cmTC_7aad1]
ignore line:
[/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_7aad1.dir/link.txt --verbose=1]
ignore line:
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v
CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o -o cmTC_7aad1 ]
ignore line: [Apple LLVM version 8.1.0 (clang-802.0.42)]
ignore line: [Target: x86_64-apple-darwin16.5.0]
ignore line: [Thread model: posix]
ignore line: [InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin]
link line: [
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
-demangle -lto_library
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib
-dynamic -arch x86_64 -macosx_version_min 10.12.0 -o cmTC_7aad1
-search_paths_first -headerpad_max_install_names -v
CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o -lSystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a]
arg
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld]
==> ignore
arg [-demangle] ==> ignore
arg [-lto_library] ==> lib [to_library]
arg
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib]
==> ignore
arg [-dynamic] ==> ignore
arg [-arch] ==> ignore
arg [x86_64] ==> ignore
arg [-macosx_version_min] ==> ignore
arg [10.12.0] ==> ignore
arg [-o] ==> ignore
arg [cmTC_7aad1] ==> ignore
arg [-search_paths_first] ==> ignore
arg [-headerpad_max_install_names] ==> ignore
arg [-v] ==> ignore
arg [CMakeFiles/cmTC_7aad1.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [-lSystem] ==> lib [System]
arg
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a]
==> lib
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a]
Library search paths: [;/usr/lib;/usr/local/lib]
Framework search paths: [;/Library/Frameworks/;/System/Library/Frameworks/]
remove lib [System]
remove lib
[/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a]
collapse library dir [/usr/lib] ==> [/usr/lib]
collapse library dir [/usr/local/lib] ==> [/usr/local/lib]
collapse framework dir [/Library/Frameworks/] ==> [/Library/Frameworks]
collapse framework dir [/System/Library/Frameworks/] ==>
[/System/Library/Frameworks]
implicit libs: [to_library]
implicit dirs: [/usr/lib;/usr/local/lib]
implicit fwks: [/Library/Frameworks;/System/Library/Frameworks]
Detecting C [-std=c11] compiler features compiled with the following output:
Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_09e1d/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_09e1d.dir/build.make CMakeFiles/cmTC_09e1d.dir/build
Building C object CMakeFiles/cmTC_09e1d.dir/feature_tests.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-std=c11 -o CMakeFiles/cmTC_09e1d.dir/feature_tests.c.o -c
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/feature_tests.c
Linking C executable cmTC_09e1d
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_09e1d.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTC_09e1d.dir/feature_tests.c.o -o cmTC_09e1d
Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:1c_restrict
Feature record: C_FEATURE:1c_static_assert
Feature record: C_FEATURE:1c_variadic_macros
Detecting C [-std=c99] compiler features compiled with the following output:
Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_b1224/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_b1224.dir/build.make CMakeFiles/cmTC_b1224.dir/build
Building C object CMakeFiles/cmTC_b1224.dir/feature_tests.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-std=c99 -o CMakeFiles/cmTC_b1224.dir/feature_tests.c.o -c
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/feature_tests.c
Linking C executable cmTC_b1224
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_b1224.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTC_b1224.dir/feature_tests.c.o -o cmTC_b1224
Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:1c_restrict
Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:1c_variadic_macros
Detecting C [-std=c90] compiler features compiled with the following output:
Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_69f07/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_69f07.dir/build.make CMakeFiles/cmTC_69f07.dir/build
Building C object CMakeFiles/cmTC_69f07.dir/feature_tests.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-std=c90 -o CMakeFiles/cmTC_69f07.dir/feature_tests.c.o -c
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/feature_tests.c
Linking C executable cmTC_69f07
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/Cellar/cmake/3.7.2/bin/cmake
-E cmake_link_script CMakeFiles/cmTC_69f07.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/cmTC_69f07.dir/feature_tests.c.o -o cmTC_69f07
Feature record: C_FEATURE:1c_function_prototypes
Feature record: C_FEATURE:0c_restrict
Feature record: C_FEATURE:0c_static_assert
Feature record: C_FEATURE:0c_variadic_macros
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp"
failed.
Compiler: /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx
Build flags:
Id flags:
The output was:
Illegal instruction
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp"
failed.
Compiler: /Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx
Build flags:
Id flags: -c
The output was:
Illegal instruction
Checking whether the CXX compiler is IAR using "" did not match "IAR .+
Compiler":
Determining if the CXX compiler works failed with the following output:
Change Dir:
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_11628/fast"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
CMakeFiles/cmTC_11628.dir/build.make CMakeFiles/cmTC_11628.dir/build
Building CXX object CMakeFiles/cmTC_11628.dir/testCXXCompiler.cxx.o
/Applications/deal.II-8.5-brew.app/Contents/Resources/brew/bin/mpicxx -o
CMakeFiles/cmTC_11628.dir/testCXXCompiler.cxx.o -c
/Users/vikramb/Documents/dealII/svn_co/deal.II/examples/step-1/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
make[1]: *** [CMakeFiles/cmTC_11628.dir/testCXXCompiler.cxx.o] Illegal
instruction: 4
make: *** [cmTC_11628/fast] Error 2