Re: KDE2 - Building KDE2 - Errors


Subject: Re: KDE2 - Building KDE2 - Errors
From: Patrick Callahan (pac1@tiac.net)
Date: Tue Nov 21 2000 - 22:02:11 MST


The saga continues.... the -O0 was a blind alley... The build for kdelibs
is now proceeding nicely.

I visited one of the more helpful channels on irc, and discussed this
situation. They advised that it might really be a problem with swap space
after all. While I initially claimed to have 128mb of swap space, one of the
regulars suggested I monitor it with the free command or with gkrellm. When
I reported the values from free as Swap 0, 0, 0 someone immeditately
recognized that I did not have swap turned on.

While I did find the following in the boot log: /var/log/boot.log:Nov 21
20:24:33 localhost rc.sysinit: Enabling swap space succeeded, swapping was
still not happening. the reason was the lack of a swap entry in /etc/fstab.
(don't ask why its not there, it just wasn't ok?)

The correct /etc/fstab entry in my case:

/dev/hda11 none swap sw

To make swapping start in the current session I gave the command

swapon /dev/hda11

Bottom line for KDE Build, no -O0 is needed. the build of kdelib is working
just fine with just

export QTDIR=/usr/lib/qt-2.1.1
 cd /usr/src/kdelibs-2.0
 make -f Makefile.cvs
 ./configure --enable-debug
 make

I'm mid build now and free is reporting:
  total used free shared buffers cached
Mem: 126628 108660 17968 37564 3868 22912
-/+ buffers/cache: 81880 44748
Swap: 131064 4392 126672

before the build, swap was 131064 0 131064, no swap used, but 128mb
available.

Patrick Callahan wrote:

> Searching for information about the specific module and error message
> yielded this tidbit from
> http://www.monkey.org/openbsd/archive/tech/9801/msg00188.html
>
> "this is a bug of sorts in GCC. Try it without optimization -O."
>
> I reran the build for kdelibs with the following commands:
>
> export CPPFLAGS='-O0'
> export QTDIR=/usr/lib/qt-2.1.1
> cd /usr/src/kdelibs-2.0
> make -f Makefile.cvs
> ./configure --enable-debug
> make
>
> Now of course everything builds, but all the g++ compiles are being done
> without any optimization. Not a good thing for a library. What I'd like
> to do instead is to modify the makefile for a the single module that's
> causing the trouble, compiling it without optimization while allowing the
> other compiles to proceed normally.
>
> What I want to end up with is a set of commands to patch the make file.
>
> What's the first step? Find the makefile and correct it. Done.
> Now I want to create a patch that can be added to my script above so it
> corrects the makefile just before calling make.
>
> What diff command do I use to create the patch ?
> What patch command do I give to apply the patch?
>
> Hey Sam, Did you run into this compile problem?
>
> Patrick Callahan wrote:
>
> > KDE2 Build project:
> >
> > - Now building kdelibs - problem - compiler error:
> >
> > make[3]: Entering directory `/usr/src/kdelibs-2.0/kdecore'
> > /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
> > -I./../libltd
> > l/ -I../dcop -I../kdecore -I../kdeui -I../kssl -I/usr/local/qt/include
> > -I/usr/X1
> > 1R6/include -I/usr/local/kde/include -O2 -fno-exceptions
> > -fno-check-new -Wal
> > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../libltdl/ -I../dcop -I../kdecore
> > -I../kdeui -I../kssl -I/usr/local/qt/include -I/usr/X11R6/include
> > -I/usr/local/kde/include -O2 -fno-exceptions -fno-check-new -Wall
> > -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> > -Wno-long-long -fno-builtin -frtti -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
> > -DQT_NO_ASCII_CAST -Wp,-MD,.deps/kapp.pp -c kapp.cpp -fPIC -DPIC -o
> > .libs/kapp.o
> > In file included from /usr/include/sys/socket.h:34,
> > from /usr/include/netdb.h:31,
> > from kapp.cpp:96:
> > /usr/include/bits/socket.h:226: warning: ANSI C++ forbids zero-size
> > array `__cmsg_data'
> > kapp.cpp: In method `void KCheckAccelerators::checkAccelerators()':
> > kapp.cpp:130: Internal compiler error:
> > kapp.cpp:130: virtual memory exhausted
> > make[3]: *** [kapp.lo] Error 1
> > make[3]: Leaving directory `/usr/src/kdelibs-2.0/kdecore'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/usr/src/kdelibs-2.0/kdecore'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/kdelibs-2.0'
> > make: *** [all-recursive-am] Error 2
> >
> > Current status:
> > - all attempts to build rpm-3.0.5 failed
> > ../lib/.libs/librpm.so: undefined reference to `bzdopen'
> > ../lib/.libs/librpm.so: undefined reference to `bzerror'
> > ../lib/.libs/librpm.so: undefined reference to `bzwrite'
> > ../lib/.libs/librpm.so: undefined reference to `bzclose'
> > ../lib/.libs/librpm.so: undefined reference to `bzread'
> > ../lib/.libs/librpm.so: undefined reference to `bzflush'
> > ../lib/.libs/librpm.so: undefined reference to `bzopen'
> > collect2: ld returned 1 exit status
> > make[2]: *** [dump] Error 1
> > make[2]: Leaving directory `/usr/src/rpm-3.0.5/tools'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/rpm-3.0.5'
> > make: *** [all-recursive-am] Error 2
> >
> > - Built rpm-3.0.6 from sources in order to use source rpms from
> > http://www.msoe.edu/~geiseri/kde2/
> >
> > - installed qt-2.2.1-1a.ppc.rpm
> > rpm -i /downloads/qt-2.2.1-1a.ppc.rpm
> >
> > - expanded downloaded kdelibs sources:
> > rpm -Uvh kdelibs-2.0-1a.src.rpm
> > bzip2 -d ../local/src/redhat/SOURCES/kdelibs-2.0.tar.bz2
> > cd /usr/src
> > tar -xvf ../local/src/redhat/SOURCES/kdelibs-2.0.tar
> > cd kdelibs-2.0
> >
> > - started build for kdelibs
> >
> > export QTDIR=/usr/lib/qt-2.1.1
> > make -f Makefile.cvs
> > ./configure --enable-debug
> > make



This archive was generated by hypermail 2a24 : Tue Nov 21 2000 - 22:02:26 MST