Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 4 kword does not compile
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jesso
Guru
Guru


Joined: 27 Oct 2004
Posts: 397
Location: Canada

PostPosted: Sun Sep 03, 2006 1:33 am    Post subject: gcc 4 kword does not compile Reply with quote

I upgraded gcc to 4.1 according to the guide. Now Kword will not compile. It did with gcc 3.4 .

Can someone help?

Code:

/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/kofficeui -I../../../lib/kofficeui -I../../../lib/kofficecore -I../../../lib/kofficecore -I../../../lib/store -I../../../lib/store -I../../../lib/kwmf -I../../../lib/kwmf -I../../../lib/kotext -I../../../lib/kotext -I../../../lib/koscript -I../../../lib/koscript -I../../../kspread -I../../../kword -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o kwmailmerge_kspread_config.lo `test -f 'kwmailmerge_kspread_config.cpp' || echo './'`kwmailmerge_kspread_config.cpp
../../../kspread/kspread_cell.h:599: error: extra qualification 'KSpreadCell::' on member 'ultimateObscuringCell'
make[4]: *** [kwmailmerge_kspread.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
../../../kspread/kspread_cell.h:599: error: extra qualification 'KSpreadCell::' on member 'ultimateObscuringCell'
make[4]: *** [kwmailmerge_kspread_config.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2/kword/mailmerge/kspread'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2/kword/mailmerge'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2/kword'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kword-1.4.2-r6/work/kword-1.4.2'
make: *** [all] Error 2

!!! ERROR: app-office/kword-1.4.2-r6 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called kde-meta_src_compile
  kde-meta.eclass, line 410:   Called kde_src_compile
  kde.eclass, line 166:   Called kde_src_compile 'all'
  kde.eclass, line 325:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 321:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sun Sep 03, 2006 2:40 am    Post subject: Reply with quote

I would suggest using the 1.5.x ~arch versions anyways.
I compiled it on gcc 4.1.1 and frankly I found them much better anyways. (The latest version seem just as stable here)
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Sun Sep 03, 2006 3:03 am    Post subject: Reply with quote

Yup, 1.5.2 compiles fine.
Back to top
View user's profile Send private message
gctaylor
n00b
n00b


Joined: 20 Nov 2004
Posts: 40

PostPosted: Sun Sep 10, 2006 9:42 pm    Post subject: Reply with quote

So I'm running into the same problem but I don't know how to properly unmask it...

I either get an error like that below, or I don't get the error but my emerge indicates it sill will emerge 1.4.2. I'm not too picky on which kword version I get, I just want my emerge to finally finish after upgrading gcc. What file and what is the proper syntax? I thought that

app-office/kword ~x86 in package.keywords would do it. I also tried
>=app-office/kword-1.4.2-r6 in package.unmask.

I'm confused.


# emerge -eav --resume world
--- Invalid atom in /etc/portage/package.keywords: app-office/kword-1.4.2-r6

These are the packages that would be merged, in order:

[ebuild N ] app-office/kword-1.4.2-r6 USE="arts -debug -xinerama" 0 kB


Thanks,
Gary
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Sep 11, 2006 12:45 am    Post subject: Reply with quote

gctaylor, what is the output of
Code:
cat /etc/portage/package.keywords | grep kword


app-office/kword ~x86 should have worked. When is the last time you synced?
Back to top
View user's profile Send private message
gctaylor
n00b
n00b


Joined: 20 Nov 2004
Posts: 40

PostPosted: Mon Sep 11, 2006 2:16 am    Post subject: Reply with quote

Thanks for taking the time to look at this.

Code:

$ cat /etc/portage/package.keywords | grep kword
app-office/kword ~x86


Then when I
Code:

emerge -eav --resume world


gives me this (along with other packages)

Code:

These are the packages that would be merged, in order:

[ebuild  N    ] app-office/kword-1.4.2-r6  USE="arts -debug -xinerama" 0 kB
<other packages text deleted>


I synced a few days ago. Before I started the gcc upgrade. As part of the gcc upgrade I'm now
on the emerge -eav world step. I've only a Pentium 1 Ghz so it's been
compiling a few days.

Thanks,
Gary
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Mon Sep 11, 2006 6:17 am    Post subject: Reply with quote

gctaylor wrote:
# emerge -eav --resume world
--- Invalid atom in /etc/portage/package.keywords: app-office/kword-1.4.2-r6

It should always have a = in front if you have a secific version. So either ditch the versionnumber or add a =

gctaylor wrote:
app-office/kword ~x86 in package.keywords would do it. I also tried
>=app-office/kword-1.4.2-r6 in package.unmask.

You probably got a different error, most likely that other packages are also needed to unmask.

Besides, I suggest you just ditch the version. KOffice is already in 1.5.x and it's really a lot nicer then 1.4.x
Back to top
View user's profile Send private message
olger901
l33t
l33t


Joined: 17 Mar 2005
Posts: 625

PostPosted: Mon Sep 11, 2006 7:24 am    Post subject: Reply with quote

Perhaps it would be a good idea to ask for a version bump, because of compatability issues with gcc-4.1.1 and seeing that gcc-4.1.1 is the default compiler.
Back to top
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Mon Sep 11, 2006 9:01 am    Post subject: Reply with quote

olger901 wrote:
Perhaps it would be a good idea to ask for a version bump, because of compatability issues with gcc-4.1.1 and seeing that gcc-4.1.1 is the default compiler.
Good idea
Back to top
View user's profile Send private message
gctaylor
n00b
n00b


Joined: 20 Nov 2004
Posts: 40

PostPosted: Mon Sep 11, 2006 1:45 pm    Post subject: Reply with quote

Okay..... I'm sorry, I don't understand how I get past my problem.

I found bug 146409, is that what is meant by a version bump? If it has already been requested, how do I get it? I'm fine with going to the 1.5.x series, I just don't know how to do it.

I've been reluctant to do a sync until after my emerge -eav --resume world is done thinking that a re-sync now will really get things out of sync. I've just got about a dozen packages left out of 405 from my upgrade. Should I do a sync and then try these things?

Thanks,
Gary
Back to top
View user's profile Send private message
gctaylor
n00b
n00b


Joined: 20 Nov 2004
Posts: 40

PostPosted: Wed Sep 13, 2006 9:26 pm    Post subject: Reply with quote

Bump....

I don't know how to get past my problem. I have
Code:
app-office/kword ~x86
in my /etc/portage/package.keywords

but doing
Code:
emerge -eav --resume world
still wants to pull in kword-1.4.2-r6, which then fails.

Is it better to do a sync and try it again with package.keywords still modified as above, or do a sync and start over with my gcc upgrade? Or something else?
--
EDIT: I stumbled upon a workaround. I added the --skipfirst option to my emerge command and I'm happily continuing. I can do a sync and update when this has successfully completed and kword should get pulled in properly then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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