Undefined symbols for architecture x86_64:
   "_main", referenced from:
     implicit entry/start for main executable
  ld: symbol(s) not found for architecture x86_64
  collect2: error: ld returned 1 exit status
  failure.
  removing: _configtest.c _configtest.o
  error: Cannot link MPI programs. Check your configuration!!! ]
From my google searches i believe it has something to do with using a 64 bit computer or potentially needing to specify that I'm using openmpi rather than MPICH, etc. Freddie suggested that 'This may be because either Python/OpenMPI have been built as 32-bit applications.' Any suggestions on how to get around this or a better alternative would be greatly appreciated,
thanks in advance,
Gabriel
To view this discussion on the web visit https://groups.google.com/d/msgid/mpi4py/CAEcYPwA4xnwXaLMQDCUcbnW%2BmGPVBj6OUL03O46NvDv2xxkLNA%40mail.gmail.com.
Final lines of error when using '$ pip install mpi4py':
Â
  Undefined symbols for architecture x86_64:
   "_MPI_Finalize", referenced from:
     _main in _configtest.o
   "_MPI_Init", referenced from:
     _main in _configtest.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  failure.
  removing: _configtest.c _configtest.o
  error: Cannot link MPI programs. Check your configuration!!!
Undefined symbols for architecture x86_64:
 "_MPI_Finalize", referenced from:
   _main in _configtest.o
 "_MPI_Init", referenced from:
   _main in _configtest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: Setup script exited with error: Cannot link MPI programs. Check your configuration!!!
Warning: python-2.7.11 already installed, it's just not linked
Warning: mpich-3.2 already installed, it's just not linked
$ pip install mpi4py
Undefined symbols for architecture x86_64:
  "_MPI_Finalize", referenced from:
    _main in _configtest.o
  "_MPI_Init", referenced from:
    _main in _configtest.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see invocation)
 failure.
 removing: _configtest.c _configtest.o
 error: Cannot link MPI programs. Check your configuration!!!
 Â
 ----------------------------------------
 Failed building wheel for mpi4py
 Running setup.py clean for mpi4py
Failed to build mpi4py
Installing collected packages: mpi4py
  Running setup.py install for mpi4py ... error
followed later by:
  Undefined symbols for architecture x86_64:
   "_MPI_Finalize", referenced from:
     _main in _configtest.o
   "_MPI_Init", referenced from:
     _main in _configtest.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  failure.
  removing: _configtest.c _configtest.o
  error: Cannot link MPI programs. Check your configuration!!!
  Â
  ----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/9j/s316vxwj06qdj8yd432gj7k40000gn/T/pip-build-3a22qqzu/mpi4py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/9j/s316vxwj06qdj8yd432gj7k40000gn/T/pip-xx4ne8pm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/9j/s316vxwj06qdj8yd432gj7k40000gn/T/pip-build-3a22qqzu/mpi4py
--
You received this message because you are subscribed to the Google Groups "mpi4py" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpi4py+un...@googlegroups.com.
To post to this group, send email to mpi...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpi4py.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpi4py/558fca1b-8a4e-4427-b9f1-a8badfead175%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "mpi4py" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mpi4py/PTKq6abLpNQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mpi4py+un...@googlegroups.com.
To post to this group, send email to mpi...@googlegroups.com.
Visit this group at https://groups.google.com/group/mpi4py.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpi4py/CAPhiW4hr-2bbp36aX9OBjW0GqSfM6o-ZFxEjwhVE64iC109K3w%40mail.gmail.com.