Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 239330

Summary: sci-electronics/ktechlab-0.3.6 - matrix.cpp:291: instantiated from here[...] error: no matching function for call to 'std::vector[...]
Product: Gentoo Linux Reporter: galva <galva>
Component: Current packagesAssignee: The Soldering-Iron Brotherhood <sci-electronics>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: build log
---
---
ebuild patch
sources patch

Description galva 2008-10-02 13:10:04 UTC
ktechlab fails to build.

The error message is:
matrix.cpp:291:   instantiated from here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/bits/stl_vector.h:932: error: no matching function for call to 'std::vector<std::vector<unsigned int, std::allocator<unsigned int> >, std::allocator<std::vector<unsigned int, std::allocator<unsigned int> > > >::_M_fill_initialize(size_t, unsigned int&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/bits/stl_vector.h:974: note: candidates are: void std::vector<_Tp, _Alloc>::_M_fill_initialize(size_t, const _Tp&) [with _Tp = std::vector<unsigned int, std::allocator<unsigned int> >, _Alloc = std::allocator<std::vector<unsigned int, std::allocator<unsigned int> > >]
make[4]: *** [matrix.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src/electronics/simulation'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src/electronics'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3'
make: *** [all] Error 2
 *
 * ERROR: sci-electronics/ktechlab-0.3.6 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 4126:  Called kde_src_compile
 * environment, line 2962:  Called kde_src_compile 'all'
 * environment, line 3087:  Called kde_src_compile 'myconf' 'configure' 'make'
 * environment, line 3083:  Called die
 * The specific snippet of code:
 * emake || die "died running emake, $FUNCNAME:make"
 * The die message:
 * died running emake, kde_src_compile:make
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sci-electronics/ktechlab-0.3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-electronics/ktechlab-0.3.6/temp/environment'.
 *


Reproducible: Always

Steps to Reproduce:
1. emerge ktechlab
2.
3.




emerge --info
Portage 2.2_rc11 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-tuxonice x86_64)
=================================================================
System uname: Linux-2.6.26-tuxonice-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Thu, 02 Oct 2008 03:19:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://213.186.33.38/gentoo-distfiles/ ftp://213.186.33.37/gentoo-distfiles/"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage"
SYNC="rsync://server/gentoo-portage"
USE="X acpi alsa amd64 bluetooth branding bzip2 cairo cdr cli cracklib crypt cups custom-optimization dbus dri dvd dvdr dvdread emboss evo fam firefox fortran gdbm gif gtk hal iconv isdnlog jpeg kde kdehiddenvisibility libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib nls nptl nptlonly nsplugin ogg opengl pam pch pcre pdf png ppds pppd qt3 qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

USE flags:
[ebuild  N    ] sci-electronics/ktechlab-0.3.6  USE="-arts -debug -xinerama" 0 kB
Comment 1 Rafał Mużyło 2008-10-02 13:11:49 UTC
That error message is incomplete.
Comment 2 galva 2008-10-02 13:15:02 UTC
Created attachment 166996 [details]
build log
Comment 3 Eric Rodriguez 2008-10-05 13:38:48 UTC
(In reply to comment #0)
Same problem here but in a x86 architecture.
Comment 4 Marca Alessandro 2008-10-15 15:34:52 UTC
After many attempts, successfully compiled with gcc-4.2.4 on x86
Comment 5 tangram 2008-10-27 07:51:30 UTC
(In reply to comment #0)

With gcc-4.3.2 on x86 same problem.


Comment 6 Dmitry Halturin 2008-11-08 00:45:27 UTC
bug fixed
Ebuild pacth: ktechlab-0.3.6.ebuild.patch
Put "inktechlab/files" file ktechlab-0.3.6-gcc43.patch
Comment 7 Dmitry Halturin 2008-11-08 00:47:07 UTC
Created attachment 171060 [details]
---

ebuild pacth
Comment 8 Dmitry Halturin 2008-11-08 00:47:23 UTC
Created attachment 171061 [details]
---

ebuild pacth
Comment 9 Dmitry Halturin 2008-11-08 00:47:31 UTC
Created attachment 171062 [details, diff]
ebuild patch

ebuild pacth
Comment 10 Dmitry Halturin 2008-11-08 00:50:37 UTC
Created attachment 171063 [details, diff]
sources patch
Comment 11 galva 2008-11-08 01:44:41 UTC
great!
with your patch compilation ends successfully.
can i switch to fixed?
Comment 12 Peter Alfredsen (RETIRED) gentoo-dev 2008-12-19 20:50:52 UTC
+  19 Dec 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/ktechlab-0.3.6-gcc43.patch, ktechlab-0.3.6.ebuild:
+  Fix bug 239330, gcc-4.3 compat. Thanks to Dmitry Halturin for the patch.
+