Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi,

Currently I'm getting:

/usr/include/cppunit/TestAssert.h:101:5: error: no matching function for call to 
'CppUnit::Asserter::failNotEqual(_STL::string, _STL::string, CppUnit::SourceLine&, const 
std::string&)'
/usr/include/cppunit/Asserter.h:114:27: note: candidate is: static void 
CppUnit::Asserter::failNotEqual(std::string, std::string, const CppUnit::SourceLine&, const 
CppUnit::AdditionalMessage&, std::string)

in starmath when building master.

I'm attaching the full output of 'build' in starmath.

I'm using system-cppunit and internal stlport, and I'm almost sure the
breakage is somehow related to the std vs _STL differences.

The strange thing is that this is usually handled by the extstl headers,
but preextstl.h and postextstl.h is already included before/after the
cppunit headers in qa/cppunit/test_nodetotextvisitors.cxx.

Do you have an idea what can be wrong here? This is with gcc-4.5.2, but
IIRC I already had this with 4.5.1 already.

I tried removing the preextstl.h / postextstl.h headers from the above
file, but that just turned the compile error to a linker one. ;)

Thanks.
build -- version: 275224


=============
Building module starmath
=============
Entering /home/vmiklos/git/libreoffice/master/starmath/inc

Entering /home/vmiklos/git/libreoffice/master/starmath/sdi

Entering /home/vmiklos/git/libreoffice/master/starmath/source

Entering /home/vmiklos/git/libreoffice/master/starmath/util

Entering /home/vmiklos/git/libreoffice/master/starmath/qa/cppunit

Compiling: starmath/qa/cppunit/test_nodetotextvisitors.cxx
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx: 
In static member function 'static _STL::string CppUnit::assertion_traits<String>::toString(const 
String&)':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:73:16:
 error: cannot bind 'std::basic_ostream<char>' lvalue to 'std::basic_ostream<char>&&'
/usr/include/c++/4.5.2/ostream:579:5: error:   initializing argument 1 of 
'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const 
_Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = _STL::basic_string<char, 
_STL::char_traits<char>, _STL::allocator<char> >]'
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:74:24:
 error: conversion from 'std::basic_ostringstream<char>::__string_type' to non-scalar type 
'_STL::string' requested
In file included from /usr/include/cppunit/TestCase.h:6:0,
                 from 
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:41:
/usr/include/cppunit/TestAssert.h: In function 'void CppUnit::assertEquals(const T&, const T&, 
CppUnit::SourceLine, const std::string&) [with T = String, std::string = std::basic_string<char>]':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:492:5:
   instantiated from here
/usr/include/cppunit/TestAssert.h:101:5: error: no matching function for call to 
'CppUnit::Asserter::failNotEqual(_STL::string, _STL::string, CppUnit::SourceLine&, const 
std::string&)'
/usr/include/cppunit/Asserter.h:114:27: note: candidate is: static void 
CppUnit::Asserter::failNotEqual(std::string, std::string, const CppUnit::SourceLine&, const 
CppUnit::AdditionalMessage&, std::string)
dmake:  Error code 1, while making '../../unxlngi6.pro/slo/test_nodetotextvisitors.obj'
Forcing regeneration of dependency info

----------------------------------------------------------
- start unit test #1 on library
----------------------------------------------------------
: &&     
LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/home/vmiklos/git/libreoffice/master/clone/writer/starmath/unxlngi6.pro/lib:/home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/lib
  /home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/bin/cppunittester  -headless 
-invisible \
        
-env:UNO_SERVICES=file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/services.rdb
 \
        
-env:UNO_TYPES="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/types.rdb
 
file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/udkapi.rdb"
 \
        
-env:OOO_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 \
        
-env:BRAND_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 \
        
-env:UNO_USER_PACKAGES_CACHE="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
terminate called after throwing an instance of 'CppUnit::DynamicLibraryManagerException'
  what():  Failed to load dynamic library: -headless

/bin/sh: line 1:  5462 Aborted                 
LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/home/vmiklos/git/libreoffice/master/clone/writer/starmath/unxlngi6.pro/lib:/home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/lib
 /home/vmiklos/git/libreoffice/master/solver/330/unxlngi6.pro/bin/cppunittester -headless 
-invisible 
-env:UNO_SERVICES=file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/services.rdb
 
-env:UNO_TYPES="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/types.rdb
 
file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit/udkapi.rdb"
 
-env:OOO_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 
-env:BRAND_BASE_DIR="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
 
-env:UNO_USER_PACKAGES_CACHE="file:///home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/../../unxlngi6.pro/misc/qa_cppunit"
dmake:  Error code 134, while making 'test'
Retrying /home/vmiklos/git/libreoffice/master/starmath/qa/cppunit

Making:    all_qa_cppunit.dpslo
Compiling: starmath/qa/cppunit/test_nodetotextvisitors.cxx
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx: 
In static member function 'static _STL::string CppUnit::assertion_traits<String>::toString(const 
String&)':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:73:16:
 error: cannot bind 'std::basic_ostream<char>' lvalue to 'std::basic_ostream<char>&&'
/usr/include/c++/4.5.2/ostream:579:5: error:   initializing argument 1 of 
'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const 
_Tp&) [with _CharT = char, _Traits = std::char_traits<char>, _Tp = _STL::basic_string<char, 
_STL::char_traits<char>, _STL::allocator<char> >]'
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:74:24:
 error: conversion from 'std::basic_ostringstream<char>::__string_type' to non-scalar type 
'_STL::string' requested
In file included from /usr/include/cppunit/TestCase.h:6:0,
                 from 
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:41:
/usr/include/cppunit/TestAssert.h: In function 'void CppUnit::assertEquals(const T&, const T&, 
CppUnit::SourceLine, const std::string&) [with T = String, std::string = std::basic_string<char>]':
/home/vmiklos/git/libreoffice/master/clone/writer/starmath/qa/cppunit/test_nodetotextvisitors.cxx:492:5:
   instantiated from here
/usr/include/cppunit/TestAssert.h:101:5: error: no matching function for call to 
'CppUnit::Asserter::failNotEqual(_STL::string, _STL::string, CppUnit::SourceLine&, const 
std::string&)'
/usr/include/cppunit/Asserter.h:114:27: note: candidate is: static void 
CppUnit::Asserter::failNotEqual(std::string, std::string, const CppUnit::SourceLine&, const 
CppUnit::AdditionalMessage&, std::string)
dmake:  Error code 1, while making '../../unxlngi6.pro/slo/test_nodetotextvisitors.obj'

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

 it seems that the error is inside 'starmath', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

rm -Rf /home/vmiklos/git/libreoffice/master/starmath/unxlngi6.pro # optional module 'clean'
/bin/sh
cd /home/vmiklos/git/libreoffice/master
source ./LinuxX86Env.Set.sh
cd starmath
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level

Attachment: pgpWTeWWo7vxC.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.