Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82385 - openoffice-ximian fails due to gcc-3.4.3-20050110
Summary: openoffice-ximian fails due to gcc-3.4.3-20050110
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 11:16 UTC by merwan kashouty
Modified: 2005-03-20 04:02 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
getcompver.awk.patch (getcompver.awk.patch,418 bytes, patch)
2005-02-21 15:40 UTC, Sven Wegener
Details | Diff
openoffice-ximian-1.3.8-r1.ebuild The ebuild assumes that getcompver.awk.patch lives in {PORTAGE_OVERLAY}/app-office/openoffice-ximian/files/ (openoffice-ximian-1.3.8-r1.ebuild,17.44 KB, text/plain)
2005-02-22 16:17 UTC, Josh Nichols (RETIRED)
Details
openoffice-ximian-1.3.5-r2.ebuild (openoffice-ximian-1.3.5-r2.ebuild,15.83 KB, text/plain)
2005-02-28 09:28 UTC, Josh Nichols (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description merwan kashouty 2005-02-17 11:16:06 UTC
++++++++++++++++++++++++++++++++++++
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.
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2005-02-17 18:47:40 UTC
I am also getting this error while compiling openoffice-ximian-1.3.8 with gcc-3.4.3-20050110.
Comment 2 Sven Wegener gentoo-dev 2005-02-20 10:53:50 UTC
oopenoffice doesn't parse the -20050110 suffix correctly, gcc-porting is probably
the wrong assignee for it. openoffice and toolchain, comments?
Comment 3 Sven Wegener gentoo-dev 2005-02-21 15:40:01 UTC
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.
Comment 4 merwan kashouty 2005-02-22 06:13:41 UTC
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.
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2005-02-22 16:17:51 UTC
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.
Comment 6 Christopher Frömmel 2005-02-27 07:36:31 UTC
- 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
Comment 7 John Alberts 2005-02-27 10:21:46 UTC
I am having this same problem with the same compiler.  Can someone please tell me how to use the patch from comment #3.
Thanks.
Comment 8 Christopher Frömmel 2005-02-27 13:23:01 UTC
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 ?
Comment 9 Christopher Frömmel 2005-02-27 13:37:33 UTC
Again, I'm sorry. I wanted to thank Mr. Nichols :)
Comment 10 Josh Nichols (RETIRED) gentoo-dev 2005-02-27 19:51:56 UTC
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..>).
Comment 11 Josh Nichols (RETIRED) gentoo-dev 2005-02-27 22:43:05 UTC
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.
Comment 12 Christopher Frömmel 2005-02-28 07:28:59 UTC
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.
Comment 13 Josh Nichols (RETIRED) gentoo-dev 2005-02-28 09:28:24 UTC
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
Comment 14 Sven Wegener gentoo-dev 2005-03-01 01:31:56 UTC
Josh, versions of openoffice-ximian lower than 1.3.6 don't compile with gcc-3.4
Comment 15 Andreas Proschofsky (RETIRED) gentoo-dev 2005-03-06 02:41:52 UTC
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
Comment 16 Kostas Kavourakis 2005-03-20 00:28:59 UTC
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.