[Ipopt] make test errors on alpha system

lqc234 lqc234 at 126.com
Wed Dec 16 19:42:23 EST 2009


Hi everyone,Hi Andreas:
Thank you for your reply!
I tried as you said and the previous errors I reported disappeared.The "gmake install" stage after "gmake test" was no problem,the libipopt.a and libipopt.la were generated successfully. But there are some new and more errors in the "gmake test" stage:
when I did "gmake test", it outputs :
 
.....
.....
cd test; gmake test
gmake[2]: Entering directory `/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
source='hs071_main.cpp' object='hs071_main.o' libtool=no \
 DEPDIR=.deps depmode=tru64 /bin/ksh ../../../Ipopt/../depcomp \
 cxx -pthread -DHAVE_CONFIG_H -I. -I`echo ../../../Ipopt/test` -I../inc  -I`echo ../../../Ipopt/test/../src/Common` -I`echo ../../../Ipopt/test/../src/LinAlg` -I`echo ../../../Ipopt/test/../src/LinAlg/TMatrices` -I`echo ../../../Ipopt/test/../src/Algorithm` -I`echo ../../../Ipopt/test/../src/Interfaces`   -O  -DNDEBUG    -c -o hs071_main.o hs071_main.cpp
source='hs071_nlp.cpp' object='hs071_nlp.o' libtool=no \
 DEPDIR=.deps depmode=tru64 /bin/ksh ../../../Ipopt/../depcomp \
 cxx -pthread -DHAVE_CONFIG_H -I. -I`echo ../../../Ipopt/test` -I../inc  -I`echo ../../../Ipopt/test/../src/Common` -I`echo ../../../Ipopt/test/../src/LinAlg` -I`echo ../../../Ipopt/test/../src/LinAlg/TMatrices` -I`echo ../../../Ipopt/test/../src/Algorithm` -I`echo ../../../Ipopt/test/../src/Interfaces`   -O  -DNDEBUG    -c -o hs071_nlp.o hs071_nlp.cpp
/bin/ksh ../../libtool --tag=CXX --mode=link cxx -pthread  -O  -DNDEBUG      -o hs071_cpp  hs071_main.o hs071_nlp.o ../src/Interfaces/libipopt.la -lm   -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1 -L/usr/lib/cmplrs/cc -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1/../../.. -lgfortranbegin -lgfortran -lm -lgcc_s 
mkdir .libs
cxx -pthread -O -DNDEBUG -o hs071_cpp hs071_main.o hs071_nlp.o  ../src/Interfaces/.libs/libipopt.a -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1 -L/usr/lib/cmplrs/cc -L/usr/users/df8002/gcclqc/gcc411/lib/gcc/alphaev68-dec-osf5.1b/4.1.1/../../.. /usr/users/df8002/gcclqc/gcc411/lib/libgfortranbegin.a /usr/users/df8002/gcclqc/gcc411/lib/libgfortran.so -lm -lgcc_s -rpath /usr/users/df8002/gcclqc/gcc411/lib
ld:
Unresolved:
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned long, unsigned long, const char*, unsigned long) const 
std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::erase(std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::iterator, std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::iterator)
std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_RWdeallocate_buffers(void)
.....
Ipopt::SmartPtr<Ipopt::RegisteredOptions>::SmartPtr(const Ipopt::SmartPtr<Ipopt::RegisteredOptions>&)
Ipopt::SmartPtr<Ipopt::Journalist>::operator *(void) const 
Ipopt::SmartPtr<Ipopt::SolveStatistics>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::IpoptAlgorithm>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::IpoptNLP>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::IpoptData>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::IpoptCalculatedQuantities>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::NLP>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::OptionsList>::operator *(void) const 
std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(void)
std::basic_ifstream<char, std::char_traits<char> >::open(const char*, int, long)
std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream(void)
std::basic_ifstream<char, std::char_traits<char> >::close(void)
Ipopt::IsValid(const Ipopt::SmartPtr<Ipopt::Journal>&)
Ipopt::SmartPtr<Ipopt::RegisteredOptions>::operator ->(void) const 
Ipopt::SmartPtr<Ipopt::NLP>::operator =(Ipopt::NLP*)
Ipopt::GetRawPtr(const Ipopt::SmartPtr<Ipopt::TNLP>&)
Ipopt::ConstPtr(const Ipopt::SmartPtr<Ipopt::Journalist>&)
Ipopt::SmartPtr<const Ipopt::Journalist>::~SmartPtr(void)
Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>::SmartPtr(Ipopt::AlgorithmBuilder*)
Ipopt::SmartPtr<Ipopt::AlgorithmBuilder>::~SmartPtr(void)
....
and so on.

It seems that a lot of symbols can't be resolved.
Anyone can give me some suggestions? Thank you in advance!

在2009-12-14?01:23:27,"Andreas?Waechter"?<andreasw at watson.ibm.com>?写道:
>Hi,
>
>I?know?know?if?shared?libraries?are?linked?correctly?on?that?system?with?
>the?libtool?version?that?we?are?using.??I?suggest?you?rerun?configure?with?
>the?--disable-shared?flag,?then?you?would?compiled?static?and?not?shared?
>libraries?of?Ipopt.??But?make?sure?you?clean?up?everything?before?that?(in?
>particular?the?lib?directory?where?the?libraries?are?installed).
>
>Regards,
>
>Andreas
>
>
>On?Sat,?12?Dec?2009,?lqc234?wrote:
>
>>?hi?everyone?,hi?Andreas!
>>?I?use?the?gnu?make?and?native?CXX?compiler?on?the?alpha?system.The?configure?and??make?stage?work?well,howerver?in?the?make?test?stage?,there?are?some?errors:
>>?cd?test;?gmake?test
>>?gmake[2]:?Entering?directory?`/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
>>?chmod?u+x?./run_unitTests
>>?./run_unitTests
>>
>>?Running?unitTests...
>>
>>?Testing?AMPL?Solver?Executable...
>>????no?AMPL?solver?executable?found,?skipping?test...
>>?Testing?C++?Example...
>>
>>?----?8<?----?Start?of?test?program?output?----?8<?----
>>?resolve_symbols:?loader?error:?dlopen:?libipopt.so.0:?symbol?"GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix"?unresolved
>>?----?8<?----??End?of?test?program?output??----?8<?----
>>
>>????********?Test?FAILED!?********
>>?Output?of?the?test?program?is?above.
>>?Testing?C?Example...
>>
>>?----?8<?----?Start?of?test?program?output?----?8<?----
>>?resolve_symbols:?loader?error:?dlopen:?libipopt.so.0:?symbol?"GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix"?unresolved
>>?----?8<?----??End?of?test?program?output??----?8<?----
>>
>>????********?Test?FAILED!?********
>>?Output?of?the?test?program?is?above.
>>?Testing?Fortran?Example...
>>
>>?----?8<?----?Start?of?test?program?output?----?8<?----
>>?resolve_symbols:?loader?error:?exception?system:?exiting?due?to?internal?error:?exception?dispatch?or?unwind?stuck?in?infinite?loop
>>?----?8<?----??End?of?test?program?output??----?8<?----
>>
>>????********?Test?FAILED!?********
>>?Output?of?the?test?program?is?above.
>>?gmake[2]:?Leaving?directory?`/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt/test'
>>?gmake[1]:?Leaving?directory?`/usr/users/df8002/gcclqc/Ipopt-3.6.1/build/Ipopt'
>>?I?guess?that?GetRawPtr__5IpoptXRCQ15Ipopt33SmartPtr__TQ15Ipopt12ScaledMatrix?is?generated?by?the?compiler,but?what's?wrong?in?the?generated
>>?libipopt.so.o??As?to?the?fortran?test?,?I?really?haven't?any?idea,?I?even?don't?know?what?the?error?means?
>>?Anyone?can?help?me??Thank?you?very?much?in?advance!
>>
>>?LiuQuanchang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20091217/48cfb03e/attachment-0001.html 


More information about the Ipopt mailing list