Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162116 - dev-embedded/kontrollerlab ebuild
Summary: dev-embedded/kontrollerlab ebuild
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
Whiteboard: sunrise-overlay
Keywords: EBUILD, InOverlay
: 162114 (view as bug list)
Depends on:
Reported: 2007-01-14 21:43 UTC by Daniel Kukula
Modified: 2012-12-04 05:23 UTC (History)
6 users (show)

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

dev/embedded/kontrollerlab-0.7.0.ebuild (kontrollerlab-0.7.0.ebuild,727 bytes, text/plain)
2007-01-14 21:44 UTC, Daniel Kukula
New Version, amd64 compat (kontrollerlab-0.8.0_alpha1.ebuild,787 bytes, text/plain)
2008-03-05 12:02 UTC, Thomas Feller

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kukula 2007-01-14 21:43:23 UTC
The KontrollerLab is a tool which can be used for developing microcontroller
Comment 1 Daniel Kukula 2007-01-14 21:44:52 UTC
Created attachment 107003 [details]
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-14 21:46:44 UTC
*** Bug 162114 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Feller 2008-03-05 12:02:24 UTC
Created attachment 145343 [details]
New Version, amd64 compat
Comment 4 Tobias Kaminsky 2008-05-23 06:07:42 UTC
make process is hanging with ~90% CPU:

source='kldotmatrixcharacterwizardbase.cpp' object='kldotmatrixcharacterwizardbase.o' libtool=no \
        depfile='.deps/kldotmatrixcharacterwizardbase.Po' tmpdepfile='.deps/kldotmatrixcharacterwizardbase.TPo' \
        depmode=gcc3 /bin/sh ../admin/depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o kldotmatrixcharacterwizardbase.o `test -f 'kldotmatrixcharacterwizardbase.cpp' || echo './'`kldotmatrixcharacterwizardbase.cpp
source='klmemoryview.cpp' object='klmemoryview.o' libtool=no \
        depfile='.deps/klmemoryview.Po' tmpdepfile='.deps/klmemoryview.TPo' \
        depmode=gcc3 /bin/sh ../admin/depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o klmemoryview.o `test -f 'klmemoryview.cpp' || echo './'`klmemoryview.cpp
source='kldebuggerconfigwidgetbase.cpp' object='kldebuggerconfigwidgetbase.o' libtool=no \
        depfile='.deps/kldebuggerconfigwidgetbase.Po' tmpdepfile='.deps/kldebuggerconfigwidgetbase.TPo' \
        depmode=gcc3 /bin/sh ../admin/depcomp \
        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o kldebuggerconfigwidgetbase.o `test -f 'kldebuggerconfigwidgetbase.cpp' || echo './'`kldebuggerconfigwidgetbase.cpp

If I download the sources, copy the ./configure command and running "make". It compiles fine as root.

I even tried to disable ccache and sandbox, but it is still hanging.

I am using: kontrollerlab-0.8.0_alpha1.ebuild

