Hi, 

I'm trying to run something that requires Deal.II. I had an older MacBook 
Air which ran on an Intel chip where I didn’t seem to have any problems. 
However, I cannot seem to run step-1 successfully on my MacBook Pro which 
uses the Apple M1 chip. Would anyone happen to have any advice on this? 
I’ve attached a text file with the inputs and outputs of what I ran as 
well. 


Thanks,

Kavya

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/f3a87f4e-36fc-43a5-a0d7-20473e2f3ba4n%40googlegroups.com.
        ______           _  _____ _____
        |  _  \         | ||_   _|_   _|
        | | | |___  __ _| |  | |   | |
        | | | / _ \/ _| | |  | |   | |
        | |/ /  __/ (_| | |__| |_ _| |_
        |___/ \___|\__,_|_(_)___/ \___/

This is a bash shell with CMAKE_PREFIX_PATH and DYLD_LIBRARY_PATH set to work
with Deal.II. Links to all external libraries and deal.II itself are located in 

    /Applications/deal.II.app/Contents/Resources/Libraries/

If you want to set up your daily Terminal to work with deal.II, add these lines
to your ~/.profile (or ~/.zshrc, if you prefer zsh):

   export DEAL_II_CONF_SILENT=ON    # Turn off this message
   # DEAL_II_USE_MODULES=ON         # If you prefer to use spack modules
   . /Applications/deal.II.app/Contents/MacOS/dealii.conf

deal.II and all its dependencies were installed using spack, and are also
available through the spack and module command, e.g.:

    module load dealii

If you prefer to use modules, make sure you set DEAL_II_USE_MODULES to ON
in your profile path, so that CMAKE_PREFIX_PATH and DYLD_LIBRARY_PATH are not
set for you, but are set by the module command above.
    
bash-3.2$ cmake .
CMake Error: The source directory "/Users/kavya" does not appear to contain 
CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
bash-3.2$ cmake -DDEAL_II_DIR=/path/to/installed/deal.II .
CMake Error: The source directory "/Users/kavya" does not appear to contain 
CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
bash-3.2$ cd /Applications/deal.II.app
bash-3.2$ pwd
/Applications/deal.II.app
bash-3.2$ ls
Contents
bash-3.2$ cs Contents
bash: cs: command not found
bash-3.2$ cd Contents
bash-3.2$ ls
Info.plist      MacOS           Resources
bash-3.2$ cd Resources
bash-3.2$ ls
AppIcon.icns            MainMenu.nib            list
AppSettings.plist       dependencies.pickle     script
Libraries               examples                spack
bash-3.2$ cd examples
bash-3.2$ ls
CMakeLists.txt  step-20         step-34         step-48         step-61
README.md       step-21         step-35         step-49         step-62
step-1          step-22         step-36         step-5          step-63
step-10         step-23         step-37         step-50         step-64
step-11         step-24         step-38         step-51         step-65
step-12         step-25         step-39         step-52         step-67
step-12b        step-26         step-4          step-53         step-69
step-13         step-27         step-40         step-54         step-7
step-14         step-28         step-41         step-55         step-70
step-15         step-29         step-42         step-56         step-8
step-16         step-3          step-43         step-57         step-9
step-16b        step-30         step-44         step-58
step-17         step-31         step-45         step-59
step-18         step-32         step-46         step-6
step-2          step-33         step-47         step-60
bash-3.2$ open README.md
bash-3.2$ cd step-1
bash-3.2$ cmake .
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: 
/Applications/deal.II.app/Contents/Resources/spack/opt/spack/openmpi-3.1.6-pvpk/bin/mpic++
 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Autopilot invoked
###
#
#  Project  step-1  set up with  deal.II-9.2.0  found at
#      /Applications/deal.II.app/Contents/Resources/Libraries
#
#  CMAKE_BUILD_TYPE:          Debug
#
#  You can now run
#       $ make                - to compile and link the program
#       $ make run            - to (compile, link and) run the program
#
#       $ make sign           - to sign the executable with the supplied OSX 
developer key
#
#       $ make debug          - to switch the build type to 'Debug'
#       $ make release        - to switch the build type to 'Release'
#
#       $ make edit_cache     - to change (cached) configuration variables
#                               and rerun the configure and generate phases of 
CMake
#
#       $ make strip_comments - to strip the source files in this
#                               directory off their comments; this is 
irreversible
#       $ make clean          - to remove the generated executable as well as
#                               all intermediate compilation files
#       $ make runclean       - to remove all output generated by the program
#       $ make distclean      - to clean the directory from _all_ generated
#                               files (includes clean, runclean and the removal
#                               of the generated build system)
#       $ make info           - to view this message again
#
#  Have a nice day!
#
###
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Applications/deal.II.app/Contents/Resources/examples/step-1
bash-3.2$ make
Scanning dependencies of target step-1
[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o
[100%] Linking CXX executable step-1
[100%] Built target step-1
bash-3.2$ make run
[ 66%] Built target step-1
Scanning dependencies of target run
[100%] Run step-1 with Debug configuration
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
bash-3.2$ 

Reply via email to