I had to compile it with gcc3.33 ql_y.y:126: warning: enumeration value `vt_id' not handled in switch ql_y.y:134: note: file ql_y.gcda not found, execution counts assumed to be zero gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c ql_l.c gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c qgen.c In file included from ql_l.l:7: ../../config.h:15:1: warning: "YY_USE_CONST" redefined ql_l.c:38:1: warning: this is the location of the previous definition lex.yy.c: In function `yy_load_buffer_state': lex.yy.c:1282: note: file ql_l.gcda not found, execution counts assumed to be zero qgen.c: In function `main': qgen.c:90: note: file qgen.gcda not found, execution counts assumed to be zero gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c second.c ql_l.l: At top level: lex.yy.c:1117: warning: 'yyunput' defined but not used gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/include -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -c third.c second.c: In function `dump_required': second.c:42: note: file second.gcda not found, execution counts assumed to be zero third.c: In function `construct': third.c:100: note: file third.gcda not found, execution counts assumed to be zero gcc -I../../src/include -O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes qgen.c -o qgen qgen.c: In function `main': qgen.c:90: note: file qgen.gcda not found, execution counts assumed to be zero cat uni.h /usr/include/linux/atmsap.h | /usr/bin/perl mknl.pl atm_ai_msg atm_ai_ie atm_loc atm_cv atm_pu atm_na atm_cond atm_ie atm_msg atm_np atm_ton atm_sat atm_prs atm_scrn atm_vpa atm_poe q2931_cs atm_td atm_bc atm_tc atm_stc atm_upcc q2931_proto atm_flag atm_aalp atm_fd atm_tag atm_l2 atm_l3 atm_tt atm_mc atm_hl atm_imd atm_tdl atm_tni atm_nip atm_shi atm_oci atm_unfm atm_ofi atm_irs atm_it atm_lit atm_lsi atm_tcs atm_css atm_eqo atm_eqp atm_aap atm_asp atm_tor >default.nl || \ { rm -f default.nl; echo 1; } /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x41): In function `main': : undefined reference to `open_files' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x4d): In function `main': : undefined reference to `to_h' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x59): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x65): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x71): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x7d): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x89): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x95): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xa1): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xad): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xc3): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xcf): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xdb): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xe7): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xf3): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0xff): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x115): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x11a): In function `main': : undefined reference to `yyparse' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x19b): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1b0): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1bc): In function `main': : undefined reference to `to_h' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1c8): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1d4): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1e0): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1f0): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x1fc): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x208): more undefined references to `to_c' follow /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x20e): In function `main': : undefined reference to `def' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x216): In function `main': : undefined reference to `first' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x21b): In function `main': : undefined reference to `def' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x223): In function `main': : undefined reference to `second' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x229): In function `main': : undefined reference to `def' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x231): In function `main': : undefined reference to `third' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x23d): In function `main': : undefined reference to `to_h' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x249): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x255): In function `main': : undefined reference to `to_c' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x261): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x26d): In function `main': : undefined reference to `to_test' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x283): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x28f): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x29f): In function `main': : undefined reference to `to_dump' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2a4): In function `main': : undefined reference to `close_files' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2aa): In function `main': : undefined reference to `offset' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2b0): In function `main': : undefined reference to `varlen_fields' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2b5): In function `main': : undefined reference to `field' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2d4): In function `main': : undefined reference to `group' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2f3): In function `main': : undefined reference to `parser_size' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x2f8): In function `main': : undefined reference to `constr_size' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x352): In function `main': : undefined reference to `sym_tables' /var/tmp/portage/linux-atm-2.4.1/temp/ccRZIRsD.o(.text+0x358): In function `main': : undefined reference to `symbols' collect2: ld returned 1 exit status make[3]: *** [qgen] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1/work/linux-atm-2.4.1/src/qgen' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1/work/linux-atm-2.4.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/linux-atm-2.4.1/work/linux-atm-2.4.1' make: *** [all-recursive-am] Error 2 !!! ERROR: net-dialup/linux-atm-2.4.1 failed. !!! Function src_compile, Line 27, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Please provide your emerge info output. There is already a gcc 3.4 fix in the linux-atm ebuild. Maybe this bug is not directly related to gcc.
Please also check, if you compiled your libc with gcc 3.4: # /lib/libc.so* The output of the above command should say that it was compiled with gcc 3.4.x (whatever you're using) If this is not the case, try to recompile your libc (I guess you're using glibc) with gcc 3.4 and then try to recompile linux-atm with gcc 3.4
I've glibc compiled witn gcc 3.4.2-r2 # /lib/libc.so* GNU C Library 20041006 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5). Compiled on a Linux 2.6.8 system on 2004-10-15. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others linuxthreads-0.10 by Xavier Leroy The C stubs add-on version 2.1.2. BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Glibc-2.0 compatibility add-on by Cristian Gafton GNU Libidn by Simon Josefsson libthread_db work sponsored by Alpha Processor Inc Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. # emerge info Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.8-nitro6 i686) ================================================================= System uname: 2.6.8-nitro6 i686 Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.21-r1,sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -fbranch-probabilities" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks sandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ ftp://mir.zyrianes.net/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa apache2 apm atm avi berkdb bitmap-fonts bonobo bzlib cdr crypt cups divx4linux dvd dvdr eds encode esd evo f2c f77 foomaticdb gcj gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal imlib java joystick jpeg libg++ libwww lzw-tiff mad mikmod mmx mng mono motif mozdevelop mozilla moznoirc moznomail mozsvg mozxmltermmoznoirc mpeg mysql ncurses nls oggvorbis opengl pam pda pdflib perl pic png ppds python quicktime readline ruby samba sdl sed slang spell ssl svg svga tcpd theora tiff truetype unicode userlocales x86 xivd xml xml2 xmms xprint xv zlib"
Seems to be a problem with -fbranch-probabilities Without that option enabled, everything runs smoothly. I only tested the installation, I couldn't test if linux-atm runs, since I don't have any ATM hardware) inherit flag-o-matic [...] filter-flags -fbranch-probabilities in the ebuild should do the job.
Created attachment 42564 [details] New ebuild which fixes the bug
Reviewing all bugs I worked on. This one doesn't seem to have any changes since almost a month. Does the fixed ebuild work? Adding net-dialup to CC since this herd is mentioned in metadata.xml for linux-atm
sorry I can't help you. don't have the hardware to test it, but I'll put that filter-flags if you want. btw, strage option to put in CFLAGS. another filter should be -ffast-math, since I've heard it is as you praying for trouble.
won't fix because I didn't see such a flag filter anywhere in the tree. I guess this flag should be used only by upstreams. anyway, it is a strange flag and if users decides to break their systems, who am I to say no?