Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242276 - sci-calculators/qalculate-kde-0.9.6-r1 -/usr/include/cln/string.h:21: error: exception handling disabled, use -fexceptions to enable
Summary: sci-calculators/qalculate-kde-0.9.6-r1 -/usr/include/cln/string.h:21: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 22:22 UTC by Lukas Turek
Modified: 2008-10-18 01:20 UTC (History)
0 users

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


Attachments
proposed patch to ebuild (qalculate-kde-0.9.6-r1.ebuild.diff,1023 bytes, patch)
2008-10-17 14:16 UTC, Markus Dittrich (RETIRED)
Details | Diff
Ebuild patch with re-added "myconf" call (qalculate-kde-0.9.6-r1.ebuild.diff,996 bytes, patch)
2008-10-17 14:39 UTC, Lukas Turek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Turek 2008-10-15 22:22:23 UTC
Compilation of sci-calculators/qalculate-kde-0.9.6-r1 fails with:
/usr/include/cln/string.h: In static member function 'static void* cln::cl_heap_string::operator new(size_t)':
/usr/include/cln/string.h:21: error: exception handling disabled, use -fexceptions to enable

This happens on my amd64 system, on x86 the configure runs twice and the compilation then succeeds. I don't know why this happens, but I was able to fix the problem on amd64 by forcing another run of configure:

--- qalculate-kde-0.9.6-r1.ebuild.orig  2008-10-16 00:17:00.000000000 +0200
+++ qalculate-kde-0.9.6-r1.ebuild       2008-10-16 00:17:38.000000000 +0200
@@ -37,5 +37,5 @@
                -i configure \
                || die "Failed to remove -fno-exceptions from configure script"

-       kde_src_compile make
+       kde_src_compile configure make
 }
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2008-10-17 14:16:06 UTC
Created attachment 168792 [details, diff]
proposed patch to ebuild

Yeah, the way fno-exceptions is currently disabled in the ebuild
is not optimal, but I have yet to find a way to do it more
elegantly. That said, could you please try the attached patch for
the ebuild and see if works. It may be slightly more robust
than the current version.

Thanks,
Markus
Comment 2 Lukas Turek 2008-10-17 14:36:58 UTC
It seems the "kde_src_compile myconf" is needed, without it it fails with:
configure: error: The important program mcopidl was not found!
Please check whether you installed aRts correctly or use
--without-arts to compile without aRts support (this will remove functionality).

But the new aproach seems OK, it compiled fine after I re-added the "myconf" call.
Comment 3 Lukas Turek 2008-10-17 14:39:37 UTC
Created attachment 168794 [details, diff]
Ebuild patch with re-added "myconf" call
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2008-10-17 14:54:22 UTC
(In reply to comment #3)
> Created an attachment (id=168794) [edit]
> Ebuild patch with re-added "myconf" call
> 

Great, thanks much for testing! I'll look into
the myconf thingy (I don't seem to need it)
and will change the ebuild accordingly if it
looks all right.

Best,
Markus
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2008-10-18 01:20:08 UTC
I've just committed these changes to qalculate-kde-0.9.6-r2.
If these issues also happen for people in the stable branch
we should probably stabilize this version soonish.

Thanks,
Markus