[Ipopt] Small installation problem

Robinson, Melvin D melvin.robinson at uta.edu
Thu Aug 21 00:23:11 EDT 2008


I did some more troubleshooting and think that this is the problem--it
is the output of config.log from ThirdParty/Mumps:

Justin:Mumps melrobin$ vi config.log
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.5.4' '-o' 'conftest' '-O3'
'-fomit-frame-pointer' '-pipe' '-v' '-shared-libgcc'
configure:4090: result:  -lcrt1.10.5.o
-L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0
-L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/../../..
-lgfortranbegin -lgfortran -lgcc_s.10.5 -lSystemStubs -lSystem
configure:4105: checking for dummy main to link with Fortran libraries
configure:4144: cc -o conftest -O3 -fomit-frame-pointer -pipe -DNDEBUG
-mmacosx-version-min=10.4    conftest.c   -lcrt1.10.5.o
-L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0
-L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/../../..
-lgfortranbegin -lgfortran -lgcc_s.10.5 -lSystemStubs -lSystem >&5
ld: duplicate symbol start in /usr/lib/crt1.10.5.o and /usr/lib/crt1.o
collect2: ld returned 1 exit status

 

-----Original Message-----
From: ipopt-bounces at list.coin-or.org
[mailto:ipopt-bounces at list.coin-or.org] On Behalf Of Robinson, Melvin D
Sent: Wednesday, August 20, 2008 8:51 PM
To: Stefan Vigerske
Cc: Ipopt at list.coin-or.org
Subject: Re: [Ipopt] Small installation problem

OK, I added the line: 
Justin:Mumps melrobin$ ./configure
ADD_CFLAGS="-mmacosx-version-min=10.4"
ADD_CXXFLAGS="-mmacosx-version-min=10.4"

And this fails.  I then went to the directory ThirdParty/Mumps and tried
the configure there and got the following output:

Justin:Mumps melrobin$ ./configure
ADD_CFLAGS="-mmacosx-version-min=10.4"
ADD_CXXFLAGS="-mmacosx-version-min=10.4"
checking build system type... powerpc-apple-darwin9.4.0
checking whether we want to compile in debug mode... no
checking for xlc_r... no
checking for xlc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
configure: C compiler options are: -O3 -fomit-frame-pointer -pipe
-DNDEBUG  -mmacosx-version-min=10.4
configure: Trying to determine Fortran compiler name
checking for xlf... no
checking for fort77... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -fomit-frame-pointer -pipe
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -lcrt1.10.5.o
-L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0
-L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/../../..
-lgfortranbegin -lgfortran -lgcc_s.10.5 -lSystemStubs -lSystem
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.

It seems that the new lines now break the compilation of Mumps.  I
removed the ADD_'s and configure worked fine.  This must be something
simple that I'm doing wrong.  Would you mind taking a look and see if
this makes sense?  The configure line was done with quotes and without
quotes with the same result.  I checked Google and got a few hits, but
nothing was that helpful.

BTW, thanks for all the help on this.  

-----Original Message-----
From: Stefan Vigerske [mailto:stefan at vigerske.de] 
Sent: Wednesday, August 20, 2008 1:35 PM
To: Robinson, Melvin D
Cc: Ipopt at list.coin-or.org
Subject: Re: [Ipopt] Small installation problem

Hi,

> Yes, I am running 10.5, so I'm excited about possibly resolving this
after trying for hours. I'm eager to give the examples a whirl and learn
more about this great piece of software!
> 
> Should these flags be set in the Makefile of the Ipopt-3.4.2 directory
or in the Ipopt-3.4.2/ThirdParty/ASL directory or both?

You can try
configure ADD_CFLAGS=-mmacosx-version-min=10.4 
ADD_CXXFLAGS=-mmacosx-version-min=10.4
(all in one line)

Best,
Stefan

PS: Yes, Ipopt is worth the try ;-).


