smbd/ipc.c: In function
smbd/ipc.c: In function reply_trans: smbd/ipc.c:364: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/samba-3.0.22-r2/temp/cc6w3HgG.out file, please attach this to your bugreport. make: *** [smbd/ipc.o] Error 1 make: *** Waiting for unfinished jobs.... Always segfaults in the same place. Previous versions compiled fine. # emerge -pv samba [ebuild U ] net-fs/samba-3.0.22-r2 [3.0.21c] USE="acl async automount cups -doc -examples -kerberos -ldap -ldapsam libclamav msdfs% -mysql oav pam -postgres python quotas readline swat syslog winbind xml xml2" 0 kB # emerge --info Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.16-gentoo-r4 i686) ================================================================= System uname: 2.6.16-gentoo-r4 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.12.0_pre18 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -ftree-vectorize" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fforce-addr -ftree-vectorize" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig ccache collision-protect confcache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="cs en" 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="x86 3dnow 3dnowext 7zip X X509 a52 aac acl acpi alsa apm asf audiofile bash-completion berkdb bluetooth bzip2 caps cddb cdparanoia cdr chroot cli crypt cscope css cups curl curlwrappers dbx dga dlloader dri dts dv dvd dvdr dvdread encode ethereal exif fam fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb gdbm gif glibc-omitfp glut gmp gpm gstreamer iconv icq idn imagemagick imap imlib inifile ipv6 irda jack javascript joystick jpeg jpeg2k lcms libcaca libg++ libwww lirc lm_sensors logrotate mad maildir matroska mikmod mime mmap mmx mng mp3 mpeg musepack musicbrainz ncurses nls nodrm nptl nptlonly nsplugin nvidia offensive ogg openal opengl pam pcre pdf perl png ppds python qt quicktime readline real reflection samba sdl session sftplogging skey sndfile speex spell spl sse ssl svg symlink tcpd theora threads tiff truetype udev unicode urandom usb userlocales v4l v4l2 vcd vorbis win32codecs wmf x264 xine xinerama xinetd xml xml2 xmlrpc xorg xosd xpm xv xvid xvmc zlib elibc_glibc input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_cs linguas_en userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa video_cards_vmware" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL
Created attachment 85660 [details] preprocessed source
BTW, no segfault w/ gcc-4.0.3. Hmmm...
why dont you try it with different CFLAGS
(In reply to comment #3) > why dont you try it with different CFLAGS Well, since it compiles perfectly fine w/ gcc-4.0.3, as said. ;) -ftree-vectorize crashes the thing hard, if someone wants to filter it or investigate the regression; otherwise just close it.
filtering flags is not a solution
gcc-4.2 works, so this is a 4.1-only regression ... seems to be x86-only
Created attachment 85712 [details] gcc-4.1-samba-ICE.c
this has been fixed in the upstream gcc-4.1 branch so it'll be in gcc-4.1.1 ...
As Spanky said, already fixed for 4.1.1. -ftree-vectorize is troublesome anyway, so I'm not about to start having people filter it everywhere. The patch is way too big to backport.
*** Bug 132132 has been marked as a duplicate of this bug. ***
Hmm, I have emerged with "-march=athlon-xp -O2 -pipe" and the same crash happened...
Please attach the preprocessed output if that is the case so I can look at it.
Created attachment 86137 [details] preprocessed output from failure with CFLAGS="-march=athlon-xp -O2 -pipe" (as requested)
You have -ftree-vectorize in your CFLAGS. This is the same bug.
Hmm, I see. BUT it's not in my make.conf, and it does not show up in my emerge --info command. Where does it com from?
*** Bug 132307 has been marked as a duplicate of this bug. ***
Mark, Jakub, anyone? I stand to what I said. I do NOT have -ftree-vectorize on my CFLAGS, yet emerging samba insists on using it, and I don't know why. I had it the first time I tried to compile it, but not now. Maybe you can shed a light here?
Tiago: Did you have -ftree-vectorize in your CFLAGS when you compiled mysql? Try compiling mysql without -ftree-vectorize and then compiling samba without -ftree-vectorize. It seems that samba inherits mysql's CFLAGS, so if mysql had -ftree-vectorize, samba will stick it in there too. Oh, and I just tried to compile samba with -ftree-vectorize using gcc-4.1.1_pre20060517, and I got an ICE in the exact same place.
(In reply to comment #18) > Oh, and I just tried to compile samba with -ftree-vectorize using > gcc-4.1.1_pre20060517, and I got an ICE in the exact same place. > If this is the case, please attach the preprocessed output so I can verify it.
Created attachment 87086 [details] Preprocessed source of ipc.c from samba-3.0.22-r2 (bzipped) I bzipped the preprocessed output - it was nearly 1 megabyte uncompressed. I hope that's OK. Anyway, here's the error: [snip] Compiling smbd/ipc.c smbd/ipc.c:123: note: vectorized 0 loops in function. smbd/ipc.c:437: note: LOOP VECTORIZED. smbd/ipc.c:455: note: vectorized 1 loops in function. smbd/ipc.c: In function 'reply_trans': smbd/ipc.c:364: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/samba-3.0.22-r2/temp/ccym3NUP.out file, please attach this to your bugreport. make: *** [smbd/ipc.o] Error 1 !!! ERROR: net-fs/samba-3.0.22-r2 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 931: Called src_compile samba-3.0.22-r2.ebuild, line 133: Called die !!! SAMBA make everything error !!! If you need support, post the topmost build error, and the call stack if relevant.
Just to settle the issue, I re-emerged mysql without -ftree-vectorize and then I was able to emerge samba...
I got the same error here with gcc-4.1.1 today, is there a fix available by now?
4.1.1 works fine for me
(In reply to comment #22) > I got the same error here with gcc-4.1.1 today, is there a fix available by > now? Same here, doesn't seem to be fixed.
Same here. Please reopen smbd/ipc.c: In function 'reply_trans': smbd/ipc.c:364: internal compiler error: Segmentation fault gcc versi
Same here. Please reopen smbd/ipc.c: In function 'reply_trans': smbd/ipc.c:364: internal compiler error: Segmentation fault gcc versión 4.1.1 (Gentoo 4.1.1-r1) I was able to reduce gcc flags up to this minimal -O1 -fstrict-aliasing -ftree-vectorize