++++++++++++++++++++++++++++++++++++ ERROR! Could not detect compiler version! Please extend tg_compv.mk in solenv/inc. ++++++++++++++++++++++++++++++++++++ g++ -dumpversion returns 3.4.3-20050110 ++++++++++++++++++++++++++++++++++++ dmake: Error code 255, while making 'compiler_version_error' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-ximian-1.3.8/work/helpcontent/unx/schart this happens to with mplayer , it seems that after a recent gcc-config update it started showing gcc's full version... i think the previous gcc-config showed 20050110 as just gcc-3.4.3 Reproducible: Always Steps to Reproduce: 1. 2. 3.
I am also getting this error while compiling openoffice-ximian-1.3.8 with gcc-3.4.3-20050110.
oopenoffice doesn't parse the -20050110 suffix correctly, gcc-porting is probably the wrong assignee for it. openoffice and toolchain, comments?
Created attachment 51822 [details, diff] getcompver.awk.patch I'm not an awk expert, but this patch extends the awk script to recognize the -20050110 suffix and strip it before going on.
thanks sven.... that got me atleast past my "emerge --newuse -uD world" , i edited the ebuild to include your patch and it builds and runs fine.
Created attachment 51912 [details] openoffice-ximian-1.3.8-r1.ebuild The ebuild assumes that getcompver.awk.patch lives in {PORTAGE_OVERLAY}/app-office/openoffice-ximian/files/ An ebuild which uses the getcompver.awk.patch provided by Sven Wegener.
- patch cannot be applied with "patch" - openoffice-ximian-1.3.8-r1 does not work (without a closer look i would say it does not contain the patch. but rather more important: the ebuild does not work for me in any way. it should not go into portage
I am having this same problem with the same compiler. Can someone please tell me how to use the patch from comment #3. Thanks.
I misunterstood the solution of this bug. I'm very sorry. Good work Mr. Wegener and Mr. Alberts. Here is a description to the problem. 1) Copy the patch (post #3) to /usr/portage/app-office/openoffice-ximian/files/getcompver.awk.patch 2) Copy the new ebuild (post #5) to /usr/portage/app-office/openoffice-ximian/openoffice-ximian-1.3.8-r1.ebuild 3) Do "ebuild /usr/portage/app-office/openoffice-ximian/openoffice-ximian-1.3.8-r1.ebuild digest" 4) emerge openoffice-ximian BUT: Patches for emerging openoffice-ximian are positioned in ../files/1.1.4. Why do you break this order ?
Again, I'm sorry. I wanted to thank Mr. Nichols :)
I did notice that there were subdirectories for the different versions of openoffice. The reason I didn't put the patch in the corresponding subdirectory was because I had suspected that the problem would be present in previous versions of openoffice. I'll give it a whirl on the older versions of openoffice (assuming they're in portage..>).
I tried emerging openoffice-ximian-1.3.5-r1, which makes use of OO 1.1.2, as opposed to OO 1.1.4 for openoffice-ximian-1.3.8. It fails to compile at the same point as already discussed.
All clear. Then this is my opinion: The patch has to be distibuted across the gentoo mirror network. And new ebuilds have to be made for every version in portage that is infected by this bug. The patch has to be downloaded and executed automatically.
Created attachment 52308 [details] openoffice-ximian-1.3.5-r2.ebuild An attempt to apply getcompver.awk.patch to openoffice-ximian-1.3.5. Unfortunately, it fails for other reasons: ../stlport/stl/_string.h:537: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:544: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:550: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h: In member function `_STL::basic_string<_CharT, _Traits , _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(_ForwardIter, _Fo rwardIter, const _STL::forward_iterator_tag&) [with _ForwardIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char> ]': ../stlport/stl/_string.h:573: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::_M_append_dispatch( _InputIter, _InputIter, const _STL::__false_type&) [with _InputIter = const char *, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<ch ar>]' ../stlport/stl/_string.h:493: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(_InputIter, _InputIter) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_ traits<char>, _Alloc = _STL::allocator<char>]' ../stlport/stl/_string.h:482: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::append(const _CharT *, size_t) [with _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL ::allocator<char>]' dll_main.cpp:192: instantiated from here ../stlport/stl/_string.h:537: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:544: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:550: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h: In member function `void _STL::basic_string<_CharT, _T raits, _Alloc>::insert(_CharT*, _ForwardIter, _ForwardIter, const _STL::forward_ iterator_tag&) [with _ForwardIter = char*, _CharT = char, _Traits = _STL::char_t raits<char>, _Alloc = _STL::allocator<char>]': ../stlport/stl/_string.h:801: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::_M_insert_dispatch(_CharT*, _InputIter, _InputIter, const _ STL::__false_type&) [with _InputIter = char*, _CharT = char, _Traits = _STL::cha r_traits<char>, _Alloc = _STL::allocator<char>]' ../stlport/stl/_string.h:719: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::insert(_CharT*, _InputIter, _InputIter) [with _InputIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocator<char>]' ../stlport/stl/_string.h:655: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::insert(size_t, cons t _STL::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = _ STL::char_traits<char>, _Alloc = _STL::allocator<char>]' dll_main.cpp:192: instantiated from here ../stlport/stl/_string.h:745: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:801: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::_M_insert_dispatch(_CharT*, _InputIter, _InputIter, const _ STL::__false_type&) [with _InputIter = char*, _CharT = char, _Traits = _STL::cha r_traits<char>, _Alloc = _STL::allocator<char>]' ../stlport/stl/_string.h:719: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::insert(_CharT*, _InputIter, _InputIter) [with _InputIter = char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::allocato r<char>]' ../stlport/stl/_string.h:655: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::insert(size_t, cons t _STL::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = _ STL::char_traits<char>, _Alloc = _STL::allocator<char>]' dll_main.cpp:192: instantiated from here ../stlport/stl/_string.h:774: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:783: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:789: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h: In member function `void _STL::basic_string<_CharT, _T raits, _Alloc>::insert(_CharT*, _ForwardIter, _ForwardIter, const _STL::forward_ iterator_tag&) [with _ForwardIter = const char*, _CharT = char, _Traits = _STL:: char_traits<char>, _Alloc = _STL::allocator<char>]': ../stlport/stl/_string.h:801: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::_M_insert_dispatch(_CharT*, _InputIter, _InputIter, const _ STL::__false_type&) [with _InputIter = const char*, _CharT = char, _Traits = _ST L::char_traits<char>, _Alloc = _STL::allocator<char>]' ../stlport/stl/_string.h:719: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::insert(_CharT*, _InputIter, _InputIter) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::al locator<char>]' ../stlport/stl/_string.h:677: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::insert(size_t, cons t _CharT*, size_t) [with _CharT = char, _Traits = _STL::char_traits<char>, _Allo c = _STL::allocator<char>]' dll_main.cpp:192: instantiated from here ../stlport/stl/_string.h:745: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:801: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::_M_insert_dispatch(_CharT*, _InputIter, _InputIter, const _ STL::__false_type&) [with _InputIter = const char*, _CharT = char, _Traits = _ST L::char_traits<char>, _Alloc = _STL::allocator<char>]' ../stlport/stl/_string.h:719: instantiated from `void _STL::basic_string<_Char T, _Traits, _Alloc>::insert(_CharT*, _InputIter, _InputIter) [with _InputIter = const char*, _CharT = char, _Traits = _STL::char_traits<char>, _Alloc = _STL::al locator<char>]' ../stlport/stl/_string.h:677: instantiated from `_STL::basic_string<_CharT, _T raits, _Alloc>& _STL::basic_string<_CharT, _Traits, _Alloc>::insert(size_t, cons t _CharT*, size_t) [with _CharT = char, _Traits = _STL::char_traits<char>, _Allo c = _STL::allocator<char>]' dll_main.cpp:192: instantiated from here ../stlport/stl/_string.h:774: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:783: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' ../stlport/stl/_string.h:789: error: 'struct _STL::basic_string<char, _STL::char _traits<char>, _STL::allocator<char> >' has no member named '_M_end_of_storage' make: *** [../lib/obj/GCCx86/ReleaseD/dll_main.o] Error 1 dmake: Error code 2, while making './unxlngi4.pro/misc/build/so_built_so_stlpor t' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /tmp/portage/openoffice-ximian-1.3.5-r2 /work/oo_1.1.2_src/stlport
Josh, versions of openoffice-ximian lower than 1.3.6 don't compile with gcc-3.4
Fixed this in cvs, no revision bump as this is a simple build fix and we don't want every user who alread compiled it successfully, to do it again. Thanks for reporting + patch
Can this fix be ported to the 1.3.7 version? Openoffice-ximian-1.3.7 is the current stable ebuild, and it suffers from the same problem, it won't recognise gcc version 3.4.3-20050110. I just tried it after today's sync.