Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge LyX fails on PPC only here
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
lsm
n00b
n00b


Joined: 31 Aug 2004
Posts: 30

PostPosted: Tue Aug 31, 2004 11:23 pm    Post subject: emerge LyX fails on PPC only here Reply with quote

Building on a G3 ibook, emerge lyx fails here. It builds perfectly on x86 platforms with the same kernel (2.4.7-r14) and gcc (3.4.1) versions.

This is where the build fails. Please let me know if there is anything else I can tell you, and any ideas you may have. Thank you.

g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R6/include -O3 -mcpu=powerpc -pipe -c formulamacro.C -MT formulamacro.lo -MD -MP -MF .deps/formulamacro.TPlo
In file included from ../../boost/boost/config.hpp:35,
from ../../boost/boost/shared_ptr.hpp:18,
from ../../boost/boost/weak_ptr.hpp:17,
from formulabase.h:24,
from formulamacro.h:18,
from formulamacro.C:20:
../../boost/boost/config/compiler/gcc.hpp:57:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results"
In file included from ../../boost/boost/format.hpp:50,
from ../../src/BoostFormat.h:9,
from formulamacro.C:43:
../../boost/boost/format/format_implementation.hpp: In member function `boost::basic_format<Ch, Tr>& boost::basic_format<charT, Traits>::clear_bind(int)':
../../boost/boost/format/format_implementation.hpp:154: error: `out_of_range_bit' undeclared (first use this function)
../../boost/boost/format/format_implementation.hpp:154: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from formulamacro.C:43:
../../src/BoostFormat.h: At global scope:
../../src/BoostFormat.h:18: error: expected unqualified-id before ';' token
make[3]: *** [formulamacro.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
echo timestamp > formulabase.lo
make[3]: Leaving directory `/var/tmp/portage/lyx-1.3.4/work/lyx-1.3.4/src/mathed'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lyx-1.3.4/work/lyx-1.3.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.4/work/lyx-1.3.4/src'
make: *** [all-recursive] Error 1
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Wed Sep 01, 2004 10:34 am    Post subject: Reply with quote

Just for reference, I have LyX on my iBook. I compiled with gcc 3.3.3_pre20040408-r1, or whatever version was previously stable on ppc.

Are you using plain gcc-3.4.1? From a message I saw on the ppc-dev list last week, it looks like 3.4.1-r2 is the go at the moment.
Back to top
View user's profile Send private message
blubbfisch
n00b
n00b


Joined: 19 Oct 2003
Posts: 55
Location: World->Pacific->New Zealand->Hamilton

PostPosted: Thu Sep 02, 2004 3:07 am    Post subject: Reply with quote

I found the fix somewhere, can't really remember where... (lyx-devel mailinglist, supposedly)

apply the following to the ebuild:
Code:

--- /usr/portage/app-office/lyx/lyx-1.3.4.ebuild        2004-06-25 11:06:12.000000000 +1200
+++ /usr/local/portage/app-office/lyx/lyx-1.3.4.ebuild  2004-08-02 13:50:12.000000000 +1200
@@ -48,6 +48,7 @@
        cd ${S}
        epatch ${FILESDIR}/${PN}-1.3.2-nomktex.patch
        epatch ${FILESDIR}/${PN}-1.3.3-configure-diff
+       epatch ${FILESDIR}/${P}-gcc3.4.patch
        elibtoolize || die
 }


get lyx-1.3.4-gcc3.4.patch from https://bugs.gentoo.org/show_bug.cgi?id=62126

Have fun*

Niklas
Back to top
View user's profile Send private message
lsm
n00b
n00b


Joined: 31 Aug 2004
Posts: 30

PostPosted: Fri Sep 03, 2004 6:18 pm    Post subject: thanks, that was the fix Reply with quote

It compiled cleanly here with the patch, under 3.4.1. Thank you very much!

Stepping back to 3.3.3 (with gcc-config) was not a solution, however.

blubbfisch wrote:
I found the fix somewhere, can't really remember where... (lyx-devel mailinglist, supposedly)

apply the following to the ebuild:
Code:

--- /usr/portage/app-office/lyx/lyx-1.3.4.ebuild        2004-06-25 11:06:12.000000000 +1200
+++ /usr/local/portage/app-office/lyx/lyx-1.3.4.ebuild  2004-08-02 13:50:12.000000000 +1200
@@ -48,6 +48,7 @@
        cd ${S}
        epatch ${FILESDIR}/${PN}-1.3.2-nomktex.patch
        epatch ${FILESDIR}/${PN}-1.3.3-configure-diff
+       epatch ${FILESDIR}/${P}-gcc3.4.patch
        elibtoolize || die
 }


get lyx-1.3.4-gcc3.4.patch from https://bugs.gentoo.org/show_bug.cgi?id=62126

Have fun*

Niklas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum