While trying to emerge sci-electronics/geda-20040111-r1 (15 packages) the emerge failed at sci-electronics/ng-spice-rework-15 Emerging this package (ng-spice-rework-14) previously for oregano also failed. Reproducible: Always Steps to Reproduce: 1. add sci-electronics/ng-spice-rework ~x86 to /etc/portage/package.keywords 2. emerge ng-spice-rework 3. FAIL Actual Results: the comiling fails Expected Results: compile root@Fluid jrb # emerge info Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 4 2004, 18:40:35)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r5 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.90.0.1.1-r3 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirrors.blueyonder.co.uk/sites/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://www.mirror.ac.uk/mirror/www.ibiblio.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl acpi aim alsa apm avi berkdb bindist bitmap-fonts bonobo bzip2 cdr crypt cups directfb dvd eds encode esd fam fbcon flac foomaticdb fortran gdbm geoip gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imlib ipv6 java joystick jpeg jpg ldap libwww mad mikmod mme mme2 mmx mmx2 motif mozilla mpeg msn ncurses nls nntp nomotif nptl offensive oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline sdl spell sse sse2 ssl svga tcltk tcpd tiff truetype usb xml xml2 xmms xprint xv zlib" I have tried to compile ng-spice-rework on its own with a CFLAG of CFLAGS="-march=pentium4 -O2 -pipe" still no joy.
Can't help without the compiler error messages. Please post compiler error messages and reopen this bug.
Sorry. I did a root@Fluid jrb # emerge ng-spice-rework > ebuild-err.txt so that I could capture the header ./configure checks and also so that it would spew out the errors to stderr Errors: configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. ngspice.texi:7156: warning: @strong{Note:} produces a spurious cross-reference in Info; reword to avoid that. tilde.c: In function `tildexpand': tilde.c:34: warning: 'result' might be used uninitialized in this function cmath3.c:26: warning: conflicting types for built-in function 'cexp' spbuild.c: In function `spFindElement': spbuild.c:188: warning: unused variable `index' spbuild.c: At top level: spbuild.c:447: warning: 'Translate' defined but not used spsolve.c:265: warning: 'SolveComplexMatrix' defined but not used spsolve.c:544: warning: 'SolveComplexTransposedMatrix' defined but not used spfactor.c:990: warning: 'SearchForPivot' defined but not used spfactor.c:1095: warning: 'SearchForSingleton' defined but not used spfactor.c:1534: warning: 'QuicklySearchDiagonal' defined but not used spfactor.c:1707: warning: 'SearchDiagonal' defined but not used spfactor.c:1842: warning: 'SearchEntireMatrix' defined but not used spfactor.c:1973: warning: 'FindLargestInCol' defined but not used spfactor.c:2042: warning: 'FindBiggestInColExclude' defined but not used spfactor.c:3036: warning: 'CreateFillin' defined but not used sputils.c: In function `spErrorMessage': sputils.c:2227: warning: implicit declaration of function `abort' sputils.c: At top level: sputils.c:663: warning: 'ComplexMatrixMultiply' defined but not used sputils.c:811: warning: 'ComplexTransposedMatrixMultiply' defined but not used x11.c: In function `X11_NewViewport': x11.c:422: warning: use of cast expressions as lvalues is deprecated x11.c: In function `X11_Input': x11.c:921: warning: dereferencing type-punned pointer will break strict-aliasing rules windisp.c:542:25: warning: no newline at end of file control.c: In function `cp_resetcontrol': control.c:829: warning: implicit declaration of function `cp_free_control' control.c: At top level: control.c:885: error: conflicting types for 'cp_free_control' control.c:829: error: previous implicit declaration of 'cp_free_control' was here make[4]: *** [control.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** Waiting for unfinished jobs.... make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 !!! ERROR: sci-electronics/ng-spice-rework-15 failed. !!! Function src_compile, Line 18, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. These are the initial ./configure outputs ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal-1.4... found checking for working autoconf... found checking for working automake-1.4... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for i686-pc-linux-gnu-g77... no checking for i686-pc-linux-gnu-f77... no checking for i686-pc-linux-gnu-xlf... no checking for i686-pc-linux-gnu-frt... no checking for i686-pc-linux-gnu-pgf77... no checking for i686-pc-linux-gnu-fort77... no checking for i686-pc-linux-gnu-fl32... no checking for i686-pc-linux-gnu-af77... no checking for i686-pc-linux-gnu-f90... no checking for i686-pc-linux-gnu-xlf90... no checking for i686-pc-linux-gnu-pgf90... no checking for i686-pc-linux-gnu-epcf90... no checking for i686-pc-linux-gnu-f95... no checking for i686-pc-linux-gnu-fort... no checking for i686-pc-linux-gnu-xlf95... no checking for i686-pc-linux-gnu-ifc... no checking for i686-pc-linux-gnu-efc... no checking for i686-pc-linux-gnu-pgf95... no checking for i686-pc-linux-gnu-lf95... no checking for i686-pc-linux-gnu-gfortran... no checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse nm output from gcc object... ok checking for objdir... .libs checking for i686-pc-linux-gnu-ar... no checking for ar... ar checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for shl_load... (cached) no checking for shl_load in -ldld... (cached) no checking for dlopen... (cached) no checking for dlopen in -ldl... (cached) yes checking whether a program can dlopen itself... (cached) yes checking whether a statically linked program can dlopen itself... (cached) yes appending configuration tag "F77" to libtool checking for X... libraries , headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for XShmAttach in -lXext... yes checking for main in -lXmu... yes checking for main in -lXaw... yes checking for pid_t... yes checking return type of signal handlers... void checking for library containing tputs... -lncurses checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking for unistd.h... (cached) yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for string.h... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for localtime... yes checking for gettimeofday... yes checking for getrusage... yes checking for getrlimit... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for isatty... yes checking for tcgetattr... yes checking for tcsetattr... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for access... yes checking for bcopy... yes checking for qsort... yes checking for dup2... yes checking for popen... yes checking for strchr... yes checking for getcwd... yes Checking mathematical features of the system: checking for sqrt in -lm... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking for erfc... yes checking for logb... yes checking for scalb... yes checking for scalbn... yes checking for asinh... yes checking for acosh... yes checking for atanh... yes Checking for the presence of the Garbage Collector: checking for GC_malloc in -lgc... no checking for asprintf... yes checking for va_copy... yes checking for __va_copy... yes Settings which were chosen: GNU readline disabled. configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating man/Makefile config.status: creating man/man1/Makefile config.status: creating src/Makefile config.status: creating src/spinit config.status: creating src/spicelib/Makefile config.status: creating src/spicelib/analysis/Makefile config.status: creating src/spicelib/devices/Makefile config.status: creating src/spicelib/devices/asrc/Makefile config.status: creating src/spicelib/devices/bjt/Makefile config.status: creating src/spicelib/devices/bjt2/Makefile config.status: creating src/spicelib/devices/bsim1/Makefile config.status: creating src/spicelib/devices/bsim2/Makefile config.status: creating src/spicelib/devices/bsim3v0/Makefile config.status: creating src/spicelib/devices/bsim3v1/Makefile config.status: creating src/spicelib/devices/bsim3v1a/Makefile config.status: creating src/spicelib/devices/bsim3v1s/Makefile config.status: creating src/spicelib/devices/bsim3/Makefile config.status: creating src/spicelib/devices/bsim4/Makefile config.status: creating src/spicelib/devices/bsim3soi/Makefile config.status: creating src/spicelib/devices/bsim3soi_pd/Makefile config.status: creating src/spicelib/devices/bsim3soi_fd/Makefile config.status: creating src/spicelib/devices/bsim3soi_dd/Makefile config.status: creating src/spicelib/devices/cap/Makefile config.status: creating src/spicelib/devices/cccs/Makefile config.status: creating src/spicelib/devices/ccvs/Makefile config.status: creating src/spicelib/devices/csw/Makefile config.status: creating src/spicelib/devices/cpl/Makefile config.status: creating src/spicelib/devices/dio/Makefile config.status: creating src/spicelib/devices/ind/Makefile config.status: creating src/spicelib/devices/isrc/Makefile config.status: creating src/spicelib/devices/hfet1/Makefile config.status: creating src/spicelib/devices/hfet2/Makefile config.status: creating src/spicelib/devices/hisim/Makefile config.status: creating src/spicelib/devices/jfet/Makefile config.status: creating src/spicelib/devices/jfet2/Makefile config.status: creating src/spicelib/devices/ltra/Makefile config.status: creating src/spicelib/devices/mes/Makefile config.status: creating src/spicelib/devices/mesa/Makefile config.status: creating src/spicelib/devices/mos1/Makefile config.status: creating src/spicelib/devices/mos2/Makefile config.status: creating src/spicelib/devices/mos3/Makefile config.status: creating src/spicelib/devices/mos6/Makefile config.status: creating src/spicelib/devices/mos9/Makefile config.status: creating src/spicelib/devices/res/Makefile config.status: creating src/spicelib/devices/soi3/Makefile config.status: creating src/spicelib/devices/sw/Makefile config.status: creating src/spicelib/devices/tra/Makefile config.status: creating src/spicelib/devices/txl/Makefile config.status: creating src/spicelib/devices/urc/Makefile config.status: creating src/spicelib/devices/vbic/Makefile config.status: creating src/spicelib/devices/vccs/Makefile config.status: creating src/spicelib/devices/vcvs/Makefile config.status: creating src/spicelib/devices/vsrc/Makefile config.status: creating src/spicelib/devices/nbjt/Makefile config.status: creating src/spicelib/devices/nbjt2/Makefile config.status: creating src/spicelib/devices/numd/Makefile config.status: creating src/spicelib/devices/numd2/Makefile config.status: creating src/spicelib/devices/numos/Makefile config.status: creating src/spicelib/parser/Makefile config.status: creating src/ciderlib/Makefile config.status: creating src/ciderlib/input/Makefile config.status: creating src/ciderlib/support/Makefile config.status: creating src/ciderlib/oned/Makefile config.status: creating src/ciderlib/twod/Makefile config.status: creating src/frontend/Makefile config.status: creating src/frontend/numparam/Makefile config.status: creating src/frontend/help/Makefile config.status: creating src/frontend/parser/Makefile config.status: creating src/frontend/plotting/Makefile config.status: creating src/frontend/wdisp/Makefile config.status: creating src/include/Makefile config.status: creating src/maths/Makefile config.status: creating src/maths/cmaths/Makefile config.status: creating src/maths/misc/Makefile config.status: creating src/maths/ni/Makefile config.status: creating src/maths/deriv/Makefile config.status: creating src/maths/poly/Makefile config.status: creating src/maths/sparse/Makefile config.status: creating src/misc/Makefile config.status: creating src/xspice/Makefile config.status: creating src/xspice/cm/Makefile config.status: creating src/xspice/cmpp/Makefile config.status: creating src/xspice/icm/makedefs config.status: creating src/xspice/mif/Makefile config.status: creating src/xspice/evt/Makefile config.status: creating src/xspice/enh/Makefile config.status: creating src/xspice/ipc/Makefile config.status: creating src/xspice/idn/Makefile config.status: creating tests/Makefile config.status: creating tests/filters/Makefile config.status: creating tests/polezero/Makefile config.status: creating tests/resistance/Makefile config.status: creating tests/bsim1/Makefile config.status: creating tests/bsim2/Makefile config.status: creating tests/bsim3soipd/Makefile config.status: creating tests/bsim3soifd/Makefile config.status: creating tests/bsim3soidd/Makefile config.status: creating tests/bsim4/Makefile config.status: creating tests/mesa/Makefile config.status: creating tests/transmission/Makefile config.status: creating tests/TransImpedanceAmp/Makefile config.status: creating config.h config.status: executing default-1 commands make all-recursive make[1]: Entering directory `/var/tmp/portage/ng-spice-rework-15/work/ng-spice-rework-15' Making all in doc
--UPDATE-- I switch from GCC i686-pc-linux-gnu-3.4.1 to GCC i686-pc-linux-gnu-3.3.4 And re-tried to emerge geda (where ng-spice-rework is part of). ng-rework-spice compiled. Equally geda-20040111-r1 now compiles so looks like a compilier version clash somewhere
Fixed in CVS, if you still have any more issues compiling with GCC 3.4 then please reopen this bug. Thanks!
ng-spice-rework-15 does not link here (~x86 with xorg-6.8.1): : undefined reference to `tmalloc' maths/sparse/libsparse.a(spalloc.o)(.text+0x38): In function `spCreate': : undefined reference to `tmalloc' maths/sparse/libsparse.a(spalloc.o)(.text+0x228): In function `spCreate': : undefined reference to `tmalloc' maths/sparse/libsparse.a(spalloc.o)(.text+0x23b): In function `spCreate': : undefined reference to `tmalloc' maths/sparse/libsparse.a(spalloc.o)(.text+0x26b): In function `spCreate': : undefined reference to `tmalloc' ma trealloc, txfree .... are nowhere ...
ng-spice-rework 15 also fails for me with the same messages as Fritz Heinrichmeyer. I've tried with both gcc-3.3.5-r1 and gcc-3.4.3-20050110 so I'm not sure it's related to gcc-3.4. Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 19:33:09)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.4, 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu"
Created attachment 53930 [details] Fix for the undefined txfree, tmalloc and trealloc This is a modified version of the ng-spice-rework-15.ebuild. I was able to compile and link ng-spice-rework successfully by commenting one line in the config.h file (see src_compile).