Installed via Anaconda - everything looked fine during installation. The python code is:
import dolfinx
print(f"DOLFINx version: {dolfinx.version} based on GIT commit: {dolfinx.git_commit_hash} of GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment")
from mpi4py import MPI
from dolfinx import mesh, fem
domain = mesh.create_unit_square(MPI.COMM_WORLD, 8, 8, mesh.CellType.quadrilateral)
V = fem.FunctionSpace(domain,(“Lagrange”,1))
The error I’m getting is:
DOLFINx version: 0.6.0 based on GIT commit: of GitHub - FEniCS/dolfinx: Next generation FEniCS problem solving environment
INFO:root:running build_ext
INFO:root:building ‘libffcx_elements_be31353fd8053fca725204040b5744daf7077c43’ extension
INFO:root:clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/debotton/anaconda3/envs/fenicsx-env/include -fPIC -O2 -isystem /Users/debotton/anaconda3/envs/fenicsx-env/include -I/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/ffcx/codegeneration -I/Users/debotton/anaconda3/envs/fenicsx-env/include/python3.10 -c libffcx_elements_be31353fd8053fca725204040b5744daf7077c43.c -o ./libffcx_elements_be31353fd8053fca725204040b5744daf7077c43.o -O2 -g0
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Traceback (most recent call last):
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py”, line 185, in _compile
self.spawn(compiler_so + cc_args + [src, ‘-o’, obj] + extra_postargs)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py”, line 1041, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/spawn.py”, line 70, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command ‘/usr/bin/clang’ failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/cffi/ffiplatform.py”, line 51, in _build
dist.run_command(‘build_ext’)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/dist.py”, line 1221, in run_command
super().run_command(command)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/dist.py”, line 988, in run_command
cmd_obj.run()
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/command/build_ext.py”, line 84, in run
_build_ext.run(self)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py”, line 345, in run
self.build_extensions()
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py”, line 467, in build_extensions
self._build_extensions_serial()
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py”, line 493, in _build_extensions_serial
self.build_extension(ext)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/command/build_ext.py”, line 246, in build_extension
_build_ext.build_extension(self, ext)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py”, line 548, in build_extension
objects = self.compiler.compile(
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py”, line 600, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py”, line 187, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command ‘/usr/bin/clang’ failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Users/debotton/Documents/Research/Fenics/Demo/obo.py”, line 14, in
V = fem.FunctionSpace(domain,(“Lagrange”,1))
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/dolfinx/fem/function.py”, line 487, in init
(self._ufcx_element, self._ufcx_dofmap), module, code = jit.ffcx_jit(
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/dolfinx/jit.py”, line 56, in mpi_jit
return local_jit(*args, **kwargs)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/dolfinx/jit.py”, line 206, in ffcx_jit
r = ffcx.codegeneration.jit.compile_elements([ufl_object], options=p_ffcx, **p_jit)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/ffcx/codegeneration/jit.py”, line 144, in compile_elements
impl = _compile_objects(decl, elements, names, module_name, p, cache_dir,
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/ffcx/codegeneration/jit.py”, line 270, in _compile_objects
ffibuilder.compile(tmpdir=cache_dir, verbose=True, debug=cffi_debug)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/cffi/api.py”, line 725, in compile
return recompile(self, module_name, source, tmpdir=tmpdir,
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/cffi/recompiler.py”, line 1564, in recompile
outputfilename = ffiplatform.compile(‘.’, ext,
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/cffi/ffiplatform.py”, line 22, in compile
outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
File “/Users/debotton/anaconda3/envs/fenicsx-env/lib/python3.10/site-packages/cffi/ffiplatform.py”, line 58, in _build
raise VerificationError(‘%s: %s’ % (e.class.name, e))
cffi.VerificationError: CompileError: command ‘/usr/bin/clang’ failed with exit code 1