Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Koffice 1.2beta2 & ImageMagick
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
bakgwailo
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2002
Posts: 113

PostPosted: Sat Jun 29, 2002 4:30 pm    Post subject: Koffice 1.2beta2 & ImageMagick Reply with quote

I am using portage 2.04, and nether will compile/merge.

ImageMagick:
>>> emerge media-gfx/imagemagick-5.4.6 to /
!!! No message digest file found. /usr/portage/media-gfx/imagemagick/files/digest-imagemagick-5.4.6
!!! Type "ebuild foo.ebuild digest" to generate a digest.
!!! emerge aborting on /usr/portage/media-gfx/imagemagick/imagemagick-5.4.6.ebuild .

I would type that, but I do not have the ebuild command (where do I get this? I have been looking for what package its in). Koffice on the other hand just doesn't compile. It starts, but about 5-10 minutes into it, it dies out. thanks!
_________________
aiya, tau tong ah!
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Sat Jun 29, 2002 6:34 pm    Post subject: Reply with quote

since you su'ed to root, there is not /sbin or /usr/sbin in your PATH variable

/usr/sbin/ebuild /usr/portage/media-gfx/imagemagick/blah_blah.ebuild digest

will work just fine
Back to top
View user's profile Send private message
bakgwailo
Tux's lil' helper
Tux's lil' helper


Joined: 31 May 2002
Posts: 113

PostPosted: Sun Jun 30, 2002 3:43 pm    Post subject: Thanks! Reply with quote

Thanks Proxy! I got everything to upgrade, except koffice still does not install and errors out with the message:

cpp0: output pipe has been closed
make[3]: *** [canvbox.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/koffice-1.2_beta2/work/koffice-1.2-beta2/kugar/kudesigner'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/koffice-1.2_beta2/work/koffice-1.2-beta2/kugar/kudesigner'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/koffice-1.2_beta2/work/koffice-1.2-beta2/kugar'
make: *** [install-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function kde_src_install, Line -3819, Exitcode 2
!!! died running make install, kde_src_install:make

!!! emerge aborting on /usr/portage/app-office/koffice/koffice-1.2_beta2.ebuild .

Obviously it compiles (since its on make install), but I have no clue why make install of all things would error out. Any one else having this problem, or have a solution? Thanks !

Athlon 1.33 GHZ
320 megs of ram
40 GB HD (EXT3/Maxtor)
40 GB HD (Fat32(For backing up things)/Maxtor)
SBLive Value
32meg Nvidia Gforce II MX
_________________
aiya, tau tong ah!
Back to top
View user's profile Send private message
Jesse
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 148

PostPosted: Mon Jul 01, 2002 2:32 am    Post subject: Reply with quote

I had the same problem with the install portion. Here's how I fixed it...

Manually run the g++ command (right above the error you got) but take out the -pipe -fomit-framepointer and knock your optomisation down to -O2. It should compile at that level. Then run ebuild "ebuild file" install.

This should complete after some time. You then need to run ebuild "ebuild file" qmerge to finish the installation off.

This looks like a code generation bug either as part of koffice's coding practices or gcc. I suspect a combination of -O3 and -fomit-framepointer caused gcc to barf with:
Code:

canvbox.cpp: In method `void CanvasKugarTemplate::draw(QPainter &)':
canvbox.cpp:157: Unable to generate reloads for:
(insn 2027 2025 2028 (parallel[
            (set (reg:SI 6 %ebp)
                (fix:SI (fix:DF (reg:DF 315))))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -54 [0xffffffca])) 0))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -56 [0xffffffc8])) 0))
            (clobber (mem:SI (plus:SI (reg:SI 6 %ebp)
                        (const_int -52 [0xffffffcc])) 0))
            (clobber (scratch:HI))
        ] ) 149 {fix_truncdfsi2+1} (insn_list 2025 (nil))
    (expr_list:REG_DEAD (reg:DF 315)
        (expr_list:REG_UNUSED (scratch:HI)
            (nil))))
cpp0: output pipe has been closed

which should never happen and I wonder why it didnt ICE right here ... (on that note, it could be koffice, although ive fiddled with the code in that file and can not get it to work right)
so..... unfortunately 3 bugs may have to be filled here. 1) for portage to filter out the bad optimisations until a fix is had 2) a koffice team notification 3) gcc just in case ;)

note: mine is still compiling so ymmv ...
Back to top
View user's profile Send private message
Deech
n00b
n00b


Joined: 17 Apr 2002
Posts: 51
Location: The Netherlands

PostPosted: Fri Jul 05, 2002 9:43 pm    Post subject: explain in more detail Reply with quote

Hi Jesse,
I'm running into the same problem as you described....can you explain to me in little steps how you managed to install koffice afterall?
I'm a little lost with your previous description...
deech
Back to top
View user's profile Send private message
Jesse
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 148

PostPosted: Fri Jul 05, 2002 9:59 pm    Post subject: Reply with quote

ok this is gona be hard since it was over a week ago that i did this...

Emerge fails because g++ fails to compile that certain file. Right above those errors, on your console, you should see the actual g++ ... command used to compile that file. There are 2 ways to get around this. An easy one and a hard one. I'll give you the hard one first since by using it you wont have to recompile the rest of koffice which takes forever...

What you need to do is (hard way):
1) First copy that g++ command in its entirity
2) cd to the directory with that problem file in it (something like /var/tmp/portage/koffice-1.2_beta2/work/koffice-1.2-beta2/ ... )
3) Paste that g++ command that you copied _but_ take out all your optimization settings except for maybe -O2
4) Run the command. It should finish to completion without any errors.
5) cd to your /usr/portage/app-office/koffice/ directory and run "ebuild koffice-1.2_beta2.ebuild install qmerge"

OR

(easy way):
1) Edit your make.conf compiler flags and take out -fomit-frame-pointer and -pipe. Also make sure your -O setting is no higher than -O2
2) Completly recompile all of koffice using an "emerge koffice"
3) Edit you make.conf compiler flags to the way they were before you changed them

It seems that a few files in the latest koffice give g++ quite some trouble when using high optimization levels.
The culprit is most likely -O3 so taking out -fomit-frame-pointer and -pipe may not even be needed ...
Back to top
View user's profile Send private message
Deech
n00b
n00b


Joined: 17 Apr 2002
Posts: 51
Location: The Netherlands

PostPosted: Sat Jul 06, 2002 8:18 am    Post subject: thanx Reply with quote

Hi Jesse,

Thanx for this step for step reply....i'll give it a swing.....let you know how things go :!:

deech
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