$emerge --info
Portage 2.1.5 (default/linux/x86/2008.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.25-tuxonice-r1 i686)
System uname: 2.6.25-tuxonice-r1 i686 AMD Athlon(tm) XP 2600+
Timestamp of tree: Thu, 22 May 2008 04:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /etc/conf.d/local.start /etc/fstab /etc/init.d/keymaps /etc/modules.autoload.d/kernel-2.6 /etc/rc.conf /opt/glftpd/etc /opt/glftpd/ftp-data /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
FEATURES="ccache distlocks fixpackages parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentopia /usr/local/portage"
USE="3dfx 3dnow 3dnowext LINGUAS_en_GB X a52 aac aalib ac3 acl acpi aiglx alsa asf audiofile bash-completion berkdb bitmap-fonts bluetooth branding browserplugin bt87x bzip2 cairo cdr cli cracklib crypt css cups curl dbus divx divx4linux divx6 dlloader dri dvb dvd dvdnav dvdr dvdread eds emboss encode esd evo exif expat fam fbsplash ffmpeg firefox flac foomaticdb fortran gdbm gif glitz glut gpm gtk gtk2 hal hbci iconv ieee1394 imagemagick imlib isdnlog java jpeg jpeg2k junit kde kdehiddenvisibility kerberos lcms ldap libnotify lilo lirc live logitech-mouse mad midi mikmod mmx mmxext mng motif mp3 mp4 mpeg mplayer msn mudflap musepack mythtv nas ncurses network newspr nls nognome nptl nptlonly nsplugin nvidia offensive ogg opengl openmp osd pam pcre pdf perl pic png ppds pppd python qt qt3 qt3support qt4 quicktime readline real reflection rtc samba sdl sensord session slang spell spl sse ssl startup-notification svg tcltk tcpd thread threads tiff truetype truetype-fonts type1-fonts unicode usb vcd visualization vnc vorbis win32codecs wmf x86 xcomposite xine xml xml2 xorg xosd xprint xv xvid zlib" ALSA_CARDS="via82xx bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="doc also bash_launcher chdir chroot conflict cpout critical cron daemon dev dllaunch envparser find fstat history idleprobe initctl interactive iparser last limit logfile netprobe ngc2 pause pidfile reload renice rlparser simple_launcher stcmd stdout suid syncron syslog unneeded ctrlaltdel daemon_clean ngc4 ngcs nge runlevels splash vim net fixes busybox cmake_color_makefile count_me dbus_event debug_commands lockfile usplash netdev provide sysreq bash_parser fmon dbus_event service_file" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" LIRC_DEVICES="atiusb" USERLAND="GNU" VIDEO_CARDS="nvidia nv nouveau"

Comment 5 Blu3 2008-09-11 07:32:32 UTC
g++ (cc1plus) appears to be going thru a huge number of iterations involving malloc() and free().  I'm going to let it run for a couple hours and see if it ever finishes.
Comment 6 Blu3 2008-09-11 08:04:31 UTC
It takes about 45 minutes to compile that particular file on a quad core 2.6Ghz 64bit AMD machine but eventually the entire package will compile.  Just be patient and wait it out.
Comment 7 Denis Dupeyron (RETIRED) gentoo-dev 2008-09-11 08:22:02 UTC
(In reply to comment #6)
> It takes about 45 minutes to compile that particular file on a quad core 2.6Ghz
> 64bit AMD machine but eventually the entire package will compile.  Just be
> patient and wait it out.

I'm not sure I'd consider it acceptable for such a package to take 45 minutes to compile on a 2.6 GHz quad core. Does adding -fno-tree-pre to CXXFLAGS help ?

Comment 8 Blu3 2008-09-12 00:17:33 UTC
Putting my CFLAGS/CXX back to my AMD/Phenom default dropped it to about 5 minutes.  CFLAGS="" and CXXFLAGS="-fno-tree-pre" did have a change on it. Huge.

# -msse5 isn't fully implemented in gcc 4.3 yet
CFLAGS="-march=amdfam10 -mtune=amdfam10 -O3 -pipe -msse2 -msse3 -msse4 -mabm -combine -fprofile-generate -fprofile-use -fopenmp -fprefetch-loop-arrays -ftree-parallelize-loops=4 -funroll-all-loops"

The above took about 10minutes.  CFLAGS="" CXXFLAGS="-fno-tree-pre" took about two minutes.
Comment 9 Malte S. 2008-11-04 12:46:17 UTC
genlop -t kontrollerlab
* dev-embedded/kontrollerlab

   Tue Nov  4 13:41:31 2008 >>> dev-embedded/kontrollerlab-0.8.0_alpha1
     merge time: 3 minutes and 34 seconds.

ARCH: x86
KDE:  3.5.9

works like a charm =)
should be added to sunrise.