'make' returns error on step-1 example

44 views
Skip to first unread message

Wakil Sarfaraz

unread,
Jul 27, 2021, 7:27:25 AM7/27/21
to deal.II User Group
Hi all,

I am coming back to using dealii after quite a few years.
I installed it on MacOS BigSur Version: 11.4 (20F71) and attempted to execute step-1.
cmake . worked fine
make returned this error:

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: /Library/Developer/CommandLineTools/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-4.0.5-yh6r/bin/mpic++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Autopilot invoked

###

#

#  Project  step-1  set up with  deal.II-9.3.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

[ 50%] Building CXX object CMakeFiles/step-1.dir/step-1.cc.o

make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libdl.tbd', needed by `step-1'.  Stop.

make[1]: *** [CMakeFiles/step-1.dir/all] Error 2

make: *** [all] Error 2

bash-3.2$ 


Any help will be much appreciated.


Wakil,

Wakil Sarfaraz

unread,
Jul 27, 2021, 3:44:56 PM7/27/21
to deal.II User Group
This issue is resolved!

Jean-Paul Pelteret

unread,
Jul 28, 2021, 4:41:11 PM7/28/21
to dea...@googlegroups.com
Dear Wakil,

I’m glad that you were able to solve this issue. It (the inclusion of this libdl.tbd library) is something that we have noticed, and are still actively trying to address to make the Mac package as robust as possible. May I ask, how did you solve the problem? It’s clear that you previously had the command line tools installed. Did you install Xcode after that, or something else?

Best,
Jean-Paul

-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/26cf8aa0-37a4-47e3-8bc2-6aee222670bcn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages