Bug 200919 - build error in plugins/fits_nonlinear/general_levenberg_marquardt
Summary: build error in plugins/fits_nonlinear/general_levenberg_marquardt
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.8.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 20:49 UTC by Andrew Walker
Modified: 2009-07-21 22:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2009-07-20 20:49:44 UTC
Version:           1.8.0 (using KDE 4.0.5)
OS:                Linux

The following build error is reported:

make[6]: Entering directory
`/builddir/build/BUILD/kst-1.8.0/kst/src/plugins/fits_nonlinear/general_levenberg_marquardt'

/bin/sh ../../../../../libtool --silent --tag=CXX   --mode=compile g++
-DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../kst/src/libkst
-I./../../../kst -I/usr/include/kde -I/usr/lib/qt-3.3/include -I.
-I/usr/include/cfitsio -I/usr/include/netcdf  -DQT_THREAD_SUPPORT
-D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
-march=i686 -mtune=atom -fasynchronous-unwind-tables -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
kstfit_general_levenberg_marquardt.lo
kstfit_general_levenberg_marquardt.cpp

kstfit_general_levenberg_marquardt.cpp: In function 'int
kstfit_general_levenberg_marquardt(const double* const*, const int*,
const double*, double**, int*, double*, const char**, char**)':

kstfit_general_levenberg_marquardt.cpp:174: error: exception handling
disabled, use -fexceptions to enable

make[6]: Leaving directory
`/builddir/build/BUILD/kst-1.8.0/kst/src/plugins/fits_nonlinear/general_levenberg_marquardt'

make[6]: *** [kstfit_general_levenberg_marquardt.lo] Error 1

make[5]: *** [all-recursive] Error 1
Comment 1 Andrew Walker 2009-07-20 20:55:21 UTC
This seems to be caused by the presence of exception handling in the plugins/fits_nonlinear/general_levenberg_marquardt module, together with the -fno-exceptions flag in the compiler options.

It is worth noting though that this module has had exception handling since it was added to the build in Feb 2008, and it is known to build correctly on at least some platforms.
Comment 2 Netterfield 2009-07-20 20:57:39 UTC
I have never gotten it to build, and didn't know it worked.
Comment 3 Andrew Walker 2009-07-20 21:09:03 UTC
It has worked since at least Feb 2008 and I've never seen any build problems with it on my machine. Given the number of distributions and compilers though this isn't saying very much.
Comment 4 Matthew Truch 2009-07-20 23:12:51 UTC
Fedora devel (rawhide), with gcc 4.4.0.  

-fno-exceptions seems to be added by configure to the CFLAGS.
Comment 5 Andrew Walker 2009-07-21 21:11:10 UTC
The same problem can be seen in Fedora 11 with a default install from DVD - with muparser and gsl installed.
Comment 6 Andrew Walker 2009-07-21 22:00:01 UTC
SVN commit 1000694 by arwalker:

BUG:200919 the following is necessary on some distributions to ensure exception-handling

 M  +1 -0      Makefile.am  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1000694