Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51108 - libpng-1.2.5-r6 : emerge failed. pngwutil.c : gcc: internal error
Summary: libpng-1.2.5-r6 : emerge failed. pngwutil.c : gcc: internal error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-14 19:21 UTC by Setzer-
Modified: 2004-05-20 21:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Setzer- 2004-05-14 19:21:28 UTC
from a fresh gentoo installation (stage1), when trying to install xfree, the installation hung while compiling libpng  pngtest. (that is, the gcc command is printed, but then nothing happens for hours, and no hdd activity at all occurs. I can also issue shell commands at this point, but I have no prompt until after a command has been issued)

upon trying to get it to compile (with usepkg, without fomit-frame-pointer, using mcpu=i386, without -pipe, etc.), I end up with this:
gcc -I/usr/include -Wall [falgs vary here, depending on which ones I used] -funroll-loops -c -o pngwutil.o pngwutil.c
gcc: Internal error: Terminated (program cc1)
make: *** [pngrutil.o] Error 1

!!! ERROR: media-libs/libpng-1.2.5-r6 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! Make failed

my usual CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe"
I tried without -pipe; with -mcpu=i386;  without -fomit-frame-pointer; and varios combinations of each of these.

trying emerge without altering the CFLAGS= give this:
First, it compiles quite further,
I see a "Terminated" after it compiles pngtrans.c
and activity stops at gcc -o pngtest [...]

this's where it seems like the shell comes back (without prompt), no error message.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Compilation hangs, or fails

Expected Results:  
Compile libpng :P

Architecture details:
P200 mmx, 64Mb ram, 6+2GB hd
kernel gentoo-dev (2.6.5)

emerge info >>>
Gentoo Base System version 1.4.9
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i586 Pentium MMX
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe"
CHOST="i386-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com
http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb canna cjk crypt cups directfb emacs emacs-w3
encode esd flac foomaticdb gdbm gif gnome gpm gtk gtk2 icq imlib java jpeg jpg
libg++ libwww mad mikmod mmx motif mozilla mpeg mule ncurses nls oggvorbis
opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell
ssl svga tcpd truetype unicode x x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-05-17 05:30:37 UTC
CFLAGS="-O2 -mcpu=pentium-mmx -fomit-frame-pointer -pipe"
CHOST="i386-pc-linux-gnu"

this combination could be screwing things up ...
Comment 2 Setzer- 2004-05-20 21:36:37 UTC
it would indeed seem that the CHOST and mcpu mismatch was causing trouble. I re-did the installation process (bootstrap, compile kernel) with i586 for both and all went fine. I think we can resolve this bug as INVA (although putting a big warning in the Gentoo installation manual might help)