| Summary: | crash if i compile gpsim-lcd on my workstation | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | francois <titeuf> |
| Component: | [OLD] Development | Assignee: | Embedded Team (OBSOLETE) <dev-embedded+disabled> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | 2005.0 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
francois
2005-06-10 18:24:52 UTC
compilation abort with an error on a redeclaration: In file included from lcdgui.cc:24: lcd.h:107: error: `class Event' redeclared as enumeral_type lcd.h:107: error: conflicting types for `enum Event Reproducible: Always Steps to Reproduce: 1.emerge gpsim-lcd 2. 3. Actual Results: here is the log of the compile process : Calculating dependencies ..>>> Unpacking source... >>> Unpacking lcd-0.1.1.tar.gz to /var/tmp/portage/gpsim-lcd-0.1.1/work * Applying gpsim-lcd-0.1.1-gcc33.patch ... [ ok ] * Applying gpsim-lcd-0.1.1-display_fix.patch ... [ ok ] >>> Source unpacked. * econf: updating lcd-0.1.1/config.guess with /usr/share/gnuconfig/config.guess * econf: updating lcd-0.1.1/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib creating cache ./config.cache 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... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for bison... bison -y checking for gcc... gcc checking whether the C compiler (gcc -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer ) works... yes checking whether the C compiler (gcc -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for c++... c++ checking whether the C++ compiler (c++ -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer ) works... yes checking whether the C++ compiler (c++ -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking how to run the C++ preprocessor... c++ -E checking for flex... flex checking for flex... (cached) flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for a BSD compatible install... /bin/install -c checking whether make sets ${MAKE}... (cached) yes checking host system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for ranlib... ranlib 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 BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes updating cache ./config.cache checking for object suffix... o 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 if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... no checking if gcc static flag -static works... -static checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... yes checking how to hardcode library paths into programs... immediate checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool loading cache ./config.cache checking for main in -lfl... yes checking for gtk-config... /usr/bin/gtk-config checking for ANSI C header files... yes checking for working const... no checking for inline... no checking for size_t... yes checking for working alloca.h... no checking for alloca... yes checking return type of signal handlers... void checking for strdup... yes checking for strstr... yes checking for strtod... yes checking for strtol... yes checking for strtoul... yes updating cache ./config.cache creating ./config.status creating Makefile creating examples/Makefile creating config.h lcd-0.1.1 is now configured for Source directory: . Installation prefix: /usr C compiler: gcc -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer C++ compiler: c++ -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer gui: make all-recursive make[1]: Entering directory `/var/tmp/portage/gpsim-lcd-0.1.1/work/lcd-0.1.1' Making all in examples make[2]: Entering directory `/var/tmp/portage/gpsim-lcd-0.1.1/work/lcd-0.1.1/examples' make[2]: Rien à faire pour « all ». make[2]: Leaving directory `/var/tmp/portage/gpsim-lcd-0.1.1/work/lcd-0.1.1/examples' make[2]: Entering directory `/var/tmp/portage/gpsim-lcd-0.1.1/work/lcd-0.1.1' /bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include - march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -c lcdgui.cc /bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include - march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -c module_manager.cc /bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include - march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -c lcd.cc mkdir .libs c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -c -fPIC -DPIC module_manager.cc -o .libs/module_manager.lo rm -f .libs/lcd.lo rm -f .libs/lcdgui.lo c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -c -fPIC -DPIC lcdgui.cc -o .libs/lcdgui.lo c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer -c -fPIC -DPIC lcd.cc -o .libs/lcd.lo In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/backward/iostream.h:31, from module_manager.cc:44: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at l east one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Example s include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/backward/iostream.h:31, from lcd.cc:55: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at l east one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Example s include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. In file included from lcdgui.cc:24: lcd.h:107: error: `class Event' redeclared as enumeral_type lcd.h:107: error: conflicting types for `enum Event' /usr/include/gpsim/stimuli.h:438: error: previous declaration as `class Event' lcd.h: In constructor `SMEvent::SMEvent(char*)': lcd.h:159: error: no match for 'operator=' in 'this->SMEvent::e = BAD_EVENT' lcd.h:158: error: candidates are: Event& Event::operator=(const Event&) lcd.h: At global scope: lcd.h:185: error: parse error before `{' token lcd.h:282: error: parse error before `void' lcd.h:287: error: `void test()' redeclared as different kind of symbol lcdfont.h:2: error: previous declaration of `char test[256][7][6]' lcdfont.h:2: error: previous non-function declaration `char test[256][7][6]' lcd.h:287: error: conflicts with function declaration `void test()' lcd.h:295: error: virtual outside class declaration lcd.h:298: error: virtual outside class declaration lcd.h:299: error: syntax error before `*' token lcd.h:339: error: parse error before `}' token lcdgui.cc: In function `gchar** CreateXPMdataFromLCDdata(LcdDisplay*, char (*)[7][6])': lcdgui.cc:62: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:62: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:63: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:63: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:68: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:68: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:83: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:85: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:88: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:92: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:94: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:97: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:100: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:101: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc: In constructor `LcdFont::LcdFont(int, GtkWidget*, LcdDisplay*)': lcdgui.cc:165: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc: At global scope: lcdgui.cc:172: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc: In function `gint lcd_expose_event(GtkWidget*, GdkEvent*, void*)': lcdgui.cc:205: error: `update' undeclared (first use this function) lcdgui.cc:205: error: (Each undeclared identifier is reported only once for each function it appears in.) lcdgui.cc: At global scope: lcdgui.cc:213: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:299: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:389: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:401: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:415: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcdgui.cc:425: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' In file included from lcd.cc:59: lcd.h:107: error: `class Event' redeclared as enumeral_type lcd.h:107: error: conflicting types for `enum Event' /usr/include/gpsim/stimuli.h:438: error: previous declaration as `class Event' lcd.h: In constructor `SMEvent::SMEvent(char*)': lcd.h:159: error: no match for 'operator=' in 'this->SMEvent::e = BAD_EVENT' lcd.h:158: error: candidates are: Event& Event::operator=(const Event&) lcd.h: At global scope: lcd.h:185: error: parse error before `{' token lcd.h:282: error: parse error before `void' lcd.h:295: error: virtual outside class declaration lcd.h:298: error: virtual outside class declaration lcd.h:299: error: syntax error before `*' token lcd.h:339: error: parse error before `}' token lcd.cc: In function `void simulation_has_stopped(void*)': lcd.cc:74: error: `update' undeclared (first use this function) lcd.cc:74: error: (Each undeclared identifier is reported only once for each function it appears in.) lcd.cc: In member function `virtual void ControlPort::assert_event()': lcd.cc:157: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcd.cc:157: error: `advanceState' undeclared (first use this function) lcd.cc: In member function `virtual void ControlPort::callback()': lcd.cc:173: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcd.cc: In member function `virtual void DataPort::assert_event()': lcd.cc:182: error: `advanceState' undeclared (first use this function) lcd.cc: In member function `virtual void DataPort::put(unsigned int)': lcd.cc:194: error: `advanceState' undeclared (first use this function) lcd.cc: At global scope: lcd.cc:220: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcd.cc: In member function `void LcdDisplay::update()': lcd.cc:221: error: `update' undeclared (first use this function) lcd.cc: At global scope: lcd.cc:248: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcd.cc: In member function `void LcdDisplay::create_iopin_map()': lcd.cc:275: error: `name' undeclared (first use this function) lcd.cc:289: error: `create_pkg' undeclared (first use this function) lcd.cc:300: error: `assign_pin' undeclared (first use this function) lcd.cc:319: error: `get_pin_count' undeclared (first use this function) lcd.cc:320: error: `Package' undeclared (first use this function) lcd.cc:320: error: parse error before `::' token lcd.cc: At global scope: lcd.cc:329: error: syntax error before `*' token lcd.cc:334: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcd.cc:335: error: syntax error before `->' token lcd.cc:336: error: syntax error before `->' token lcd.cc:339: error: syntax error before `->' token lcd.cc:340: error: syntax error before `->' token lcd.cc:341: error: syntax error before `->' token lcd.cc:343: error: syntax error before `->' token lcd.cc:350: error: invalid use of undefined type `class LcdDisplay' lcd.h:34: error: forward declaration of `class LcdDisplay' lcd.cc: In constructor `LcdDisplay::LcdDisplay()': lcd.cc:353: error: `name_str' undeclared (first use this function) lcd.cc:369: error: `interface_id' undeclared (first use this function) lcd.cc:369: error: `gpsim_register_interface' undeclared (first use this function) lcd.cc:371: error: `gpsim_register_simulation_has_stopped' undeclared (first use this function) make[2]: *** [lcdgui.lo] Erreur 1 make[2]: *** Attente des tâches non terminées.... make[2]: *** [lcd.lo] Erreur 1 In file included from module_manager.cc:49: lcd.h:107: error: `class Event' redeclared as enumeral_type lcd.h:107: error: conflicting types for `enum Event' /usr/include/gpsim/stimuli.h:438: error: previous declaration as `class Event' lcd.h: In constructor `SMEvent::SMEvent(char*)': lcd.h:159: error: no match for 'operator=' in 'this->SMEvent::e = BAD_EVENT' lcd.h:158: error: candidates are: Event& Event::operator=(const Event&) module_manager.cc: At global scope: module_manager.cc:63: error: invalid conversion from `ExternalModule*(*)(char*) ' to `ExternalModule*(*)(const char*)' make[2]: *** [module_manager.lo] Erreur 1 make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/var/tmp/portage/gpsim-lcd-0.1.1/work/lcd-0.1.1' make: *** [all-recursive-am] Erreur 2 !!! ERROR: dev-embedded/gpsim-lcd-0.1.1 failed. !!! Function src_compile, Line 556, Exitcode 2 !!! emake failed Expected Results: installation on the package gpsim-lcd ! It seems that compilation of gpsim-led and gpsim-logic also fail for similar reasons. you neglected to post `emerge info` (In reply to comment #1) > you neglected to post `emerge info` Sorry, it's my first post :) here it is : Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686) ================================================================= System uname: 2.6.11-gentoo-r8 i686 AMD Athlon(TM) MP 2600+ Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 21:01:44)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/l ib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf /tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-mp -O3 -mcpu=athlon-mp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/" LANG="fr_FR@euro" LC_ALL="fr_FR@euro" LINGUAS="fr" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac aalib acl acpi alsa arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bmp bonobo bzlib calendar caps cd paranoia cdr clamav cpdflib crypt cscope ctype cups curl curlwrappers dbm dedicated dga dio directfb divx4linux doc dv dvd dvdr dvdread embo ss encode esd ethereal evo exif expat fam fbcon fdftk ffmpeg fftw flac flash flatfile foomaticdb ftp gb gcj gd gdbm ggi gif ginac glut gmp g nutls gpg gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv icq imagemagick imap imlib inifile iodbc ipv6 jabber jack java javascript jikes j oystick jpeg junit kerberos krb4 ladcca lcms ldap lesstif libcaca libedit libgda libwww lm_sensors mad maildir mcal mhash mikmod mime ming m mx motif mozilla mp3 mpeg mpi msession msn ncurses nls nmap nptl nvidia odbc ofx ogg oggvorbis openal opengl oscar oss pcre pda pdflib perl pic plotutils png pnp python qt quicktime readline recode ruby samba sasl scanner sdl shorten simplexml skey slang slp sndfile snmp sockets socks5 sox speex spell ssl svg svga symlink sysfs sysvipc szip tcltk tcpd tetex threads tiff truetype unicode usb userlocales v4l vcd videos vorbis wifi win32codecs wmf wxwindows xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid yahoo zlib linguas_fr userland_G NU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY Try gcc-3.4. (In reply to comment #3) > Try gcc-3.4. Doesn't work with gcc-3.4.4 Could this bug be a duplicate of #128933 (or the other way around) ? What version of gpsim are you using ? gpsim-lcd-0.1.1 doesn't work with recent versions of gpsim. You may want to try gpsim-lcd-0.2.5 and see if it resolves your problem. If it does, we may have to tune the DEPEND list of gpsim-lcd-0.1.1 a bit. Denis. |