[overture] Re: Installing Overture.v24 on Mac OSX Lion

  • From: Bill Henshaw <henshaw@xxxxxxxx>
  • To: "overture@xxxxxxxxxxxxx" <overture@xxxxxxxxxxxxx>
  • Date: Thu, 01 Mar 2012 16:30:01 -0800

Hi Joe,
  I am not sure if it really matters but normally gcc etc. would be my path
so that CC=gcc, etc.

...Bill


J. P. Bernstein wrote:
Hello,

I am following the Overture Mac OSX install instructions at:

https://computation.llnl.gov/casc/Overture/henshaw/install/node13.html

I am trying to install on a i7 Macbook Pro with OSX Lion. First a couple comments on the instructions:

1) The gcc port referenced is gcc43 not gcc4.3.
2) There is currently no motif port (note that the glw port install depends on openmotif).

Back to the install problem I am having. I successfully executed Stage I on the page above (allowing for the issues mentioned in 1 and 2 above) using the following:

port install gcc43 hdf5 petsc mesa glw

I have set the following set:

CC=/opt/local/bin/gcc
CXX=/opt/local/bin/g++
FC=/opt/local/bin/gfortran

Note:

$ which gcc g++ gfortran
/opt/local/bin/gcc
/opt/local/bin/g++
/opt/local/bin/gfortran

$ ls -l /opt/local/bin/gcc /opt/local/bin/g++ /opt/local/bin/gfortran
lrwxr-xr-x 1 root admin 10 Mar 1 10:21 /opt/local/bin/g++ -> g++-mp-4.3 lrwxr-xr-x 1 root admin 10 Mar 1 10:21 /opt/local/bin/gcc -> gcc-mp-4.3 lrwxr-xr-x 1 root admin 15 Mar 1 10:21 /opt/local/bin/gfortran -> gfortran-mp-4.3

When I do the A++ configure command from Stage II, Step 4, I get:

checking C compiler... /opt/local/bin/gcc -I/usr/include/malloc -mlongcall
checking for C compiler default output... configure: error: C compiler cannot create executables
configure: error: /bin/sh './configure' failed for A++

The full configure dump is below and the config log is attached.

I successfully compiled hello-world programs with the gcc, g++, and gfortran compilers above, so this seems to be a A++ configure issue, not a compiler issue. Any help would be much appreciated.

Best,

Joe Bernstein



-----

$sudo ./configure -with-CC="$CC -I/usr/include/malloc -mlongcall" -with-CXX="$CXX -I/usr/include/malloc -mlongcall" -disable-SHARED_LIBS -prefix=`pwd`
checking build system type... i386-apple-darwin11.3.0
checking host system type... i386-apple-darwin11.3.0
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking whether make sets ${MAKE}... (cached) yes
configure: Skipping PerformanceTests ...
configure: Skip P++ (parallel array class) ...
checking for a BSD compatible install... /usr/bin/install -c
checking for gtar...
checking for gtar... no
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in A++
configure: running /bin/sh './configure' '-with-CC=/opt/local/bin/gcc -I/usr/include/malloc -mlongcall' '-with-CXX=/opt/local/bin/g++ -I/usr/include/malloc -mlongcall' -disable-SHARED_LIBS -prefix=/usr/local/A++P++-0.8.0 --cache-file=/dev/null --srcdir=.
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
In A++P++/A++/configure.in (before setting INCLUDES variable): INCLUDES =
In A++P++/A++/configure.in (after setting INCLUDES variable): INCLUDES = -I. -I$(srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
checking build system type... i386-apple-darwin11.3.0
checking for style of include used by make... GNU
checking host system type... i386-apple-darwin11.3.0
In A++P+++_common_autoconfig macro: ARCH =
In A++P+++_common_autoconfig macro: srcdir = .
checking if we should use original source for generation of A++/P++ source code... can't find "./../Common_Code" directory (this must be a distribution of A++/P++ so source code development not practical). In A++P+++_common_autoconfig macro: enable_DEVELOPMENT_SPECIFIC_DEPENDENCIES = no configure: The normal prefix has been changed to '/usr/local/A++P++-0.8.0/A++/install' in order to prevent name clashes with the P++ package. configure: Building /usr/local/A++P++-0.8.0/A++/install/include directory ...
configure: Building /usr/local/A++P++-0.8.0/A++/install/lib directory ...
checking whether make sets ${MAKE}... (cached) yes
checking for ld... ld
checking C compiler... /opt/local/bin/gcc -I/usr/include/malloc -mlongcall
checking for C compiler default output... configure: error: C compiler cannot create executables
configure: error: /bin/sh './configure' failed for A++
sed: confdefs.h: No such file or directory


Other related posts: