Segmentation fault during some compile. copy paste of the last lines come next> gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -c `test -f 'lftp_rl.c' || echo './'`lftp_rl.c /bin/sh ../libtool --silent --mode=link g++ -O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -s -o lftp -export-dynamic -L/usr/lib lftp.o complete.o lftp_rl.o libjobs.a libtasks.a libnetwork.la proto-ftp.la proto-http.la proto-file.la proto-fish.la cmd-mirror.la cmd-sleep.la -lreadline ../lib/liblib.a -lssl -lcrypto -lutil -lcurses -lresolv -ldl collect2: ld terminated with signal 11 [Segmentation fault], core dumped make[1]: *** [lftp] Error 1 make[1]: Leaving directory `/var/tmp/portage/lftp-2.6.4/work/lftp-2.6.4/src' make: *** [all-recursive] Error 1 !!! ERROR: net-ftp/lftp-2.6.4 failed. !!! Function src_compile, Line 41, Exitcode 2 !!! compile problem Reproducible: Always Steps to Reproduce: 1.emerge lftp 2. 3. Actual Results: failed to emerge lftp Expected Results: a clean install of lftp :D [72p] newton : ~ $ emerge info Portage 2.0.47-r8 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-ben7 ppc GENTOO_MIRRORS="ftp://ftp.co.it.pt/pub/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss xv libwww jpeg nls mitshm gif imlib png truetype gdbm berkdb slang readline gpm tcpd perl python qt motif X gtk2 xft dvd ppc ipv6 java threads ssl opengl mozilla sdl pam oggvorbis -gtk -gnome -esd -kde -alsa" COMPILER="gcc3" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" ACCEPT_KEYWORDS="ppc ~ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache"
same CFLAGS updates for this plase, these are very very old gcc-2.95.3 ones :)
Same here with "newer" CFLAGS (-O3 -pipe -mcpu=750).
Keeps segfaulting on compile! g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2 -pipe -mcpu=750 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -c -o lftp.o `test -f 'lftp.cc' || echo './'`lftp.cc source='complete.cc' object='complete.o' libtool=no \ depfile='.deps/complete.Po' tmpdepfile='.deps/complete.TPo' \ depmode=gcc /bin/sh ../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2 -pipe -mcpu=750 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -c -o complete.o `test -f 'complete.cc' || echo './'`complete.cc source='lftp_rl.c' object='lftp_rl.o' libtool=no \ depfile='.deps/lftp_rl.Po' tmpdepfile='.deps/lftp_rl.TPo' \ depmode=gcc /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2 -pipe -mcpu=750 -Wall -c `test -f 'lftp_rl.c' || echo './'`lftp_rl.c /bin/sh ../libtool --silent --mode=link g++ -O2 -pipe -mcpu=750 -mstring -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -s -o lftp -export-dynamic -L/usr/lib lftp.o complete.o lftp_rl.o libjobs.a libtasks.a libnetwork.la proto-ftp.la proto-http.la proto-file.la proto-fish.la cmd-mirror.la cmd-sleep.la -lreadline ../lib/liblib.a -lssl -lcrypto -lutil -lcurses -lresolv -ldl collect2: ld terminated with signal 11 [Segmentation fault], core dumped make[1]: *** [lftp] Error 1 make[1]: Leaving directory `/var/tmp/portage/lftp-2.6.4/work/lftp-2.6.4/src' make: *** [all-recursive] Error 1 !!! ERROR: net-ftp/lftp-2.6.4 failed. !!! Function src_compile, Line 41, Exitcode 2 !!! compile problem keeps failing with modern settings: [61p] newton : /proc $ emerge info Portage 2.0.47-r10 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-ppc-r3 ppc GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss xv libwww jpeg nls mitshm gif png truetype gdbm berkdb slang readline tcltk gpm tcpd perl python imlib qt motif X gtk2 dvd ppc ipv6 java threads ssl opengl mozilla sdl pam oggvorbis gtk -gnome -esd -kde -alsa" COMPILER="gcc3" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=750" CXXFLAGS="-O2 -pipe -mcpu=750" ACCEPT_KEYWORDS="ppc ~ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache" I think its time to redirect the bug to the lftp ppl, this is probably due to some bug in lftp code. After all, lftp is my favority ftp client, and I want it working in ppc! =)
Could you please try -O2 instead of -O3 please?
please read more carefully ;-) I DID try with -O2 instead of -O3. see my post right above yours.
I'm working on this, I'm almost sure it's a problem with a compiler flag, I've gotten it to compile sucessfully by hand doing everything the ebuild does but that,a nd I've broken it by hand, too. I think I've compiled it somewhere around 30 or 40 times. Please be patient, or even better, gimme a hand and poke around. ^_^ Graham
I've tried emerging lftp-2.6.4 on my Powerbook G4 (rev-III, 667mhz) with the following CFLAGS/CXXFLAGS: "-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -mpowerpc-gpopt" "-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char" and "-O1" to no avail. I also disabled the following USE-flags one-by-one: nls ssl but it keeps failing on the same point as the original poster submitted.
This seems to be a bug in binutils, it's fixed in the latest version, which I don't think is even ~ppc yet. I'm not sure how to proceed yet, I'll have to ask around to see when that version of binutils will be in. This will be closed soon.
I've -ppc'd this, as binutils .20 isn't likely to work on ppc for a while to come.
10 months later and lftp-2.6.10 is stable and works :-) I close this bug.