On Sat, Feb 13, 2010 at 11:43 AM, Joachim Breitner <[email protected]> wrote:
> Hi,
>
> Am Samstag, den 13.02.2010, 11:30 +0100 schrieb Mathieu Malaterre:
>> Ok here is -hopefully- some more info.
>>
>> 1. debian package does not honor DEB_BUILD_OPTIONS=debug
>
> good point. Patches accepted, of course, or I’ll try to work on this
> some time. Maybe creating a -dbg package would be even better.
I tried the simple hack, but it fails already with:
g++ -c -pipe -g -DQT_SHARED -Wall -W -g -D_REENTRANT -D_DEBUG
-DMULTI_THREADED -D__STDC_VERSION__=199901L -DQT_DLL -DQT3_SUPPORT
-DQT_THREAD_SUPPORT
-I"/tmp/6/serna-free-0.svn270/sfworks/common/sysdep/i386-linux-g++"
-I"/tmp/6/serna-free-0.svn270/sfworks"
-I"/tmp/6/serna-free-0.svn270/build/sfworks"
-I"/tmp/6/serna-free-0.svn270/sfworks/common/impl"
-I"/tmp/6/serna-free-0.svn270/sfworks/common/impl/unix"
-I"/tmp/6/serna-free-0.svn270/sfworks/common/impl/linux"
-I"/usr/include/qt4" -I"/usr/include/qt4/QtCore" -o obj/TreelocRep.o
/tmp/6/serna-free-0.svn270/sfworks/common/impl/TreelocRep.cxx
/tmp/6/serna-free-0.svn270/sfworks/common/sysdep/i386-linux-g++/../ix86_gcc_threadmutex.i:
Assembler messages:
/tmp/6/serna-free-0.svn270/sfworks/common/sysdep/i386-linux-g++/../ix86_gcc_threadmutex.i:56:
Error: suffix or operands invalid for `mov'
/tmp/6/serna-free-0.svn270/sfworks/common/sysdep/i386-linux-g++/../ix86_gcc_threadmutex.i:57:
Error: suffix or operands invalid for `cmpxchg'
make[4]: *** [obj/ThreadMutex.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/tmp/6/serna-free-0.svn270/build/sfworks/common'
make[3]: *** [common] Error 2
make[3]: Leaving directory `/tmp/6/serna-free-0.svn270/build/sfworks'
make[2]: *** [sfworks] Error 2
make[2]: Leaving directory `/tmp/6/serna-free-0.svn270/build'
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/6/serna-free-0.svn270'
make: *** [binary] Error 2
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error
exit status 2
I used the patch attached to this email. Any other suggestion ?
Thanks
--
Mathieu
diff -ru serna-free-0.svn270/3rd/configure serna-free-0.svn270.debug/3rd/configure
--- serna-free-0.svn270/3rd/configure 2010-02-05 17:19:44.000000000 +0100
+++ serna-free-0.svn270.debug/3rd/configure 2010-02-13 17:56:46.000000000 +0100
@@ -3,7 +3,7 @@
[ "x$top_srcdir" = "x" ] && top_srcdir=`dirname %0`/..
CONFIGURE=$0
-DTYPE=release
+DTYPE=debug
TYPE=static
while [ "x$1" != "x" ]; do
diff -ru serna-free-0.svn270/build/configure serna-free-0.svn270.debug/build/configure
--- serna-free-0.svn270/build/configure 2010-02-05 17:19:44.000000000 +0100
+++ serna-free-0.svn270.debug/build/configure 2010-02-13 17:56:46.000000000 +0100
@@ -6,7 +6,7 @@
# [ "x$top_srcdir" = "x" ] && echo Please specify top_srcdir variable! && exit 1 #top_srcdir=`echo ${CONFIGURE} | sed -e 's-[^/]*$--'`
-DTYPE=release
+DTYPE=debug
TYPE=static
while [ "x$1" != "x" ]; do