Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 57221

Summary: 'Internal Compiler Error: Segmentation Fault' during emerge of mtools
Product: Gentoo Linux Reporter: Eduardo Juan <ejuan73>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: critical CC: mholzer
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eduardo Juan 2004-07-15 13:25:17 UTC
I did 'emerge svgalib tar mtools' then gave me this error:

file.c: In function `_internalFileOpen':
file.c:572: warning: dereferencing type-punned pointer will break strict-aliasing rules
file.c: In function `comp':
file.c:528: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make: *** [file.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-fs/mtools-3.9.9 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! emake failed

This error is happening some many times if i start emerging many ebuilds pakets.

svgalib and tar emerged ok...

Restarting al system make it goes to normal situation. (like Windoze :P )

I updated all: system, gcc, glibc, glib, kernel, headers, etc..but nothing same error...

Reproducible: Always
Steps to Reproduce:
1.emerge mtools
2. -
3. -

Actual Results:  
>>> emerge (3 of 3) sys-fs/mtools-3.9.9 to /
>>> Downloading ftp://ftp.ussg.iu.edu/pub/linux/gentoo/distfiles/mtools-3.9.9.tar.gz
--16:54:40--  ftp://ftp.ussg.iu.edu/pub/linux/gentoo/distfiles/mtools-3.9.9.tar.gz
           => `/usr/portage/distfiles/mtools-3.9.9.tar.gz'
Resolving ftp.ussg.iu.edu... 129.79.5.130
Connecting to ftp.ussg.iu.edu[129.79.5.130]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/linux/gentoo/distfiles ... done.
==> PASV ... done.    ==> RETR mtools-3.9.9.tar.gz ... done.
Length: 322,805 (unauthoritative)

100%[==================================================================================================>]
322,805       90.95K/s    ETA 00:00

16:54:46 (90.74 KB/s) - `/usr/portage/distfiles/mtools-3.9.9.tar.gz' saved [322805]

>>> md5 src_uri ;-) mtools-3.9.9.tar.gz
>>> Unpacking source...
>>> Unpacking mtools-3.9.9.tar.gz to /var/tmp/portage/mtools-3.9.9/work
>>> Source unpacked.
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.
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... 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 how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking for install-info... /usr/bin/install-info
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... yes
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for getpwnam in -lsun... no
checking for cam_open_device in -lcam... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking linux/unistd.h usability... yes
checking linux/unistd.h presence... yes
checking for linux/unistd.h... yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for memory.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking sys/floppy.h usability... no
checking sys/floppy.h presence... no
checking for sys/floppy.h... no
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether llseek declared in unistd.h... no
checking whether lseek64 declared in unistd.h... yes
checking for htons... yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for size_t... yes
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 return type of signal handlers... void
checking for strerror... yes
checking for random... yes
checking for srandom... yes
checking for strchr... yes
checking for strrchr... yes
checking for lockf... yes
checking for flock... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for atexit... yes
checking for on_exit... yes
checking for getpass... yes
checking for memmove... yes
checking for strdup... yes
checking for strcspn... yes
checking for strspn... yes
checking for strtoul... yes
checking for strtol... yes
checking for memcpy... yes
checking for strpbrk... yes
checking for memset... yes
checking for seteuid... yes
checking for setresuid... yes
checking for tcsetattr... yes
checking for tcflush... yes
checking for basename... yes
checking for fchdir... yes
checking for media_oldaliases... no
checking for llseek... yes
checking for lseek64... yes
checking for snprintf... yes
checking for stat64... yes
checking whether setpgrp takes no argument... yes
checking for 64-bit off_t... no
checking whether gcc supports loff_t type... yes
checking whether gcc supports offset_t type... no
checking whether gcc supports long long type... yes
checking for utimes... yes
checking for tzset... yes
checking for gettimeofday... yes
checking declaration of sys_errlist... yes
checking for X... libraries /usr/X11R6/lib, 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 main in -lsocket... no
checking for main in -lnsl... yes
checking for main in -lbsd... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c buffer.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c codepage.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c codepages.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c config.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c copyfile.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c devices.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c dirCache.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c directory.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c direntry.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c expand.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c fat.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c fat_free.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c file.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c file_name.c
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i686 -DVENDOR_pc
-DOS_linux_gnu  -march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops
-Wall -I.  -I.   -c filter.c
file.c: In function `_internalFileOpen':
file.c:572: warning: dereferencing type-punned pointer will break
strict-aliasing rules
file.c: In function `comp':
file.c:528: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make: *** [file.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-fs/mtools-3.9.9 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! emake failed


Expected Results:  
emerge ok...

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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 /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=pentium3 -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
SYNC="rsync://rsync1.fi.gentoo.org/gentoo-portage"
USE="X aalib alsa arts avi berkdb cdr crypt cups dga directfb dvd dvdr encode
esd evo fbcon firefox flash foomaticdb gb gcc gdbm ggi gif glib glibc gnome
gphoto2 gpm gtk gtk2 gtkhtml imlib innodb ipv6 java jpeg kde lcms ldap libg++
libwww mad mikmod motif mozaccess-builtin mozctl mozilla mozxmlterm mpeg msn
mysql ncurses nls odbc oggvorbis opengl oscar oss pam pda pdflib perl plotutils
png python qt quicktime readline ruby samba sdl slang slp snmp sock5 spell sse
ssl svga tcltk tcpd tetex thunderbird tiff truetype usb wxwindows x86 xface xml
xml2 xmms xv yahoo zlib"
Comment 1 Kurt Lieber (RETIRED) gentoo-dev 2004-07-15 13:34:06 UTC
reassigning to bug-wranglers.  this doesn't have anything to do with the GLI project and shouldn't have been assigned here.
Comment 2 Jon Portnoy (RETIRED) gentoo-dev 2004-07-28 11:55:28 UTC
You have a hardware problem. Please consult bug 20600 and check your CPU & RAM, to start.

*** This bug has been marked as a duplicate of 20600 ***