bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tests for flower appear to miss instantiations of classes


From: Reinhold Kainhofer
Subject: Re: tests for flower appear to miss instantiations of classes
Date: Thu, 8 Sep 2011 14:42:38 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; i686; ; )

Am Donnerstag, 8. September 2011, 14:13:12 schrieb David Kastrup:
> When configured with
> 
> ./configure CXXFLAGS=-fkeep-inline-functions
> 
> (which does not optimize unused functions away)
> 
> make test fails in the flower subdirectory in the linking stage with
> quite inscrutable error messages.

I'm able to reproduce this (with "./configure CXXFLAGS=-fkeep-inline-functions 
--disable-optimising").
If I do "cd flower; make clean; make test", I get the following error:

g++ -o out/test-flower ./out/test-file-name.o ./out/test-file-path.o 
./out/test-std.o ./out/test-string.o ./out/../../flower/out/library.a      
./out/test-file-name.o: In function `recursive_init_error':
/usr/include/c++/4.5/cxxabi.h:623: undefined reference to `vtable for 
__gnu_cxx::recursive_init_error'
collect2: ld returned 1 exit status
make: *** [out/test-flower] Fehler 1


A quick google search for the error message brings this up:
http://www.daniweb.com/software-development/cpp/threads/114299
http://gcc.gnu.org/faq.html#vtables

The problem appears to be in flower/include/yaffut.hh, because if I strop down 
test-file-name.cc to only include that file (instead of yaffuf-parameters.hh) 
and remove all other code there, I still get the linker error...

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]