All,<br><br>I am having a very strange problem compiling IPOPT with a brand new installation of Mac OS-X Snow Leopard using the following ./configure command:<br><br>./configure --prefix=$HOME/Software/ipopt/install CXX=g++ CC=gcc
F77=gfortran ADD_CXXFLAGS="-m64" ADD_CCFLAGS="-m64" ADD_FFLAGS="-m64"
FLIBS="-lgfortran -lSystem -lg2c"--disable-shared<br><br>At the bottom of the output below you will see the error, "configure: error: linking to Fortran libraries from C fails." I have gfortran installed and the gfortran libraries are in the directory /usr/local/lib. I have compiled IPOPT successfully in Snow Leopard many times at this point using the above configure command and have not had a problem. hen I tried adding "-L/usr/local/lib" to my FLIBS, nothing changed (that is, I still received the same error).<br>
<br>I would be grateful if somebody could tell me what may be the problem.<br><br>Anil Rao<br><br><br><br><br><br>./configure --prefix=$HOME/Software/ipopt/install CXX=g++ CC=gcc F77=gfortran ADD_CXXFLAGS="-m64" ADD_CCFLAGS="-m64" ADD_FFLAGS="-m64" FLIBS="-L/usr/local/lib -lgfortran -lSystem -lg2c"--disable-shared<br>
checking build system type... i386-apple-darwin10.4.0<br>checking whether we want to compile in debug mode... no<br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes<br>
checking whether we are cross compiling... no<br>checking for suffix of executables... <br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ANSI C... none needed<br>configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas <br>
checking whether we are using the GNU C++ compiler... yes<br>checking whether g++ accepts -g... yes<br>checking whether C++ compiler g++ works... yes<br>configure: C++ compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -m64 <br>
configure: Trying to determine Fortran compiler name<br>checking for xlf_r... gfortran<br>checking whether we are using the GNU Fortran 77 compiler... yes<br>checking whether gfortran accepts -g... yes<br>configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe -m64<br>
checking for egrep... grep -E<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for gawk... no<br>checking for mawk... no<br>checking for nawk... no<br>
checking for awk... awk<br>checking whether make sets $(MAKE)... yes<br>checking for style of include used by make... GNU<br>checking dependency style of gcc... gcc3<br>checking dependency style of g++... gcc3<br>checking whether to enable maintainer-specific portions of Makefiles... no<br>
checking host system type... i386-apple-darwin10.4.0<br>checking for a sed that does not truncate output... /usr/bin/sed<br>checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld<br>checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) is GNU ld... no<br>
checking for /usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld option to reload object files... -r<br>checking for BSD-compatible nm... /usr/bin/nm<br>checking whether ln -s works... yes<br>checking how to recognise dependent libraries... pass_all<br>
checking how to run the C preprocessor... gcc -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>
checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking dlfcn.h usability... yes<br>checking dlfcn.h presence... yes<br>
checking for dlfcn.h... yes<br>checking how to run the C++ preprocessor... g++ -E<br>checking the maximum length of command line arguments... 196608<br>checking command to parse /usr/bin/nm output from gcc object... ok<br>
checking for objdir... .libs<br>checking for ar... ar<br>checking for ranlib... ranlib<br>checking for strip... strip<br>checking if gcc supports -fno-rtti -fno-exceptions... no<br>checking for gcc option to produce PIC... -fno-common<br>
checking if gcc PIC flag -fno-common works... yes<br>checking if gcc static flag -static works... no<br>checking if gcc supports -c -o file.o... yes<br>checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) supports shared libraries... yes<br>
checking dynamic linker characteristics... darwin10.4.0 dyld<br>checking how to hardcode library paths into programs... immediate<br>checking whether stripping libraries is possible... yes<br>checking if libtool supports shared libraries... yes<br>
checking whether to build shared libraries... yes<br>checking whether to build static libraries... no<br>configure: creating libtool<br>appending configuration tag "CXX" to libtool<br>checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld<br>
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) is GNU ld... no<br>checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) supports shared libraries... yes<br>checking for g++ option to produce PIC... -fno-common<br>
checking if g++ PIC flag -fno-common works... yes<br>checking if g++ static flag -static works... no<br>checking if g++ supports -c -o file.o... yes<br>checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) supports shared libraries... yes<br>
checking dynamic linker characteristics... darwin10.4.0 dyld<br>checking how to hardcode library paths into programs... immediate<br>appending configuration tag "F77" to libtool<br>checking if libtool supports shared libraries... yes<br>
checking whether to build shared libraries... yes<br>checking whether to build static libraries... no<br>checking for gfortran option to produce PIC... -fno-common<br>checking if gfortran PIC flag -fno-common works... yes<br>
checking if gfortran static flag -static works... no<br>checking if gfortran supports -c -o file.o... yes<br>checking whether the gfortran linker (/usr/libexec/gcc/i686-apple-darwin10/4.0.1/ld) supports shared libraries... yes<br>
checking dynamic linker characteristics... darwin10.4.0 dyld<br>checking how to hardcode library paths into programs... immediate<br>configure: Build is "i386-apple-darwin10.4.0".<br>configure: Applying patches to libtool for Darwin<br>
checking whether code for third party package Blas is available... yes<br>checking whether code for third party package Lapack is available... yes<br>checking whether code for third party package Metis is available... yes<br>
checking whether code for third party package HSL is available... yes<br>checking whether code for third party package ASL is available... yes<br>checking whether code for third party package Mumps is available... no<br>checking whether directory Ipopt is available... yes<br>
checking which command should be used to link input files... ln -s<br>configure: creating ./config.status<br>config.status: creating Makefile<br>config.status: executing depfiles commands<br>configure: configuring in ThirdParty/Blas<br>
configure: running /bin/sh './configure' --prefix=/Users/anilvrao/Software/ipopt/install '--prefix=/Users/anilvrao/Software/ipopt/install' 'CXX=g++' 'CC=gcc' 'F77=gfortran' 'ADD_CXXFLAGS=-m64' 'ADD_CCFLAGS=-m64' 'ADD_FFLAGS=-m64' 'FLIBS=-L/usr/local/lib -lgfortran -lSystem -lg2c--disable-shared' --cache-file=/dev/null --srcdir=.<br>
checking build system type... i386-apple-darwin10.4.0<br>checking whether we want to compile in debug mode... no<br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes<br>
checking whether we are cross compiling... no<br>checking for suffix of executables... <br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>
checking for gcc option to accept ANSI C... none needed<br>configure: C compiler options are: -O3 -fomit-frame-pointer -pipe -DNDEBUG -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas <br>
configure: Trying to determine Fortran compiler name<br>checking for xlf_r... gfortran<br>checking whether we are using the GNU Fortran 77 compiler... yes<br>checking whether gfortran accepts -g... yes<br>configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe -m64<br>
checking for egrep... grep -E<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for gawk... no<br>checking for mawk... no<br>checking for nawk... no<br>
checking for awk... awk<br>checking whether make sets $(MAKE)... yes<br>checking for style of include used by make... GNU<br>checking dependency style of gcc... gcc3<br>checking whether to enable maintainer-specific portions of Makefiles... no<br>
configure: Using libtool script in directory ../..<br>checking how to get verbose linking output from gfortran... -v<br>checking for Fortran libraries of gfortran... -L/usr/local/lib -lgfortran -lSystem -lg2c--disable-shared<br>
checking for dummy main to link with Fortran libraries... unknown<br>configure: error: linking to Fortran libraries from C fails<br>See `config.log' for more details.<br>configure: error: /bin/sh './configure' failed for ThirdParty/Blas<br>
<br clear="all"><br>-- <br>Anil V. Rao<br>Assistant Professor<br>Dept. of Mechanical and Aerospace Engineering<br>University of Florida<br>MAE-A Room 314<br>Gainesville, FL 32611-6250<br>E-mail: <a href="mailto:anilvrao@ufl.edu">anilvrao@ufl.edu</a><br>
Tel: (352) 392-5523 (office)<br> (352) 672-1529 (cell)<br><br>