On 02/22/2010 05:56 PM, Richard Guenther wrote:
On Mon, 22 Feb 2010, Dave Plater wrote:
On 02/22/2010 11:41 AM, Richard Guenther wrote:
On Mon, 22 Feb 2010, Dave Plater wrote:
Hi, I've started getting the following build failure on lilypond factory standard :- |rm -f ./out/spacing-spanner.dep; DEPENDENCIES_OUTPUT="./out/spacing-spanner.dep ./out/spacing-spanner.o" g++ -c -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -ggdb -Woverloaded-virtual -I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing -fmessage-length=0 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -DHAVE_CONFIG_H -DNDEBUG -I./include -I./out -I../flower/include -I../flower/./out -I../flower/include -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -ggdb -O2 -finline-functions -g -pipe -pthread -I/usr/include/freetype2 -pthread -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wno-pmf-conversions -W -Wall -Wconversion -o out/spacing-spanner.o spacing-spanner.cc spacing-spanner.cc: In static member function 'static std::vector
Spacing_spanner::get_columns(Grob*)': spacing-spanner.cc:41:35: error: expected primary-expression before '*' token spacing-spanner.cc:41:36: error: expected primary-expression before '>' token make[1]: *** [out/spacing-spanner.o] Error 1 Relating to the following line in ||spacing-spanner.cc :- all = vector
::vector (all.begin () + start, The whole picture :- vector
Spacing_spanner::get_columns (Grob *me_grob) { Spanner *me = dynamic_cast (me_grob); vector all (get_root_system (me)->used_columns ()); vsize start = binary_search (all, (Grob*)me->get_bound (LEFT), &Paper_column::less_than); vsize end = binary_search (all, (Grob*) me->get_bound (RIGHT), &Paper_column::less_than); all = vector
::vector (all.begin () + start, drop the vector
:: - constructors should not be called directly. Richard.
Removing "vector
::" fixes the build error but breaks lilypond unfortunately. Removing it will certainly not break lilypond, the problem must be elsewhere.
Richard.
I've compiled the whole package with -save-temps -fno-inline and
compared the .s and .ii files and apart from the different source line
missing "vector