Bug 142727 - libtool enters infinite loop
Summary: libtool enters infinite loop
Status: RESOLVED UNMAINTAINED
Alias: None
Product: buildsystem
Classification: Developer tools
Component: KDE3 (autotools) (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
: 163915 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-09 13:14 UTC by Becheru Petru-Ioan
Modified: 2009-08-25 09:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Becheru Petru-Ioan 2007-03-09 13:14:20 UTC
Version:           3.4.0 (using KDE KDE 3.5.6)
Installed from:    Debian testing/unstable Packages
OS:                Linux

when I try to compile a "simple 'Hello World'" project, KDevelop enter
in a infinite loop (100% cpu) and eat all memory and swap.
The problem occur when it run /bin/sh ../libtool --tag=CXX --mode=link g++ -O0 -g3 -o hello hello.o
And in fact, if I run this command in a console, the same problem occur.
I try to use the libtool scrip provided by libtool packege in /usr/bin :
/bin/sh /usr/bin/libtool --tag=CXX --mode=link g++ -O0 -g3 -o hello hello.o
and it build and run without problem, so I guess libtool provided with
kdevelop is in fault.

===========
Workaround
===========
If the building configuration is Debug then the command is:
"*" is the path of the project

cd '*/debug/src' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" make -k test.lo
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I/*/src -I.. -O0 -g3 -MT test.lo -MD -MP -MF ".deps/test.Tpo" -c -o test.lo `test -f '*/src/test.cpp' || echo '*/src/'`*/src/test.cpp; then mv -f ".deps/test.Tpo" ".deps/test.Plo"; else rm -f ".deps/test.Plo"; exit 1; fi

. Seems that indeed libtool is the problem causing the infinite loop so remove kdevelop libtool script(made by configure) and adding a link to /ust/bin/libtool fixes the problem:
cd debug; rm libtool; ln -s /usr/bin/libtool libtool;

==================
This bug is also reported on debian bugs: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=351358 and may be a Debian only bug
Comment 1 Becheru Petru-Ioan 2007-03-09 13:15:13 UTC
Is this bug linked to bug 68818 ?
Comment 2 Amilcar do Carmo Lucas 2007-03-09 13:45:37 UTC
No, these are not related.
Comment 3 Andreas Pakulat 2007-03-09 14:09:57 UTC
This is not a kdevelop problem. KDevelop doesn't create the Makefile, thats done by autotools. KDevelop only runs make on your build directory. So please take this problem to an autotool bug database.

Also I can't reproduce this here, so I guess your autotools (autoconf most probably as libtool is created via configure which is created by autoconf) are somewhat broken.
Comment 4 Andreas Pakulat 2008-06-12 19:15:38 UTC
*** Bug 163915 has been marked as a duplicate of this bug. ***
Comment 5 Andreas Pakulat 2008-06-12 19:19:25 UTC
apparently the problem is that libtool 2.2.x broke backwards compatibility and now the ltmain.sh shipped in KDE causes problems. See Bugreport 163915 for more information and links to autotool-lists with discussions. Re-opening and Re-Assigning to buildsystem.
Comment 6 Raphael Kubo da Costa 2009-08-25 03:40:39 UTC
Closing this report as the build system has changed in KDE4.