title: Could not determine size of CHARACTER while installing openmpi
body: <p>I am trying to install openmpi on Amazon ec2 instance. I have uninstalled the openmpi installations present in the system using - </p>
  
  <pre><code>yum remove -y  openmpi.x86_64 openmpi-devel.x86_64
  </code></pre>
  
  <p>This removes <code>2.1.1-1.31.amzn1</code> version of openmpi and openmpi devel.</p>
  
  <p>I have downloaded the tar file from official openmpi <a href="https://www.open-mpi.org/software/ompi/v3.0/" rel="nofollow noreferrer">site</a>. When I try running configure, I get the following error - </p>
  
  <pre><code>checking if C and Fortran are link compatible... yes
  checking to see if Fortran compiler likes the C++ exception flags... skipped (no C++ exceptions flags)
  checking to see if mpifort compiler needs additional linker flags... none
  checking if Fortran compiler supports CHARACTER... yes
  checking size of Fortran CHARACTER... configure: WARNING: Could not determine size of CHARACTER
  configure: WARNING: See config.log for details
  configure: error: Cannot continue
  </code></pre>
  
  <p>Errors in config.log file - </p>
  
  <p><code>configure:37098: $? = 0
  configure:37111: result: yes
  configure:37146: checking size of Fortran CHARACTER
  configure:37214: /usr/lib/a-4.2.0-py-3.5.3-dl-gpu-full/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -finline-functions -fno-strict-aliasing -I. -c conftest.c
  configure:37221: $? = 0
  configure:37231: gfortran   conftestf.f90 conftest.o -o conftest -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now
  /usr/bin/ld: conftest.o: unrecognized relocation (0x29) in section .text'
  /usr/bin/ld: final link failed: Bad value
  collect2: error: ld returned 1 exit status
  configure:37238: $? = 1
  configure:37259: here is the Fortran program:
  program fsize</code></p>
  
  <p>I have tried with <code>./configure —disable-fortran</code> as well but I am getting the same error.</p>
  
  <p>Any help will be appreciated.</p>