Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239330 - sci-electronics/ktechlab-0.3.6 - matrix.cpp:291: instantiated from here[...] error: no matching function for call to 'std::vector[...]
Summary: sci-electronics/ktechlab-0.3.6 - matrix.cpp:291: instantiated from here[...] ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Soldering-Iron Brotherhood
Depends on:
Blocks: gcc-4.3
  Show dependency tree
Reported: 2008-10-02 13:10 UTC by galva
Modified: 2008-12-19 20:50 UTC (History)
0 users

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

build log (build.log,427.26 KB, text/plain)
2008-10-02 13:15 UTC, galva
--- (---,358 bytes, text/plain)
2008-11-08 00:47 UTC, Dmitry Halturin
--- (---,358 bytes, text/plain)
2008-11-08 00:47 UTC, Dmitry Halturin
ebuild patch (ktechlab-0.3.6.ebuild.patch,358 bytes, patch)
2008-11-08 00:47 UTC, Dmitry Halturin
Details | Diff
sources patch (ktechlab-0.3.6-gcc43.patch,3.67 KB, patch)
2008-11-08 00:50 UTC, Dmitry Halturin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:
 *, 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

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-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"
CFLAGS="-march=native -O2 -pipe"
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"
FEATURES="collision-protect distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
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/local/portage/layman/java-overlay /usr/local/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"

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
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 <>
+  +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.