> -----Original Message-----
> From: Stefan Vigerske [mailto:stefan at vigerske.de]
> Sent: Wed 8/20/2008 1:04 PM
> To: Robinson, Melvin D
> Cc: Ipopt at list.coin-or.org
> Subject: Re: [Ipopt] Small installation problem
>  
> Hi,
> 
> if it's MacOS X 10.5, then please check
> https://projects.coin-or.org/BuildTools/wiki/current-issues
> 
> Adding
> -mmacosx-version-min=10.4
> to the CFLAGS and CXXFLAGS could help.
> 
> Stefan
> 
>> I'm trying to install Ipopt on my iMac G5 (MacOSand finally got it to
>> work with MUMPS.  On a side note, I spent a long time troubleshooting
>> installation problems when deciding to be enterprising and changing
the
>> variable in the get.Mumps routine to version 4.8.1-it worked with the
>> out of the box version of 4.7.3.
>>
>>  
>>
>> Now my problem is adding the ASL code I get the following:
>>
>> g++ -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors
-Wimplicit
>> -Wparent heses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
>> -Wwrite-strings -Wconversi on -o .libs/ipopt ampl_ipopt.o
>> -Wl,-bind_at_load  ./.libs/libamplinterface.a ../
>> ../Interfaces/.libs/libipopt.dylib
>> /Users/melrobin/Ipopt-3.4.2/ThirdParty/ASL/am plsolver.a -lpthread
>> -llapack -lblas -lcrt1.10.5.o -L/usr/local/lib/gcc/powerpc-
>> apple-darwin9.4.0/4.4.0
>> -L/usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/../ ../..
>> /usr/local/lib/gcc/powerpc-apple-darwin9.4.0/4.4.0/libgfortranbegin.a
>> /usr /local/lib/libgfortran.dylib -lm -lgcc_s.10.5 -lSystemStubs
>> -lSystem -ldl
>>
>> Undefined symbols:
>>
>>   "_strtod_ASL", referenced from:
>>
>>       _Dval_ASL in amplsolver.a(value.o)
>>
>>       _DA_val_ASL in amplsolver.a(value.o)
>>
>>       _D_val_ASL in amplsolver.a(value.o)
>>
>>       _DU_val_ASL in amplsolver.a(value.o)
>>
>>       _jac0dim_ASL in amplsolver.a(jac0dim.o)
>>
>>       _strtod_ASL$non_lazy_ptr in amplsolver.a(func_add.o)
>>
>>       _ascanf_ASL in amplsolver.a(bscanf.o)
>>
>>       _f_OPprecision in amplsolver.a(rops2.o)
>>
>>       _Round in amplsolver.a(rops2.o)
>>
>> ld: symbol(s) not found
>>
>> collect2: ld returned 1 exit status
>>
>> make[3]: *** [ipopt] Error 1
>>
>> make[2]: *** [all-recursive] Error 1
>>
>> make[1]: *** [all-recursive] Error 1
>>
>> make: *** [all-recursive] Error 1
>>
>>  
>>
>> I added the -DNDEBUG after looking at some other mailing lists with
>> similar problems, but this didn't solve it.  I also did a configure
and
>> make from the ThirdParty/ASL directory and this worked just fine.
Any
>> ideas on how I can get past this error?  It seems some simple way
that I
>> screwed up.  BTW, g++ -v reports:
>>
>>  
>>
>> Justin:Ipopt-3.4.2 melrobin$ g++ -v
>>
>> Using built-in specs.
>>
>> Target: powerpc-apple-darwin9
>>
>> Configured with: /var/tmp/gcc_42/gcc_42-5564~1/src/configure
>> --disable-checking --enable-werror --prefix=/usr
--mandir=/usr/share/man
>> --enable-languages=c,objc,c++,obj-c++
>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
>> --with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib
>> --build=i686-apple-darwin9 --program-prefix=
>> --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
>>
>> Thread model: posix
>>
>> gcc version 4.2.1 (Apple Inc. build 5564)
>>
>>  
>>
>> There is something screwy between my 4.2.1 and 4.4.0 (while I was
>> troubleshooting the MUMPS problem), but I don't think that this is
>> causing the issue.
>>
>>  
>>
>>  
>>
>>
>>
>>
>>
------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/ipopt
> 
> 
> 


_______________________________________________
Ipopt mailing list
Ipopt at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/ipopt



More information about the Ipopt mailing list