Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234561 - kicad 20080320.918 frequent crashing. ebuild not accounting for unicode ?
Summary: kicad 20080320.918 frequent crashing. ebuild not accounting for unicode ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-12 19:38 UTC by genbug
Modified: 2009-04-18 18:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description genbug 2008-08-12 19:38:21 UTC
I have constant crashes using kicad. This is a known result of wrong unicode build option. So I suspect that may be the cause here.
I pulled this from CMakeCache.txt

//Use unicode build?
wxWidgets_USE_UNICODE:BOOL=ON

bash-3.2#grep -i unicode /etc/make.conf
-unicode


bash-3.2#eselect wxwidgets list
Available wxWidgets profiles:
  [1]   gtk2-ansi-release-2.6 
  [2]   gtk2-unicode-release-2.6
  [3]   gtk2-unicode-release-2.8 *

This seems at odds with make.conf

selecting [1] does not help.




Reproducible: Always

Steps to Reproduce:
1. run kicad create new project, enter schematic editor
2. add resistor R, rightclick , rot 90.
3. add 2nd R from histroy, rot 90 crash. eeschema dumps out.

Actual Results:  
eeschema unstable

Expected Results:  
normal function without crash

undetermined whether this is due to incorrect build w.r.t. unicode but this is a known symptom.

This cannot be a general bug in kicad since it is near unusable with this problem.
Comment 1 genbug 2008-08-12 19:53:00 UTC
ps , just switched to 2.6 ansi wxGTK, rerun emerge kicad and still see 

//Use unicode build?
wxWidgets_USE_UNICODE:BOOL=ON

if I'm misreading this pls explain but it seems to build with unicode ON no matter what.

thx
Comment 2 Michal Kurgan (RETIRED) gentoo-dev 2008-08-12 20:32:33 UTC
I am assuming sci-electronics/kicad-20070115. (confirm so we can fix Summary)

Unicode or not is guessed from USE="unicode" flag.

eselect wxwidgets module should be used only for user access to wx-config script. Ebuilds does not use the selected profile.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2008-08-14 20:17:34 UTC
Please provide `emerge --info` output.
Comment 4 genbug 2008-08-15 10:03:57 UTC
Sorry , should have specified version. 

sci-electronics/kicad-20080320.918 

~x86

bash-3.2#emerge --info
Portage 2.1.5.6 (default-linux/x86/2007.0/desktop, gcc-4.2.3/vanilla, glibc-2.7-r2, 2.6.20-nicus1 i686)
=================================================================
System uname: 2.6.20-nicus1 i686 Unknown CPU Typ
Timestamp of tree: Sat, 09 Aug 2008 07:15:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 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.50.0.6
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=64 -fgnu89-inline"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -falign-functions=64 -fgnu89-inline"
DISTDIR="/usr/portage/new/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="  ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo #ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo   #http://gentoo.mirror.sdv.fr   #http://gentoo.oregonstate.edu  http://www.ibiblio.org/pub/Linux/distributions/gentoo "
LANG="en_GB"
LC_ALL="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s -Wl,--hash-style=gnu"
LINGUAS="en fr en_GB fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/portage/new/../tmp"
PORTDIR="/usr/portage/new"
PORTDIR_OVERLAY="/usr/portage/local/layman/zen-overlay /usr/portage/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi acpi4linux aiglx alsa apache2 bzip2 cairo cdr cli cracklib crypt cups curl dbus directfb dri dvd dvdr dvdread eds emboss encode esd evo fam fbcon fbdev firefox flac foomaticdb fortran fuse gdbm gif gimp gpm gstreamer gtk gtk2 iconv imagemagick imlib isdnlog joystick jpeg kde kerberos lcms ldap mad midi mikmod mmx mng mp3 mpeg mudflap mysql nas ncurses network nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtc samba sdl session slang sms spell spl sse ssl svg svga tcltk tcpd threads tiff truetype unicode usb userlocales vesa vorbis win32codecs x86 xml xorg xv xvid zlib" ALSA_CARDS="ens1371 cmipci es1938" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" CAMERAS="ptp2 fuji panasonic" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_GB fr_FR" USERLAND="GNU" VIDEO_CARDS="nvidia 3dfx nv vesa vesafb"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Denis Dupeyron (RETIRED) gentoo-dev 2008-08-15 10:46:58 UTC
I'll look at this when I have more time. One thing I can say is that kicad requires wxGTK built with unicode, but wxGTK-2.8 is now unicode-only. So it's either one of the implicit dependencies of kicad or wxGTK which should be built with unicode (and isn't in your case).

If you would like to debug this you could try to rebuild each of your packages that's build with USE="-unicode" one by one (there shouldn't be that many) and check if kicad works. Make sure you revdep-rebuild each time. If that doesn't solve it, then it's an automagic dependency somewhere and you'd need to rebuild your whole system with USE="unicode" if you can't find it.

Denis.
Comment 6 genbug 2008-08-16 11:19:11 UTC
Thanks for the advice Denis.

I have already tried changing -unicode to unicode in make.conf and rebuilding everything shown by emerge -N world that relates to that build option. I followed that by emerge wxGTK kicad and a revdep-rebuild for good measure.

Is still see exactly the same events provoking a crash.

From what has been said (and a look at the ebuild script) it appears that the ebuild is not accounting for unicode presence or lack thereof. This would appear to be a problem since the author provides binaries for systems with and without. Presumably this should be in there as a build option.

Noting that eselect wxwidgets has not relevance to the ebuild could you clarify whether it affects the running of kicad or I can safely ignore what it is set to?

TIA.
Comment 7 Denis Dupeyron (RETIRED) gentoo-dev 2009-04-18 18:37:44 UTC
This ebuild was removed as part of massive cleanup. Please try the latest one where this should be fixed.

Denis.